[FileSystem]: Removed 'GetAppdataPath' function
This commit is contained in:
parent
5879552eab
commit
a055a19fa0
@ -32,22 +32,6 @@ namespace Components
|
|||||||
*names = iwdNames;
|
*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)
|
void FileSystem::FS_AddFolder(const std::string& path)
|
||||||
{
|
{
|
||||||
FileSystem::FS_Folders.push_back(path);
|
FileSystem::FS_Folders.push_back(path);
|
||||||
|
@ -11,7 +11,6 @@ namespace Components
|
|||||||
|
|
||||||
FileSystem();
|
FileSystem();
|
||||||
~FileSystem();
|
~FileSystem();
|
||||||
static std::filesystem::path GetAppdataPath();
|
|
||||||
private:
|
private:
|
||||||
static std::vector<std::string> FS_Folders;
|
static std::vector<std::string> FS_Folders;
|
||||||
static void FS_DisplayPath_Stub();
|
static void FS_DisplayPath_Stub();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user