wrote documentation for spritesheet, and worked on adding spritesheet to graphics config
This commit is contained in:
parent
bbffbe1cb3
commit
83b87c6d63
9 changed files with 136 additions and 126 deletions
|
|
@ -739,6 +739,17 @@ void ARC_Config_LoadFromFile(ARC_Config *config, ARC_String *path){
|
|||
ARC_Parser_ParseFile(config->parser, path);
|
||||
}
|
||||
|
||||
void ARC_Config_LoadFromFileWithCStr(ARC_Config *config, const char *path){
|
||||
config->load = ARC_True;
|
||||
|
||||
ARC_String *pathString;
|
||||
ARC_String_CreateWithStrlen(&pathString, (char *)path);
|
||||
|
||||
ARC_Parser_ParseFile(config->parser, pathString);
|
||||
|
||||
ARC_String_Destroy(pathString);
|
||||
}
|
||||
|
||||
void ARC_Config_UnloadFromString(ARC_Config *config, ARC_String **string){
|
||||
config->load = ARC_False;
|
||||
ARC_Parser_Parse(config->parser, string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue