commit 11a99693
Move GAMENAME define into version.h
Changed files
| M | source/code/os.cpp before |
| M | source/code/version.h before |
diff --git a/source/code/os.cpp b/source/code/os.cpp
index 103bcf8..e04bb4a 100644
--- a/source/code/os.cpp
+++ b/source/code/os.cpp
@@ -25,17 +25,10 @@ http://blockattack.net
#include <iostream>
#include <physfs.h>
#include "sago/platform_folders.h"
+#include "version.h"
static sago::PlatformFolders pf;
-
-/*
- *Files will be saved in:
- * HOME/.local/share/"+GAMENAME (unix)
- *or DOCUMENTS/My Games/GAMENAME (Windows)
- */
-#define GAMENAME "blockattack"
-
static std::string overrideSavePath = "";
/**
diff --git a/source/code/version.h b/source/code/version.h
index 1813bb5..c070d10 100644
--- a/source/code/version.h
+++ b/source/code/version.h
@@ -17,10 +17,18 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/
Source information and contacts persons can be found at
-http://www.blockattack.net
+https://blockattack.net
===========================================================================
*/
+
+/*
+ *Files will be saved in:
+ * HOME/.local/share/"+GAMENAME (unix)
+ *or DOCUMENTS/My Games/GAMENAME (Windows)
+ */
+#define GAMENAME "blockattack"
+
#ifndef VERSION_NUMBER
#define VERSION_NUMBER "2.4.0-SNAPSHOT"
#endif