Stop the "About INI Files" from crashing when no language was actually loaded in. (Certain ID's were never properly set to anything)
This commit is contained in:
parent
bae237dd5e
commit
81433e7529
|
@ -27,6 +27,11 @@ void CLanguage::LoadDefaultStrings (void)
|
|||
DEF_STR(INI_CURRENT_RDX, "Extended Rom Info (.RDX)");
|
||||
DEF_STR(INI_TITLE, "About INI Files" );
|
||||
|
||||
DEF_STR(LANGUAGE_NAME, "" );
|
||||
DEF_STR(LANGUAGE_AUTHOR, "" );
|
||||
DEF_STR(LANGUAGE_VERSION, "" );
|
||||
DEF_STR(LANGUAGE_DATE, "" );
|
||||
|
||||
/*********************************************************************************
|
||||
* Numbers *
|
||||
*********************************************************************************/
|
||||
|
|
|
@ -166,7 +166,6 @@ DWORD CALLBACK AboutIniBoxProc (WND_HANDLE WndHandle, DWORD uMsg, DWORD wParam,
|
|||
char String[200],String2[200];
|
||||
|
||||
SetWindowText(hDlg, GS(INI_TITLE));
|
||||
|
||||
//Language
|
||||
SetDlgItemText(hDlg,IDC_LAN,GS(INI_CURRENT_LANG));
|
||||
sprintf(String,"%s: %s",GS(INI_AUTHOR),GS(LANGUAGE_AUTHOR));
|
||||
|
@ -181,7 +180,7 @@ DWORD CALLBACK AboutIniBoxProc (WND_HANDLE WndHandle, DWORD uMsg, DWORD wParam,
|
|||
EnableWindow(GetDlgItem(hDlg,IDC_LAN_VERSION),FALSE);
|
||||
EnableWindow(GetDlgItem(hDlg,IDC_LAN_DATE),FALSE);
|
||||
}
|
||||
|
||||
|
||||
//RDB
|
||||
stdstr IniFile = g_Settings->LoadString(SupportFile_RomDatabase).c_str();
|
||||
SetDlgItemText(hDlg,IDC_RDB,GS(INI_CURRENT_RDB));
|
||||
|
|
Loading…
Reference in New Issue