mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Whoops
This commit is contained in:
parent
3227d17266
commit
0e9a060337
1 changed files with 1 additions and 6 deletions
|
@ -24,17 +24,12 @@ static Array<Pair<const char*, void *>>& DynosCustomActors() {
|
|||
// clean up the actor management code more
|
||||
|
||||
void DynOS_Actor_AddCustom(const SysPath &aFilename, const char *aActorName) {
|
||||
const void* georef = DynOS_Builtin_Actor_GetFromName(aActorName);
|
||||
|
||||
u16 actorLen = strlen(aActorName);
|
||||
char* actorName = (char*)calloc(1, sizeof(char) * (actorLen + 1));
|
||||
strcpy(actorName, aActorName);
|
||||
|
||||
const void* georef = DynOS_Builtin_Actor_GetFromName(aActorName);
|
||||
if (!georef) {
|
||||
PrintError(" ERROR: Couldn't find georef for \"%s\"", actorName);
|
||||
free(actorName);
|
||||
}
|
||||
|
||||
GfxData *_GfxData = DynOS_Actor_LoadFromBinary(aFilename, actorName, aFilename, false);
|
||||
if (!_GfxData) {
|
||||
PrintError(" ERROR: Couldn't load Actor Binary \"%s\" from \"%s\"", actorName, aFilename.c_str());
|
||||
|
|
Loading…
Reference in a new issue