 |
Blamite Game Engine - Strings
00311.03.29.21.1456.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:171
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:262
Namespace for Blamite's shared C++ library.
Definition: hooks.h:22
STRINGS_API bool 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:103
STRINGS_API bool CreateNewFile(std::string filename, std::string file_contents)
Creates a file with the specified contents, or overwrites an existing file if it already exists.
Definition: io.cpp:62
STRINGS_API bool 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:124
STRINGS_API std::vector< std::string > GetFileList(std::string path)
Retrieves the list of all files in a given directory.
Definition: io.cpp:234
STRINGS_API bool IsDirectory(std::string path)
Checks if a given path refers to a directory.
Definition: io.cpp:45
STRINGS_API std::string GetFileName(std::string path)
Retrieves the name of the file or folder that a given path refers to.
Definition: io.cpp:302
STRINGS_API std::string GetFileContentsAsString(std::string path)
Reads a file as a string.
Definition: io.cpp:194
STRINGS_API std::string NormalizePath(std::string path)
Normalizes a path string.
Definition: io.cpp:290
STRINGS_API bool IsFile(std::string path)
Checks if a given path refers to a regular file.
Definition: io.cpp:28
STRINGS_API bool FileExists(std::string name)
Checks if the specified file or directory exists.
Definition: io.cpp:12
STRINGS_API void OpenGameDirectory()
Opens the engine's game directory in Windows Explorer.
Definition: io.cpp:164
STRINGS_API bool 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:80
STRINGS_API void ValidatePath(std::string path)
Validates that the specified path exists.
Definition: io.cpp:148
STRINGS_API bool ReadBinaryFile(std::string path, void *data, int64_t *size)
Reads a file as raw binary data.
Definition: io.cpp:210
STRINGS_API std::vector< std::string > GetFileContentsAsLines(std::string path)
Reads a file as a list of strings.
Definition: io.cpp:178
#define STRINGS_API
Definition: io.h:8