diff options
Diffstat (limited to 'src/TxdStore.h')
-rw-r--r-- | src/TxdStore.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/TxdStore.h b/src/TxdStore.h index a9526cf2..a9e57d31 100644 --- a/src/TxdStore.h +++ b/src/TxdStore.h @@ -15,6 +15,7 @@ class CTxdStore public: static void Initialize(void); static void Shutdown(void); + static void GameShutdown(void); static int AddTxdSlot(const char *name); static void RemoveTxdSlot(int slot); static int FindTxdSlot(const char *name); @@ -23,13 +24,21 @@ public: static void PopCurrentTxd(void); static void SetCurrentTxd(int slot); static void Create(int slot); + static int GetNumRefs(int slot); static void AddRef(int slot); static void RemoveRef(int slot); static void RemoveRefWithoutDelete(int slot); static bool LoadTxd(int slot, RwStream *stream); static bool LoadTxd(int slot, const char *filename); + static bool StartLoadTxd(int slot, RwStream *stream); + static bool FinishLoadTxd(int slot, RwStream *stream); static void RemoveTxd(int slot); - static TxdDef *GetSlot(int slot) { return ms_pTxdPool->GetSlot(slot); } + static TxdDef *GetSlot(int slot) { + assert(slot >= 0); + assert(ms_pTxdPool); + assert(slot < ms_pTxdPool->GetSize()); + return ms_pTxdPool->GetSlot(slot); + } static bool isTxdLoaded(int slot); }; |