Merge pull request #2023 from vgturtle127/beautification-8
Beautification 8 - Source\Project64\UserInterface\Settings directory
This commit is contained in:
commit
b4c64ef734
|
@ -9,7 +9,7 @@ CAdvancedOptionsPage::CAdvancedOptionsPage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_START_ON_ROM_OPEN, wGS(ADVANCE_AUTO_START).c_str());
|
||||
SetDlgItemText(IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str());
|
||||
SetDlgItemText(IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str());
|
||||
|
|
|
@ -35,7 +35,7 @@ m_InUpdateSettings(false)
|
|||
m_TextureDefault.Attach(GetDlgItem(IDC_TEXTURE_DEFAULT));
|
||||
m_TextureSelected.Attach(GetDlgItem(IDC_TEXTURE_OTHER));
|
||||
|
||||
//Set Text language for the dialog box
|
||||
// Set text language for the dialog box
|
||||
::SetWindowText(m_PluginGroup.m_hWnd, wGS(DIR_PLUGIN).c_str());
|
||||
::SetWindowText(m_AutoSaveGroup.m_hWnd, wGS(DIR_AUTO_SAVE).c_str());
|
||||
::SetWindowText(m_InstantSaveGroup.m_hWnd, wGS(DIR_INSTANT_SAVE).c_str());
|
||||
|
@ -50,8 +50,8 @@ int CALLBACK COptionsDirectoriesPage::SelectDirCallBack(HWND hwnd, DWORD uMsg, D
|
|||
switch (uMsg)
|
||||
{
|
||||
case BFFM_INITIALIZED:
|
||||
// WParam is TRUE since you are passing a path.
|
||||
// It would be FALSE if you were passing a pidl.
|
||||
// WParam is TRUE since you are passing a path
|
||||
// It would be FALSE if you were passing a PIDL
|
||||
if (lpData)
|
||||
{
|
||||
SendMessage(hwnd, BFFM_SETSELECTION, TRUE, lpData);
|
||||
|
|
|
@ -9,7 +9,7 @@ CDiskDrivePage::CDiskDrivePage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_IPLDIR_JP_TXT, wGS(OPTION_IPL_ROM_PATH).c_str());
|
||||
SetDlgItemText(IDC_IPLDIR_US_TXT, wGS(OPTION_IPL_ROM_USA_PATH).c_str());
|
||||
SetDlgItemText(IDC_IPLDIR_TL_TXT, wGS(OPTION_IPL_ROM_TOOL_PATH).c_str());
|
||||
|
@ -140,7 +140,7 @@ void CDiskDrivePage::UpdatePageSettings(void)
|
|||
|
||||
void CDiskDrivePage::SelectFile(LanguageStringID /*Title*/, CModifiedEditBox & EditBox)
|
||||
{
|
||||
const char * Filter = "64DD IPL ROM Image (*.zip, *.7z, *.?64, *.rom, *.usa, *.jap, *.pal, *.bin)\0*.?64;*.zip;*.7z;*.bin;*.rom;*.usa;*.jap;*.pal\0All files (*.*)\0*.*\0";
|
||||
const char * Filter = "64DD IPL ROM image (*.zip, *.7z, *.?64, *.rom, *.usa, *.jap, *.pal, *.bin)\0*.?64;*.zip;*.7z;*.bin;*.rom;*.usa;*.jap;*.pal\0All files (*.*)\0*.*\0";
|
||||
|
||||
CPath FileName;
|
||||
if (FileName.SelectFile(m_hWnd, g_Settings->LoadStringVal(RomList_GameDir).c_str(), Filter, true))
|
||||
|
|
|
@ -10,7 +10,7 @@ CGameDiskDrivePage::CGameDiskDrivePage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_DISKSEEKTIMING_TEXT2, wGS(ROM_DISK_SEEK_TIMING).c_str());
|
||||
|
||||
CModifiedComboBox* ComboBox;
|
||||
|
|
|
@ -10,7 +10,7 @@ CGameGeneralPage::CGameGeneralPage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_GOOD_NAME_TEXT, wGS(RB_GOODNAME).c_str());
|
||||
|
||||
SetDlgItemText(IDC_MEMORY_SIZE_TEXT, wGS(ROM_MEM_SIZE).c_str());
|
||||
|
|
|
@ -10,7 +10,7 @@ CGamePluginPage::CGamePluginPage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
|
@ -106,7 +106,7 @@ void CGamePluginPage::ShowAboutButton(int id)
|
|||
return;
|
||||
}
|
||||
|
||||
//Load the plugin
|
||||
// Load the plugin
|
||||
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
|
||||
SetErrorMode(LastErrorMode);
|
||||
|
@ -115,11 +115,11 @@ void CGamePluginPage::ShowAboutButton(int id)
|
|||
return;
|
||||
}
|
||||
|
||||
//Get DLL about
|
||||
// Get DLL about
|
||||
void(CALL *DllAbout) (HWND hWnd);
|
||||
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
||||
|
||||
//call the function from the dll
|
||||
// Call the function from the DLL
|
||||
DllAbout(m_hWnd);
|
||||
|
||||
FreeLibrary(hLib);
|
||||
|
|
|
@ -10,7 +10,7 @@ CGameRecompilePage::CGameRecompilePage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_CPU_TYPE_TEXT, wGS(ROM_CPU_STYLE).c_str());
|
||||
SetDlgItemText(IDC_FUNCFIND_TEXT, wGS(ROM_FUNC_FIND).c_str());
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ CGameStatusPage::CGameStatusPage(HWND hParent, const RECT & rcDispay)
|
|||
|
||||
CIniFile RomIniFile(g_Settings->LoadStringVal(SupportFile_RomDatabase).c_str());
|
||||
CIniFile::strlist Keys;
|
||||
RomIniFile.GetKeyList("Rom Status", Keys);
|
||||
RomIniFile.GetKeyList("ROM Status", Keys);
|
||||
stdstr Status = UISettingsLoadStringVal(Rdb_Status);
|
||||
|
||||
CModifiedComboBoxTxt * ComboBox;
|
||||
|
|
|
@ -93,16 +93,16 @@ void COptionsGameBrowserPage::AddFieldClicked(UINT /*Code*/, int /*id*/, HWND /*
|
|||
{
|
||||
return;
|
||||
}
|
||||
//remove from list
|
||||
// Remove from list
|
||||
int i = m_Avaliable.GetItemData(index);
|
||||
m_Avaliable.DeleteString(index);
|
||||
|
||||
//select next in list
|
||||
// Select next in list
|
||||
int listCount = m_Avaliable.GetCount();
|
||||
if (index >= listCount) { index -= 1; }
|
||||
m_Avaliable.SetCurSel(index);
|
||||
|
||||
//Add to list
|
||||
// Add to list
|
||||
index = m_Using.AddString(wGS(m_Fields[i].LangID()).c_str());
|
||||
m_Using.SetItemData(index, i);
|
||||
m_Using.SetCurSel(index);
|
||||
|
@ -119,16 +119,16 @@ void COptionsGameBrowserPage::RemoveFieldClicked(UINT /*Code*/, int /*id*/, HWND
|
|||
{
|
||||
return;
|
||||
}
|
||||
//remove from list
|
||||
// Remove from list
|
||||
int i = m_Using.GetItemData(index);
|
||||
m_Using.DeleteString(index);
|
||||
|
||||
//select next in list
|
||||
// Select next in list
|
||||
int listCount = m_Using.GetCount();
|
||||
if (index >= listCount) { index -= 1; }
|
||||
m_Using.SetCurSel(index);
|
||||
|
||||
//Add to list
|
||||
// Add to list
|
||||
index = m_Avaliable.AddString(wGS(m_Fields[i].LangID()).c_str());
|
||||
m_Avaliable.SetItemData(index, i);
|
||||
m_Avaliable.SetCurSel(index);
|
||||
|
|
|
@ -76,7 +76,7 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT /*Code*/, int /*id*/, HWND /*
|
|||
continue;
|
||||
}
|
||||
|
||||
//find Parent
|
||||
// Find parent
|
||||
HTREEITEM hParent = m_MenuItems.GetChildItem(TVI_ROOT);
|
||||
while (hParent)
|
||||
{
|
||||
|
@ -139,7 +139,7 @@ void COptionsShortCutsPage::OnRemoveClicked(UINT /*Code*/, int /*id*/, HWND /*ct
|
|||
|
||||
CShortCutItem * ShortCut = (CShortCutItem *)m_MenuItems.GetItemData(hSelectedItem);
|
||||
|
||||
//Make sure an item is selected
|
||||
// Make sure an item is selected
|
||||
int index = m_CurrentKeys.GetCurSel();
|
||||
if (index < 0)
|
||||
{
|
||||
|
@ -162,7 +162,7 @@ void COptionsShortCutsPage::OnDetectKeyClicked(UINT /*Code*/, int /*id*/, HWND /
|
|||
|
||||
void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||
{
|
||||
//Get the virtual key info
|
||||
// Get the virtual key info
|
||||
int index = m_VirtualKeyList.GetCurSel();
|
||||
if (index < 0)
|
||||
{
|
||||
|
@ -216,7 +216,7 @@ void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ct
|
|||
|
||||
void COptionsShortCutsPage::OnShortCutChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||
{
|
||||
//Get the virtual key info
|
||||
// Get the virtual key info
|
||||
int index = m_VirtualKeyList.GetCurSel();
|
||||
if (index < 0) { return; }
|
||||
WORD key = (WORD)m_VirtualKeyList.GetItemData(index);
|
||||
|
|
|
@ -10,7 +10,7 @@ m_SettingsConfig(SettingsConfig)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(IDC_AUTOSLEEP, wGS(OPTION_AUTO_SLEEP).c_str());
|
||||
SetDlgItemText(IDC_LOAD_FULLSCREEN, wGS(OPTION_AUTO_FULLSCREEN).c_str());
|
||||
SetDlgItemText(IDC_SCREEN_SAVER, wGS(OPTION_DISABLE_SS).c_str());
|
||||
|
|
|
@ -9,7 +9,7 @@ COptionPluginPage::COptionPluginPage(HWND hParent, const RECT & rcDispay)
|
|||
return;
|
||||
}
|
||||
|
||||
//Set the text for all gui Items
|
||||
// Set the text for all GUI items
|
||||
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||
|
@ -98,7 +98,7 @@ void COptionPluginPage::ShowAboutButton(int id)
|
|||
return;
|
||||
}
|
||||
|
||||
//Load the plugin
|
||||
// Load the plugin
|
||||
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
HMODULE hLib = LoadLibrary(stdstr((const char *)(Plugin->FullPath)).ToUTF16().c_str());
|
||||
SetErrorMode(LastErrorMode);
|
||||
|
@ -107,11 +107,11 @@ void COptionPluginPage::ShowAboutButton(int id)
|
|||
return;
|
||||
}
|
||||
|
||||
//Get DLL about
|
||||
// Get DLL about
|
||||
void(CALL *DllAbout) (HWND hWnd);
|
||||
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
||||
|
||||
//call the function from the dll
|
||||
// Call the function from the DLL
|
||||
DllAbout(m_hWnd);
|
||||
|
||||
FreeLibrary(hLib);
|
||||
|
|
Loading…
Reference in New Issue