summaryrefslogtreecommitdiff
path: root/src/maingui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/maingui.cpp')
-rw-r--r--src/maingui.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/maingui.cpp b/src/maingui.cpp
index 56a1658c8..8afc78a1d 100644
--- a/src/maingui.cpp
+++ b/src/maingui.cpp
@@ -133,8 +133,6 @@ void NxDeinit()
}
#endif
-char *selfName = nullptr;
-
#ifndef UNITTESTS
#ifdef ANDROID
int main(int argc, char *argv[])
@@ -152,8 +150,6 @@ int mainGui(int argc, char *argv[])
LoadLibrary("exchndl.dll");
#endif // defined(__MINGW32__)
- selfName = argv[0];
-
parseOptions(argc, argv);
std::ios::sync_with_stdio(false);
@@ -171,9 +167,9 @@ int mainGui(int argc, char *argv[])
Mix_Init(MIX_INIT_OGG);
#endif // SDL_MIXER_VERSION_ATLEAST(1, 2, 11)
-#ifdef WIN32
+#ifdef _WIN32
SetCurrentDirectory(VirtFs::getBaseDir());
-#endif // WIN32
+#endif // _WIN32
setPriority(true);
client = new Client;