mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Small styling fixes.
This commit is contained in:
parent
5fa929bbba
commit
1caaa59adf
1 changed files with 3 additions and 6 deletions
|
@ -403,8 +403,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||||
|
|
||||||
std::vector<std::wstring> wideArgs = GetWideCmdLine();
|
std::vector<std::wstring> wideArgs = GetWideCmdLine();
|
||||||
|
|
||||||
for (size_t i = 1; i < wideArgs.size(); ++i)
|
for (size_t i = 1; i < wideArgs.size(); ++i) {
|
||||||
{
|
|
||||||
if (wideArgs[i][0] == L'\0')
|
if (wideArgs[i][0] == L'\0')
|
||||||
continue;
|
continue;
|
||||||
if (wideArgs[i][0] == L'-') {
|
if (wideArgs[i][0] == L'-') {
|
||||||
|
@ -438,8 +437,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||||
const std::wstring gpuBackend = L"--gfx=";
|
const std::wstring gpuBackend = L"--gfx=";
|
||||||
|
|
||||||
// The rest is handled in NativeInit().
|
// The rest is handled in NativeInit().
|
||||||
for (size_t i = 1; i < wideArgs.size(); ++i)
|
for (size_t i = 1; i < wideArgs.size(); ++i) {
|
||||||
{
|
|
||||||
if (wideArgs[i][0] == L'\0')
|
if (wideArgs[i][0] == L'\0')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -464,8 +462,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||||
if (wideArgs[i] == L"--windowed")
|
if (wideArgs[i] == L"--windowed")
|
||||||
g_Config.bFullScreen = false;
|
g_Config.bFullScreen = false;
|
||||||
|
|
||||||
if (wideArgs[i].find(gpuBackend) != std::wstring::npos && wideArgs[i].size() > gpuBackend.size())
|
if (wideArgs[i].find(gpuBackend) != std::wstring::npos && wideArgs[i].size() > gpuBackend.size()) {
|
||||||
{
|
|
||||||
const std::wstring restOfOption = wideArgs[i].substr(gpuBackend.size());
|
const std::wstring restOfOption = wideArgs[i].substr(gpuBackend.size());
|
||||||
|
|
||||||
if (restOfOption == L"d3d")
|
if (restOfOption == L"d3d")
|
||||||
|
|
Loading…
Add table
Reference in a new issue