Small styling fixes.

This commit is contained in:
The Dax 2014-09-12 16:58:05 -04:00
parent 5fa929bbba
commit 1caaa59adf

View file

@ -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")