mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:29:50 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user