2022-03-10 10:18:53 +01:00
|
|
|
#ifdef COOP
|
|
|
|
#include "dynos.cpp.h"
|
2022-03-11 03:16:12 +01:00
|
|
|
|
2022-03-10 10:18:53 +01:00
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
bool dynos_warp_to_level(s32 aLevel, s32 aArea, s32 aAct) {
|
|
|
|
return DynOS_Warp_ToLevel(aLevel, aArea, aAct);
|
|
|
|
}
|
|
|
|
|
2022-03-11 03:16:12 +01: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;
|
|
|
|
return path.substr(path.find(DYNOS_PACKS_FOLDER) + DYNOS_PACK_PATH_SPLIT_LEN).c_str();
|
|
|
|
}
|
|
|
|
|
|
|
|
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-10 10:18:53 +01:00
|
|
|
}
|
|
|
|
#endif
|