 |
Blamite Game Engine - Blam (Core)
|
Go to the documentation of this file.
41 BLAM int CreateFile(std::string filename, std::string file_contents);
Namespace surrounding all major engine components.
Definition: blam_api.h:17
BLAM std::string GetApplicationDir()
Retrieves the application's working directory.
Definition: io.cpp:121
BLAM void ValidatePath(std::string path)
Validates that the specified path exists.
Definition: io.cpp:98
BLAM HRESULT GetFileAsBinary(std::string path, void *data, DWORD *size)
Reads a file as raw binary data.
Definition: io.cpp:144
BLAM void OpenGameDirectory()
Opens the engine's game directory in Windows Explorer.
Definition: io.cpp:114
BLAM int CreateFileFromHTMLResource(std::string filename, int res_id, bool apply_placeholders)
Creates a file with the contents pulled from the specified application HTML resource.
Definition: io.cpp:57
BLAM int CreateFileFromResource(std::string filename, int res_id, const char *res_type, bool apply_placeholders)
Creates a file with the contents pulled from the specified application resource.
Definition: io.cpp:39
#define BLAM
Definition: animation.h:6
BLAM bool file_exists(std::string name)
Checks if the specified file exists.
Definition: io.cpp:12
BLAM std::vector< std::string > GetFileContentsAsLines(std::string path)
Reads a file as a list of strings.
Definition: io.cpp:128
BLAM int CreateFile(std::string filename, std::string file_contents)
Creates a file with the specified contents.
Definition: io.cpp:28
BLAM int CreateFileFromPNGResource(std::string filename, int res_id)
Creates a file with the contents pulled from the specified application PNG resource.
Definition: io.cpp:75