mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-18 06:12:20 -05:00
9bed5af33b
* Remove unused headers * Move all "ResourceMgr_" functions to a new file * Don't transitively include SaveManager * Move cvar prefixes to a new header * Add missing includes * Update OTRGlobals.cpp * Fix build * Address review * Fix some of the errors * Update gameplaystats.h * Update z_en_in.c * Hopefully fix the linux issues * Fix Linux issues for real this time, I checked * Update ResourceManagerHelpers.cpp * Update z_obj_mure2.c * Post-merge fixes * Fix build (hopefully) * Post-merge fixes * Update z_file_nameset_PAL.c * cleanup some unnecessary headers (#7) --------- Co-authored-by: Archez <Archez@users.noreply.github.com>
66 lines
2.9 KiB
C++
66 lines
2.9 KiB
C++
#pragma once
|
|
|
|
#include "libultraship/libultra/types.h"
|
|
|
|
#define GAME_REGION_NTSC 0
|
|
#define GAME_REGION_PAL 1
|
|
|
|
#define GAME_PLATFORM_N64 0
|
|
#define GAME_PLATFORM_GC 1
|
|
|
|
#ifdef __cplusplus
|
|
#include <memory>
|
|
#include <Resource.h>
|
|
|
|
std::shared_ptr<Ship::IResource> ResourceMgr_GetResourceByNameHandlingMQ(const char* path);
|
|
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
#include "z64animation.h"
|
|
#include "z64audio.h"
|
|
#include "z64bgcheck.h"
|
|
uint32_t ResourceMgr_IsGameMasterQuest();
|
|
uint32_t ResourceMgr_IsSceneMasterQuest(s16 sceneNum);
|
|
uint32_t ResourceMgr_GameHasMasterQuest();
|
|
uint32_t ResourceMgr_GameHasOriginal();
|
|
uint32_t ResourceMgr_GetNumGameVersions();
|
|
uint32_t ResourceMgr_GetGameVersion(int index);
|
|
uint32_t ResourceMgr_GetGamePlatform(int index);
|
|
uint32_t ResourceMgr_GetGameRegion(int index);
|
|
void ResourceMgr_LoadDirectory(const char* resName);
|
|
void ResourceMgr_UnloadResource(const char* resName);
|
|
char** ResourceMgr_ListFiles(const char* searchMask, int* resultSize);
|
|
uint8_t ResourceMgr_FileExists(const char* resName);
|
|
uint8_t ResourceMgr_FileAltExists(const char* resName);
|
|
void ResourceMgr_UnloadOriginalWhenAltExists(const char* resName);
|
|
uint8_t ResourceMgr_TexIsRaw(const char* texPath);
|
|
uint8_t ResourceMgr_ResourceIsBackground(char* texPath);
|
|
char* ResourceMgr_LoadJPEG(char* data, size_t dataSize);
|
|
uint16_t ResourceMgr_LoadTexWidthByName(char* texPath);
|
|
uint16_t ResourceMgr_LoadTexHeightByName(char* texPath);
|
|
char* ResourceMgr_LoadTexOrDListByName(const char* filePath);
|
|
char* ResourceMgr_LoadPlayerAnimByName(const char* animPath);
|
|
AnimationHeaderCommon* ResourceMgr_LoadAnimByName(const char* path);
|
|
char* ResourceMgr_GetNameByCRC(uint64_t crc, char* alloc);
|
|
Gfx* ResourceMgr_LoadGfxByCRC(uint64_t crc);
|
|
Gfx* ResourceMgr_LoadGfxByName(const char* path);
|
|
uint8_t ResourceMgr_FileIsCustomByName(const char* path);
|
|
void ResourceMgr_PatchGfxByName(const char* path, const char* patchName, int index, Gfx instruction);
|
|
void ResourceMgr_UnpatchGfxByName(const char* path, const char* patchName);
|
|
char* ResourceMgr_LoadArrayByNameAsVec3s(const char* path);
|
|
Vtx* ResourceMgr_LoadVtxByCRC(uint64_t crc);
|
|
Vtx* ResourceMgr_LoadVtxByName(char* path);
|
|
SoundFont* ResourceMgr_LoadAudioSoundFont(const char* path);
|
|
SequenceData ResourceMgr_LoadSeqByName(const char* path);
|
|
SoundFontSample* ResourceMgr_LoadAudioSample(const char* path);
|
|
CollisionHeader* ResourceMgr_LoadColByName(const char* path);
|
|
bool ResourceMgr_IsAltAssetsEnabled();
|
|
SkeletonHeader* ResourceMgr_LoadSkeletonByName(const char* path, SkelAnime* skelAnime);
|
|
void ResourceMgr_UnregisterSkeleton(SkelAnime* skelAnime);
|
|
void ResourceMgr_ClearSkeletons();
|
|
s32* ResourceMgr_LoadCSByName(const char* path);
|
|
int ResourceMgr_OTRSigCheck(char* imgData);
|
|
char* ResourceMgr_GetResourceDataByNameHandlingMQ(const char* path);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|