2022-03-10 09:18:53 +00:00
|
|
|
#ifdef COOP
|
|
|
|
#include "dynos.cpp.h"
|
2022-03-11 02:16:12 +00:00
|
|
|
|
2022-03-10 09:18:53 +00:00
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
bool dynos_warp_to_level(s32 aLevel, s32 aArea, s32 aAct) {
|
|
|
|
return DynOS_Warp_ToLevel(aLevel, aArea, aAct);
|
|
|
|
}
|
|
|
|
|
2022-03-12 02:11:32 +00:00
|
|
|
bool dynos_warp_restart_level(void) {
|
|
|
|
return DynOS_Warp_RestartLevel();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool dynos_warp_exit_level(s32 aDelay) {
|
|
|
|
return DynOS_Warp_ExitLevel(aDelay);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool dynos_warp_to_castle(s32 aLevel) {
|
|
|
|
return DynOS_Warp_ToCastle(aLevel);
|
|
|
|
}
|
|
|
|
|
2022-03-11 02:16:12 +00:00
|
|
|
// -- dynos packs -- //
|
|
|
|
|
|
|
|
#define DYNOS_PACK_PATH_SPLIT_LEN 12
|
|
|
|
|
|
|
|
int dynos_packs_get_count(void) {
|
|
|
|
return DynOS_Gfx_GetPacks().Count();
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* dynos_packs_get(s32 index) {
|
|
|
|
std::string path = DynOS_Gfx_GetPacks()[index]->mPath;
|
2022-03-11 07:24:22 +00:00
|
|
|
|
|
|
|
// extract basename
|
|
|
|
const char* cpath = path.c_str();
|
|
|
|
const char* ctoken = cpath;
|
|
|
|
while (*ctoken != '\0') {
|
|
|
|
if (*ctoken == '/' || *ctoken == '\\') {
|
|
|
|
if (*(ctoken + 1) != '\0') {
|
|
|
|
cpath = (ctoken + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ctoken++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return cpath;
|
2022-03-11 02:16:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool dynos_packs_get_enabled(s32 index) {
|
|
|
|
return DynOS_Gfx_GetPacksEnabled()[index];
|
|
|
|
}
|
|
|
|
|
|
|
|
void dynos_packs_set_enabled(s32 index, bool value) {
|
|
|
|
DynOS_Gfx_GetPacksEnabled()[index] = value;
|
|
|
|
}
|
|
|
|
|
2022-03-17 04:26:29 +00:00
|
|
|
void dynos_generate_packs(const char* directory) {
|
|
|
|
DynOS_Gfx_GeneratePacks(directory);
|
|
|
|
}
|
|
|
|
|
2022-03-16 08:11:48 +00:00
|
|
|
void dynos_add_actor_custom(const char *modPath, const char* geoName) {
|
|
|
|
DynOS_Geo_AddActorCustom(modPath, geoName);
|
|
|
|
}
|
|
|
|
|
2022-03-14 07:11:36 +00:00
|
|
|
const void* dynos_geolayout_get(const char *name) {
|
|
|
|
return DynOS_Geo_GetActorLayoutFromName(name);
|
|
|
|
}
|
|
|
|
|
2022-03-10 09:18:53 +00:00
|
|
|
}
|
|
|
|
#endif
|