 |
Blamite Game Engine - Strings
00307.01.26.21.0804.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
6 #define STRINGS_API __declspec(dllexport)
8 #define STRINGS_API __declspec(dllimport)
STRINGS_API std::string GetApplicationDir()
Retrieves the application's working directory.
Definition: io.cpp:119
STRINGS_API std::vector< std::string > GetDirectoryList(std::string path)
Retrieves the list of all folders in the root of a given directory.
Definition: io.cpp:197
Namespace for Blamite's shared C++ library.
Definition: hooks.h:22
STRINGS_API std::vector< std::string > GetFileList(std::string path)
Retrieves the list of all files in a given directory.
Definition: io.cpp:182
STRINGS_API int CreateNewFile(std::string filename, std::string file_contents)
Creates a file with the specified contents.
Definition: io.cpp:27
STRINGS_API std::string GetFileContentsAsString(std::string path)
Reads a file as a string.
Definition: io.cpp:142
STRINGS_API bool FileExists(std::string name)
Checks if the specified file exists.
Definition: io.cpp:11
STRINGS_API void OpenGameDirectory()
Opens the engine's game directory in Windows Explorer.
Definition: io.cpp:112
STRINGS_API int CreateFileFromResource(HMODULE module_handle, std::string filename, int res_id, const char *res_type)
Creates a file with the contents pulled from the specified application resource.
Definition: io.cpp:38
STRINGS_API void ValidatePath(std::string path)
Validates that the specified path exists.
Definition: io.cpp:96
STRINGS_API bool ReadBinaryFile(std::string path, void *data, int64_t *size)
Reads a file as raw binary data.
Definition: io.cpp:158
STRINGS_API int CreateFileFromHTMLResource(HMODULE module_handle, std::string filename, int res_id)
Creates a file with the contents pulled from the specified application HTML resource.
Definition: io.cpp:59
STRINGS_API std::vector< std::string > GetFileContentsAsLines(std::string path)
Reads a file as a list of strings.
Definition: io.cpp:126
#define STRINGS_API
Definition: io.h:8
STRINGS_API int CreateFileFromPNGResource(HMODULE module_handle, std::string filename, int res_id)
Creates a file with the contents pulled from the specified application PNG resource.
Definition: io.cpp:72