Core: Normalize RomDatabase, VideoRDB, AudioRdb file paths
This commit is contained in:
parent
e419508c2b
commit
72e6ee1a2b
|
@ -1,6 +1,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#include "SettingsType-RomDatabase.h"
|
#include "SettingsType-RomDatabase.h"
|
||||||
|
#include <Common/path.h>
|
||||||
|
|
||||||
CIniFile * CSettingTypeRomDatabase::m_SettingsIniFile = nullptr;
|
CIniFile * CSettingTypeRomDatabase::m_SettingsIniFile = nullptr;
|
||||||
CIniFile * CSettingTypeRomDatabase::m_VideoIniFile = nullptr;
|
CIniFile * CSettingTypeRomDatabase::m_VideoIniFile = nullptr;
|
||||||
|
@ -59,9 +60,9 @@ void CSettingTypeRomDatabase::Initialize(void)
|
||||||
{
|
{
|
||||||
WriteTrace(TraceAppInit, TraceDebug, "Start");
|
WriteTrace(TraceAppInit, TraceDebug, "Start");
|
||||||
|
|
||||||
m_SettingsIniFile = new CIniFile(g_Settings->LoadStringVal(SupportFile_RomDatabase).c_str());
|
m_SettingsIniFile = new CIniFile(CPath(g_Settings->LoadStringVal(SupportFile_RomDatabase).c_str()).NormalizePath(CPath(CPath::MODULE_DIRECTORY)));
|
||||||
m_VideoIniFile = new CIniFile(g_Settings->LoadStringVal(SupportFile_VideoRDB).c_str());
|
m_VideoIniFile = new CIniFile(CPath(g_Settings->LoadStringVal(SupportFile_VideoRDB).c_str()).NormalizePath(CPath(CPath::MODULE_DIRECTORY)));
|
||||||
m_AudioIniFile = new CIniFile(g_Settings->LoadStringVal(SupportFile_AudioRDB).c_str());
|
m_AudioIniFile = new CIniFile(CPath(g_Settings->LoadStringVal(SupportFile_AudioRDB).c_str()).NormalizePath(CPath(CPath::MODULE_DIRECTORY)));
|
||||||
|
|
||||||
g_Settings->RegisterChangeCB(Game_IniKey, nullptr, GameChanged);
|
g_Settings->RegisterChangeCB(Game_IniKey, nullptr, GameChanged);
|
||||||
g_Settings->RegisterChangeCB(Cmd_BaseDirectory, nullptr, BaseDirChanged);
|
g_Settings->RegisterChangeCB(Cmd_BaseDirectory, nullptr, BaseDirChanged);
|
||||||
|
|
Loading…
Reference in New Issue