gameboy wormboy manboy gameworm gameman wormgame mangame manworm

Dependencies:   mbed SDFileSystem2

platform.h

Committer:
dicarloj
Date:
2019-01-13
Revision:
17:c9afe1a7b423

File content as of revision 17:c9afe1a7b423:

#ifndef GBC_PLATFORM_H
#define GBC_PLATFORM_H

#include "types.h"

struct FileLoadData {
  u8* data;
  u32 size;
};

void* badalloc_check(u32 size, const char* alloc_name);
FileLoadData loadFile(const char* name);
void saveFile(const char* name, FileLoadData info);
void updateKeyboard(KeyState* keys);

#endif //GBC_PLATFORM_H