Make language dir a settings option
This commit is contained in:
parent
eb63c37711
commit
ad757613b4
|
@ -829,9 +829,7 @@ LanguageList & CLanguage::GetLangList (void)
|
|||
return m_LanguageList;
|
||||
}
|
||||
|
||||
CPath LanguageFiles(CPath::MODULE_DIRECTORY,"*.pj.Lang");
|
||||
LanguageFiles.AppendDirectory("Lang");
|
||||
|
||||
CPath LanguageFiles(_Settings->LoadString(Setting_LanguageDir),"*.pj.Lang");
|
||||
if (LanguageFiles.FindFirst())
|
||||
{
|
||||
do {
|
||||
|
|
|
@ -42,6 +42,8 @@ enum SettingID {
|
|||
|
||||
Setting_AutoZipInstantSave,
|
||||
Setting_RememberCheats,
|
||||
Setting_LanguageDir,
|
||||
Setting_LanguageDirDefault,
|
||||
Setting_CurrentLanguage,
|
||||
|
||||
//RDB TLB Settings
|
||||
|
|
|
@ -100,6 +100,8 @@ void CSettings::AddHowToHandleSetting ()
|
|||
|
||||
AddHandler(Setting_RememberCheats, new CSettingTypeApplication("","Remember Cheats", (DWORD)false));
|
||||
AddHandler(Setting_CurrentLanguage, new CSettingTypeApplication("","Current Language",""));
|
||||
AddHandler(Setting_LanguageDirDefault, new CSettingTypeRelativePath("Lang",""));
|
||||
AddHandler(Setting_LanguageDir, new CSettingTypeApplicationPath("Directory","Lang",Setting_LanguageDirDefault));
|
||||
|
||||
AddHandler(Rdb_GoodName, new CSettingTypeRomDatabase("Good Name",Game_GameName));
|
||||
AddHandler(Rdb_SaveChip, new CSettingTypeRDBSaveChip("Save Type",SaveChip_Auto));
|
||||
|
|
Loading…
Reference in New Issue