diff include/core/config.h @ 189:649786bae914

*: etc. code cleanup I've removed most macros and stuff dep/animia: [UNTESTED] use raw C++ instead of Objective-C++
author Paper <mrpapersonic@gmail.com>
date Wed, 06 Dec 2023 19:42:33 -0500
parents 62e336597bb7
children 53211cb1e7f5
line wrap: on
line diff
--- a/include/core/config.h	Wed Dec 06 13:44:36 2023 -0500
+++ b/include/core/config.h	Wed Dec 06 19:42:33 2023 -0500
@@ -59,23 +59,12 @@
 		} torrents;
 };
 
-#define WIDEIFY_EX(x) L##x
-#define WIDEIFY(x)    WIDEIFY_EX(x)
-
-/* only on these platforms keep this uppercase.
-   this will not remove compatibility with older
-   versions, since these platforms are case insensitive
-   (on macOS, only by default) */
 #if (defined(WIN32) || defined(MACOSX))
-#define CONFIG_DIR    "Minori"
+constexpr std::string_view CONFIG_DIR = "Minori";
 #else
-#define CONFIG_DIR    "minori"
+constexpr std::string_view CONFIG_DIR = "minori";
 #endif
 
-#define CONFIG_WDIR   WIDEIFY(CONFIG_DIR)
-#define CONFIG_NAME   "config.ini"
-#define CONFIG_WNAME  WIDEIFY(CONFIG_NAME)
-
-#define MAX_LINE_LENGTH 256
+constexpr std::string_view CONFIG_NAME = "config.ini";
 
 #endif // __core__config_h