MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / FileExists

Method FileExists

Source/ResourceMan.cpp:495–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495bool cResourceMan::FileExists(const std::string& pPath) const {
496 struct stat info;
497
498 if (stat(pPath.c_str(), &info) != 0)
499 return false;
500 else if (info.st_mode & S_IFDIR)
501 return true;
502 else if (info.st_mode & S_IFMT)
503 return true;
504
505 return false;
506}
507
508#ifdef WIN32
509#include "Windows.h"

Callers 8

CanUseAmigaSoundMethod · 0.80
getDataFilePathMethod · 0.80
setDemoNameMethod · 0.80
RunTestsMethod · 0.80
StartMethod · 0.80
getMapMethod · 0.80
getSpritesMethod · 0.80
Music_PlayFileMethod · 0.80

Calls 1

statClass · 0.85

Tested by 3

setDemoNameMethod · 0.64
RunTestsMethod · 0.64
StartMethod · 0.64