Skip to content

Instantly share code, notes, and snippets.

View isoiphone's full-sized avatar

Jacob Schwartz isoiphone

View GitHub Profile
#include "Platform.h"
bool Platform::mapFile(const char* filename, uint8_t** bytes, long* length) {
FILE* fin = fopen(Platform::pathForFile(filename).c_str(), "rb");
if (!fin) {
dbgLog("error opening file '%s'", filename);
return false;
}