diff --git a/src/Components/Modules/FileSystem.cpp b/src/Components/Modules/FileSystem.cpp index 00408819..ab6970f2 100644 --- a/src/Components/Modules/FileSystem.cpp +++ b/src/Components/Modules/FileSystem.cpp @@ -202,7 +202,7 @@ namespace Components return fileList; } - bool FileSystem::DeleteFile(const std::string& folder, const std::string& file) + bool FileSystem::_DeleteFile(const std::string& folder, const std::string& file) { char path[MAX_PATH] = { 0 }; Game::FS_BuildPathToFile(Dvar::Var("fs_basepath").get(), reinterpret_cast(0x63D0BB8), Utils::String::VA("%s/%s", folder.data(), file.data()), reinterpret_cast(&path)); diff --git a/src/Components/Modules/FileSystem.hpp b/src/Components/Modules/FileSystem.hpp index 542e68e7..2a1064f5 100644 --- a/src/Components/Modules/FileSystem.hpp +++ b/src/Components/Modules/FileSystem.hpp @@ -92,7 +92,7 @@ namespace Components static std::filesystem::path GetAppdataPath(); static std::vector GetFileList(const std::string& path, const std::string& extension); static std::vector GetSysFileList(const std::string& path, const std::string& extension, bool folders = false); - static bool DeleteFile(const std::string& folder, const std::string& file); + static bool _DeleteFile(const std::string& folder, const std::string& file); private: static std::mutex Mutex; diff --git a/src/Components/Modules/Theatre.cpp b/src/Components/Modules/Theatre.cpp index e7d0fa41..99a645be 100644 --- a/src/Components/Modules/Theatre.cpp +++ b/src/Components/Modules/Theatre.cpp @@ -226,8 +226,8 @@ namespace Components Logger::Print("Deleting demo {}...\n", info.name); - FileSystem::DeleteFile("demos", info.name + ".dm_13"); - FileSystem::DeleteFile("demos", info.name + ".dm_13.json"); + FileSystem::_DeleteFile("demos", info.name + ".dm_13"); + FileSystem::_DeleteFile("demos", info.name + ".dm_13.json"); // Reset our ui_demo_* dvars here, because the theater menu needs it. Dvar::Var("ui_demo_mapname").set(""); @@ -310,8 +310,8 @@ namespace Components for (int i = 0; i < numDel; ++i) { Logger::Print("Deleting old demo {}\n", files[i]); - FileSystem::DeleteFile("demos", files[i].data()); - FileSystem::DeleteFile("demos", Utils::String::VA("%s.json", files[i].data())); + FileSystem::_DeleteFile("demos", files[i].data()); + FileSystem::_DeleteFile("demos", Utils::String::VA("%s.json", files[i].data())); } Command::Execute(Utils::String::VA("record auto_%lld", time(nullptr)), true); diff --git a/src/Components/Modules/VisionFile.cpp b/src/Components/Modules/VisionFile.cpp index 1a1eb6da..04ef18aa 100644 --- a/src/Components/Modules/VisionFile.cpp +++ b/src/Components/Modules/VisionFile.cpp @@ -40,7 +40,7 @@ namespace Components assert(dvar); assert(parsedValue); - Game::Dvar_SetFromStringFromSource(dvar, parsedValue, Game::DvarSetSource::DVAR_SOURCE_INTERNAL); + Game::Dvar_SetFromStringFromSource(dvar, parsedValue, Game::DVAR_SOURCE_INTERNAL); Logger::Print("Overriding '{}' from '{}'\n", dvar->name, filename); // Successfully found and tried to apply the string value to the dvar