mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
FileExists -> VfsFileExists (see next commit)
scriptInterface: fix bool cast warning This was SVN commit r8984.
This commit is contained in:
@@ -29,14 +29,14 @@ PIVFS g_VFS;
|
||||
|
||||
static std::vector<std::pair<FileReloadFunc, void*> > g_ReloadFuncs;
|
||||
|
||||
bool FileExists(const PIVFS& vfs, const VfsPath& pathname)
|
||||
bool VfsFileExists(const PIVFS& vfs, const VfsPath& pathname)
|
||||
{
|
||||
return vfs->GetFileInfo(pathname, 0) == INFO::OK;
|
||||
}
|
||||
|
||||
bool FileExists(const VfsPath& pathname)
|
||||
bool VfsFileExists(const VfsPath& pathname)
|
||||
{
|
||||
return FileExists(g_VFS, pathname);
|
||||
return VfsFileExists(g_VFS, pathname);
|
||||
}
|
||||
|
||||
void RegisterFileReloadFunc(FileReloadFunc func, void* obj)
|
||||
|
||||
Reference in New Issue
Block a user