diff --git a/src/Components/Modules/FileSystem.cpp b/src/Components/Modules/FileSystem.cpp index fa056ea..483118e 100644 --- a/src/Components/Modules/FileSystem.cpp +++ b/src/Components/Modules/FileSystem.cpp @@ -32,22 +32,6 @@ namespace Components *names = iwdNames; } - std::filesystem::path FileSystem::GetAppdataPath() - { - PWSTR path; - if (!SUCCEEDED(SHGetKnownFolderPath(FOLDERID_LocalAppData, 0, nullptr, &path))) - { - throw std::runtime_error("Failed to read APPDATA path!"); - } - - auto _0 = gsl::finally([&path] - { - CoTaskMemFree(path); - }); - - return std::filesystem::path(path) / "iw3sp_mod"; - } - void FileSystem::FS_AddFolder(const std::string& path) { FileSystem::FS_Folders.push_back(path); diff --git a/src/Components/Modules/FileSystem.hpp b/src/Components/Modules/FileSystem.hpp index 031abf6..620b67f 100644 --- a/src/Components/Modules/FileSystem.hpp +++ b/src/Components/Modules/FileSystem.hpp @@ -11,7 +11,6 @@ namespace Components FileSystem(); ~FileSystem(); - static std::filesystem::path GetAppdataPath(); private: static std::vector FS_Folders; static void FS_DisplayPath_Stub();