![]() |
Blamite Game Engine - Blam (Core)
|
#include <string>
#include <vector>
#include <Windows.h>
Go to the source code of this file.
Namespaces | |
Blam | |
Namespace surrounding all major engine components. | |
Blam::Utils | |
Namespace containing general-purpose utilities. | |
Blam::Utils::IO | |
Utilities relating to reading/writing to and from files. | |
Functions | |
BLAM bool | Blam::Utils::IO::file_exists (std::string name) |
Checks if the specified file exists. More... | |
BLAM int | Blam::Utils::IO::CreateFile (std::string filename, std::string file_contents) |
Creates a file with the specified contents. More... | |
BLAM int | Blam::Utils::IO::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. More... | |
BLAM int | Blam::Utils::IO::CreateFileFromHTMLResource (std::string filename, int res_id, bool apply_placeholders) |
Creates a file with the contents pulled from the specified application HTML resource. More... | |
BLAM int | Blam::Utils::IO::CreateFileFromPNGResource (std::string filename, int res_id) |
Creates a file with the contents pulled from the specified application PNG resource. More... | |
BLAM void | Blam::Utils::IO::ValidatePath (std::string path) |
Validates that the specified path exists. More... | |
BLAM void | Blam::Utils::IO::OpenGameDirectory () |
Opens the engine's game directory in Windows Explorer. More... | |
BLAM std::string | Blam::Utils::IO::GetApplicationDir () |
Retrieves the application's working directory. More... | |
BLAM HRESULT | Blam::Utils::IO::GetFileAsBinary (std::string path, void *data, DWORD *size) |
Reads a file as raw binary data. More... | |
BLAM std::vector< std::string > | Blam::Utils::IO::GetFileContentsAsLines (std::string path) |
Reads a file as a list of strings. More... | |