Skip to content

Commit

Permalink
New CLEOAddon fn
Browse files Browse the repository at this point in the history
  • Loading branch information
RusJJ committed Apr 4, 2024
1 parent befb1ac commit d74c2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cleoaddon.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct cleo_addon_ifs_t
ScriptAddonInfo&(*GetAddonInfo)(void* handle);
void (*UpdateCompareFlag)(void* handle, uint8_t flag);
bool (*IsOpcodeAlreadyExists)(uint16_t opcode);
bool (*IsValidScriptHandle)(void* handle);
};

#endif // _CLEO_ADDON_H
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ extern "C" void OnModPreLoad()
void** fn = LookupForOpcodeFunc(CLEOOpcodesStorage, opcode);
return (fn != NULL && *fn != NULL);
};
cleo_addon_ifs.IsValidScriptHandle = IsValidScriptHandle;
RegisterInterface("CLEOAddon", &cleo_addon_ifs);
logger->Info("CLEO Addon Initialized!");
}
Expand Down

0 comments on commit d74c2a7

Please sign in to comment.