Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 188:168382a89b21 | 189:649786bae914 |
|---|---|
| 57 public: | 57 public: |
| 58 std::string feed_link; | 58 std::string feed_link; |
| 59 } torrents; | 59 } torrents; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #define WIDEIFY_EX(x) L##x | |
| 63 #define WIDEIFY(x) WIDEIFY_EX(x) | |
| 64 | |
| 65 /* only on these platforms keep this uppercase. | |
| 66 this will not remove compatibility with older | |
| 67 versions, since these platforms are case insensitive | |
| 68 (on macOS, only by default) */ | |
| 69 #if (defined(WIN32) || defined(MACOSX)) | 62 #if (defined(WIN32) || defined(MACOSX)) |
| 70 #define CONFIG_DIR "Minori" | 63 constexpr std::string_view CONFIG_DIR = "Minori"; |
| 71 #else | 64 #else |
| 72 #define CONFIG_DIR "minori" | 65 constexpr std::string_view CONFIG_DIR = "minori"; |
| 73 #endif | 66 #endif |
| 74 | 67 |
| 75 #define CONFIG_WDIR WIDEIFY(CONFIG_DIR) | 68 constexpr std::string_view CONFIG_NAME = "config.ini"; |
| 76 #define CONFIG_NAME "config.ini" | |
| 77 #define CONFIG_WNAME WIDEIFY(CONFIG_NAME) | |
| 78 | |
| 79 #define MAX_LINE_LENGTH 256 | |
| 80 | 69 |
| 81 #endif // __core__config_h | 70 #endif // __core__config_h |
