mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
37 lines
No EOL
858 B
C
37 lines
No EOL
858 B
C
#ifndef MODS_H
|
|
#define MODS_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
#include <types.h>
|
|
#include "src/pc/platform.h"
|
|
#include "mod.h"
|
|
|
|
#define MAX_MOD_SIZE (35 * 1048576) // 35MB
|
|
#define MOD_DIRECTORY "mods"
|
|
#define TMP_DIRECTORY "tmp"
|
|
|
|
struct Mods {
|
|
struct Mod** entries;
|
|
u16 entryCount;
|
|
size_t size;
|
|
};
|
|
|
|
extern struct Mods gLocalMods;
|
|
extern struct Mods gRemoteMods;
|
|
extern struct Mods gActiveMods;
|
|
|
|
extern char gRemoteModsBasePath[];
|
|
|
|
void mods_get_main_mod_name(char* destination, u32 maxSize);
|
|
u16 mods_get_enabled_count(void);
|
|
u16 mods_get_character_select_count(void);
|
|
bool mods_generate_remote_base_path(void);
|
|
void mods_activate(struct Mods* mods);
|
|
void mods_clear(struct Mods* mods);
|
|
void mods_delete_folder(char* path);
|
|
void mods_refresh_local(void);
|
|
void mods_enable(char* relativePath);
|
|
void mods_init(void);
|
|
void mods_shutdown(void);
|
|
|
|
#endif |