Function Blam::Utils::IO::CreateFileFromResource¶
Defined in File io.h
Function Documentation¶
-
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.
- Return
0
- Parameters
filename
: - The path to the file to create.res_id
: - The ID of the resource to load the contents from.res_type
: - The type of resource thatres_id
is.apply_placeholders
: - Whether or not to apply placeholders to the file contents before writing.