MCPcopy Create free account
hub / github.com/EasyRPG/Player / Exists

Method Exists

src/platform.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool Platform::File::Exists() const {
46#ifdef _WIN32
47 return ::GetFileAttributesW(filename.c_str()) != (DWORD)-1;
48#elif defined(__vita__)
49 struct SceIoStat sb;
50 return (::sceIoGetstat(filename.c_str(), &sb) >= 0);
51#else
52 return ::access(filename.c_str(), F_OK) != -1;
53#endif
54}
55
56bool Platform::File::IsFile(bool follow_symlinks) const {
57 return GetType(follow_symlinks) == FileType::File;

Callers 15

MakeDirectoryMethod · 0.45
DrawMethod · 0.45
BattlerReadyToActFunction · 0.45
ProcessSceneActionMethod · 0.45
OnIndexReadyMethod · 0.45
GetActiveBattlersMethod · 0.45
GetNextActiveBattlerMethod · 0.45
FileFinder_RTPMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected