From 906557f094e407ce21d429ef647bc75fe3179cf1 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Sat, 9 Apr 2022 13:29:41 -0700 Subject: More work on editor --- source/AppConfig.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/AppConfig.hpp') diff --git a/source/AppConfig.hpp b/source/AppConfig.hpp index 53e84b1..8d69fad 100644 --- a/source/AppConfig.hpp +++ b/source/AppConfig.hpp @@ -8,5 +8,10 @@ constexpr std::string_view kAppName = "ProjectBrussel"; // Since kAppName is initialized by a C string literal, we know it's null termianted constexpr const char* kAppNameC = kAppName.data(); +// Duplicate each as path and string so that on non-UTF-8 platforms (e.g. Windows) we can easily do string manipulation on the paths +// NOTE: even though non-const, these should not be modified outside of main() +inline std::filesystem::path dataDirPath; inline std::string dataDir; +inline std::filesystem::path assetDirPath; +inline std::string assetDir; } // namespace AppConfig -- cgit v1.2.3-70-g09d2