[FileSystem]: Removed 'GetAppdataPath' function

This commit is contained in:
JerryALT 2024-06-13 23:45:32 +03:00
parent 5879552eab
commit a055a19fa0
2 changed files with 0 additions and 17 deletions

View File

@ -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);

View File

@ -11,7 +11,6 @@ namespace Components
FileSystem();
~FileSystem();
static std::filesystem::path GetAppdataPath();
private:
static std::vector<std::string> FS_Folders;
static void FS_DisplayPath_Stub();