This commit is contained in:
Nishi 2026-01-20 14:07:56 +09:00
commit f86e26cddd
11 changed files with 69 additions and 46 deletions

View file

@ -17,17 +17,17 @@ void GSInit(void) {
GSLog(GSLogInfo, "GearSrc Engine %s", version.string);
}
int GSEngineRegisterResource(GSEngine engine, const char* name, const char* path) {
GSBool GSEngineRegisterResource(GSEngine engine, const char* name, const char* path) {
GSResource resource;
if((resource = GSResourceOpen(engine, path)) != NULL) {
shput(engine->resource, name, resource);
GSLog(GSLogInfo, "Registered resource %s as %s", path, name);
return 1;
return GSTrue;
}
return 0;
return GSFalse;
}
void GSEngineUnregisterResource(GSEngine engine, const char* name) {