RMG-Core: fix variable names in MediaLoader.cpp

This commit is contained in:
Rosalie Wanders
2025-02-24 21:31:48 +01:00
parent ef3a68f509
commit 9ef92c3578
+21 -21
View File
@@ -73,7 +73,7 @@ static char* medialoader_get_dd_rom(void*)
static char* medialoader_get_gb_cart_ram(void*, int index)
{
std::filesystem::path gameBoyRom;
std::filesystem::path gameBoySave;
SettingsID settingIds[] =
{
SettingsID::Core_Gameboy_P1_Save,
@@ -82,26 +82,6 @@ static char* medialoader_get_gb_cart_ram(void*, int index)
SettingsID::Core_Gameboy_P4_Save,
};
gameBoyRom = CoreSettingsGetStringValue(settingIds[index]);
if (gameBoyRom.empty())
{
return nullptr;
}
return strdup(gameBoyRom.string().c_str());
}
static char* mediaLoader_get_gb_cart_rom(void*, int index)
{
std::filesystem::path gameBoySave;
SettingsID settingIds[] =
{
SettingsID::Core_Gameboy_P1_Rom,
SettingsID::Core_Gameboy_P2_Rom,
SettingsID::Core_Gameboy_P3_Rom,
SettingsID::Core_Gameboy_P4_Rom,
};
gameBoySave = CoreSettingsGetStringValue(settingIds[index]);
if (gameBoySave.empty())
{
@@ -111,6 +91,26 @@ static char* mediaLoader_get_gb_cart_rom(void*, int index)
return strdup(gameBoySave.string().c_str());
}
static char* mediaLoader_get_gb_cart_rom(void*, int index)
{
std::filesystem::path gameBoyRom;
SettingsID settingIds[] =
{
SettingsID::Core_Gameboy_P1_Rom,
SettingsID::Core_Gameboy_P2_Rom,
SettingsID::Core_Gameboy_P3_Rom,
SettingsID::Core_Gameboy_P4_Rom,
};
gameBoyRom = CoreSettingsGetStringValue(settingIds[index]);
if (gameBoyRom.empty())
{
return nullptr;
}
return strdup(gameBoyRom.string().c_str());
}
//
// Exported Functions
//