Function Blam::Utils::Res::get_resource¶
Defined in File res.h
Function Documentation¶
-
HRESULT
Blam::Utils::Res::get_resource(int res_id, const char *res_type, Resource *res)¶ Retrieves the specified resource as a Resource structure, containing access to the raw binary data.
Used for anything that isn’t plain text.
- Return
S_OKif the resource was read,E_FAILif it was not.- Parameters
res_id: - The ID of the resource to read.res_type: - The type of resource being read.res: - Pointer to set to the new resource.