From 2cd78297274e1173d64f8f6e78383bfd6da88c7e Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:13:52 +0200 Subject: Define `fs` alias in source file where used (#747) for filesystem namespace instead of relying on implicit include Co-authored-by: Jan --- primedev/mods/autodownload/moddownloader.h | 2 ++ primedev/mods/modmanager.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'primedev/mods') diff --git a/primedev/mods/autodownload/moddownloader.h b/primedev/mods/autodownload/moddownloader.h index 10df39ce..0d851e2f 100644 --- a/primedev/mods/autodownload/moddownloader.h +++ b/primedev/mods/autodownload/moddownloader.h @@ -1,3 +1,5 @@ +namespace fs = std::filesystem; + class ModDownloader { private: diff --git a/primedev/mods/modmanager.h b/primedev/mods/modmanager.h index 233f004d..95a8fe12 100644 --- a/primedev/mods/modmanager.h +++ b/primedev/mods/modmanager.h @@ -9,6 +9,8 @@ #include #include +namespace fs = std::filesystem; + const std::string MOD_FOLDER_SUFFIX = "\\mods"; const std::string THUNDERSTORE_MOD_FOLDER_SUFFIX = "\\packages"; const std::string REMOTE_MOD_FOLDER_SUFFIX = "\\runtime\\remote\\mods"; -- cgit v1.2.3