Update SettingsPage-Game-Plugin.cpp
Fix spacing, title case, capitalization, and add newline
This commit is contained in:
parent
861cea4b4c
commit
ebeddb8d47
|
@ -10,7 +10,7 @@ CGamePluginPage::CGamePluginPage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
|
@ -106,7 +106,7 @@ void CGamePluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load the plugin
|
// Load the plugin
|
||||||
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
|
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
|
||||||
SetErrorMode(LastErrorMode);
|
SetErrorMode(LastErrorMode);
|
||||||
|
@ -115,11 +115,11 @@ void CGamePluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get DLL about
|
// Get DLL about
|
||||||
void(CALL *DllAbout) (HWND hWnd);
|
void(CALL *DllAbout) (HWND hWnd);
|
||||||
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
||||||
|
|
||||||
//call the function from the dll
|
// Call the function from the DLL
|
||||||
DllAbout(m_hWnd);
|
DllAbout(m_hWnd);
|
||||||
|
|
||||||
FreeLibrary(hLib);
|
FreeLibrary(hLib);
|
||||||
|
@ -335,4 +335,4 @@ void CGamePluginPage::HleAudioChanged(UINT /*Code*/, int id, HWND /*ctl*/)
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue