summaryrefslogtreecommitdiff
path: root/src/maingui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/maingui.cpp')
-rw-r--r--src/maingui.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/maingui.cpp b/src/maingui.cpp
index 24619320e..8afc78a1d 100644
--- a/src/maingui.cpp
+++ b/src/maingui.cpp
@@ -1,11 +1,11 @@
/*
- * The ManaPlus Client
+ * The ManaVerse Client
* Copyright (C) 2004-2009 The Mana World Development Team
* Copyright (C) 2009-2010 The Mana Developers
* Copyright (C) 2011-2020 The ManaPlus Developers
- * Copyright (C) 2020-2023 The ManaVerse Developers
+ * Copyright (C) 2020-2025 The ManaVerse Developers
*
- * This file is part of The ManaPlus Client.
+ * This file is part of The ManaVerse Client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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;