Skip to content

Instantly share code, notes, and snippets.

@giupo
Last active April 30, 2019 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giupo/736f5268c76c669da9bd6a7abd040f1f to your computer and use it in GitHub Desktop.
Save giupo/736f5268c76c669da9bd6a7abd040f1f to your computer and use it in GitHub Desktop.
Texture da BMS
include <Windows.h>
HANDLE textureDataMemHandle = NULL;
long* textureData = NULL;
do {
textureDataMemHandle = OpenFileMapping(FILE_MAP_ALL_ACCESS, TRUE,
TEXT("FalconTexturesSharedMemoryArea"));
if (!textureDataMemHandle) {
std::cout << "Unable to open file. Is Falcon Running?\n";
} else {
std::cout << "Got Shared Memory\n";
}
} while (!textureDataMemHandle);
textureData = (long*)MapViewOfFile(textureDataMemHandle, FILE_MAP_READ, 0, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment