mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Core: fix variable names in MediaLoader.cpp
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user