Skip to content

Commit

Permalink
Add some TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 14, 2025
1 parent fd4904a commit 0f10db3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ desktop.ini
*.sav
*.tmp
*.state*
TODO

#Xcode
*.xcuserstate
Expand Down
14 changes: 7 additions & 7 deletions platforms/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void retro_unload_game(void)

unsigned retro_get_region(void)
{
// TODO
// TODO [libretro] Implement region detection
return RETRO_REGION_NTSC;
}

Expand All @@ -321,19 +321,19 @@ bool retro_load_game_special(unsigned game_type, const struct retro_game_info *i

size_t retro_serialize_size(void)
{
// TODO
// TODO [libretro] Implement save states
return 0;
}

bool retro_serialize(void *data, size_t size)
{
// TODO
// TODO [libretro] Implement save states
return false;
}

bool retro_unserialize(const void *data, size_t size)
{
// TODO
// TODO [libretro] Implement save states
return false;
}

Expand All @@ -345,7 +345,7 @@ void *retro_get_memory_data(unsigned id)
return NULL;
case RETRO_MEMORY_SYSTEM_RAM:
return NULL;
// TODO
// TODO [libretro] Implement memory access for cheevos
//return core->GetMemory()->GetRam();
}

Expand All @@ -367,12 +367,12 @@ size_t retro_get_memory_size(unsigned id)

void retro_cheat_reset(void)
{
// TODO
// TODO [libretro] Implement cheats
}

void retro_cheat_set(unsigned index, bool enabled, const char *code)
{
// TODO
// TODO [libretro] Implement cheats
}

static void set_controller_info(void)
Expand Down
5 changes: 3 additions & 2 deletions src/geargrafx_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void GeargrafxCore::ResetSound()

// void GeargrafxCore::SaveRam(const char*, bool)
// {
// // TODO
// // TODO Implement save ram
// }

// void GeargrafxCore::LoadRam()
Expand All @@ -300,11 +300,12 @@ void GeargrafxCore::ResetSound()

// void GeargrafxCore::LoadRam(const char*, bool)
// {
// // TODO
// // TODO Implement load ram
// }

// void GeargrafxCore::SaveState(int index)
// {
// TODO Implement save states
// Log("Creating save state %d...", index);

// SaveState(NULL, index);
Expand Down

0 comments on commit 0f10db3

Please sign in to comment.