Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSI_VFS Namespace Reference

Namespaces

namespace  PathRestriction
 

Classes

struct  BuildDirEntListState
 

Functions

template<auto & restriction>
bool PathRestrictionMet (const ScriptRequest &rq, const std::wstring &filePath)
 
static Status BuildDirEntListCB (const VfsPath &pathname, const CFileInfo &fileINfo, uintptr_t cbData)
 
template<auto & restriction>
JS::Value BuildDirEntList (const ScriptRequest &rq, const std::wstring &path, const std::wstring &filterStr, bool recurse)
 
template<auto & restriction>
bool FileExists (const ScriptRequest &rq, const std::wstring &filename)
 
double GetFileMTime (const std::wstring &filename)
 
unsigned int GetFileSize (const std::wstring &filename)
 
template<auto & restriction>
JS::Value ReadFile (const ScriptRequest &rq, const std::wstring &filename)
 
template<auto & restriction>
JS::Value ReadFileLines (const ScriptRequest &rq, const std::wstring &filename)
 
template<auto & restriction>
JS::Value ReadJSONFile (const ScriptInterface &scriptInterface, const std::wstring &filePath)
 
template<auto & restriction>
void WriteJSONFile (const ScriptInterface &scriptInterface, const std::wstring &filePath, JS::HandleValue val1)
 
bool DeleteCampaignSave (const CStrW &filePath)
 
void RegisterScriptFunctions_ReadWriteAnywhere (const ScriptRequest &rq, const u16 flags)
 
void RegisterScriptFunctions_ReadOnlySimulation (const ScriptRequest &rq, const u16 flags)
 
void RegisterScriptFunctions_ReadOnlySimulationMaps (const ScriptRequest &rq, const u16 flags)
 

Function Documentation

◆ BuildDirEntList()

template<auto & restriction>
JS::Value JSI_VFS::BuildDirEntList ( const ScriptRequest rq,
const std::wstring &  path,
const std::wstring &  filterStr,
bool  recurse 
)

◆ BuildDirEntListCB()

static Status JSI_VFS::BuildDirEntListCB ( const VfsPath pathname,
const CFileInfo fileINfo,
uintptr_t  cbData 
)
static

◆ DeleteCampaignSave()

bool JSI_VFS::DeleteCampaignSave ( const CStrW &  filePath)

◆ FileExists()

template<auto & restriction>
bool JSI_VFS::FileExists ( const ScriptRequest rq,
const std::wstring &  filename 
)

◆ GetFileMTime()

double JSI_VFS::GetFileMTime ( const std::wstring &  filename)

◆ GetFileSize()

unsigned int JSI_VFS::GetFileSize ( const std::wstring &  filename)

◆ PathRestrictionMet()

template<auto & restriction>
bool JSI_VFS::PathRestrictionMet ( const ScriptRequest rq,
const std::wstring &  filePath 
)

◆ ReadFile()

template<auto & restriction>
JS::Value JSI_VFS::ReadFile ( const ScriptRequest rq,
const std::wstring &  filename 
)

◆ ReadFileLines()

template<auto & restriction>
JS::Value JSI_VFS::ReadFileLines ( const ScriptRequest rq,
const std::wstring &  filename 
)

◆ ReadJSONFile()

template<auto & restriction>
JS::Value JSI_VFS::ReadJSONFile ( const ScriptInterface scriptInterface,
const std::wstring &  filePath 
)

◆ RegisterScriptFunctions_ReadOnlySimulation()

void JSI_VFS::RegisterScriptFunctions_ReadOnlySimulation ( const ScriptRequest rq,
const u16  flags 
)

◆ RegisterScriptFunctions_ReadOnlySimulationMaps()

void JSI_VFS::RegisterScriptFunctions_ReadOnlySimulationMaps ( const ScriptRequest rq,
const u16  flags 
)

◆ RegisterScriptFunctions_ReadWriteAnywhere()

void JSI_VFS::RegisterScriptFunctions_ReadWriteAnywhere ( const ScriptRequest rq,
const u16  flags 
)

◆ WriteJSONFile()

template<auto & restriction>
void JSI_VFS::WriteJSONFile ( const ScriptInterface scriptInterface,
const std::wstring &  filePath,
JS::HandleValue  val1 
)