Esempio n. 1
0
void GBACheatDeviceDestroy(struct GBACheatDevice* device) {
	size_t i;
	for (i = 0; i < GBACheatSetsSize(&device->cheats); ++i) {
		struct GBACheatSet* set = *GBACheatSetsGetPointer(&device->cheats, i);
		GBACheatSetDeinit(set);
		free(set);
	}
	GBACheatSetsDeinit(&device->cheats);
}
Esempio n. 2
0
void retro_cheat_reset(void) {
	GBACheatSetDeinit(&cheatSet);
	GBACheatSetInit(&cheatSet, "libretro");
}
Esempio n. 3
0
void retro_deinit(void) {
	GBACheatRemoveSet(&cheats, &cheatSet);
	GBACheatDeviceDestroy(&cheats);
	GBACheatSetDeinit(&cheatSet);
	free(outputBuffer);
}