Remove helper function FileExists

Use std::filesystem at caller site instead.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2026-06-20 10:35:23 +02:00
parent 5ca4c93f55
commit 181a29597d
7 changed files with 16 additions and 28 deletions
+2 -1
View File
@@ -105,6 +105,7 @@
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <filesystem>
#include <fmt/format.h>
#include <fstream>
#include <js/CallArgs.h>
@@ -877,7 +878,7 @@ bool Autostart(const CmdLineArgs& args)
bool AutostartVisualReplay(const std::string& replayFile)
{
if (!FileExists(OsPath(replayFile)))
if (!std::filesystem::is_regular_file(replayFile))
return false;
g_Game = new CGame(false);