summaryrefslogtreecommitdiffstats
path: root/src/rw/TxdStore.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-23 19:23:26 +0100
committeraap <aap@papnet.eu>2021-01-23 19:23:38 +0100
commita1d6833bac35bff1a095612216a970e5e9fc25f0 (patch)
treefd0b6add8fbea4ee799414e1c1e26fe0f7d6325f /src/rw/TxdStore.h
parentAdd PSP scaling macros (diff)
downloadre3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar.gz
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar.bz2
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar.lz
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar.xz
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.tar.zst
re3-a1d6833bac35bff1a095612216a970e5e9fc25f0.zip
Diffstat (limited to '')
-rw-r--r--src/rw/TxdStore.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rw/TxdStore.h b/src/rw/TxdStore.h
index 937fd1b7..31fcf87f 100644
--- a/src/rw/TxdStore.h
+++ b/src/rw/TxdStore.h
@@ -4,7 +4,8 @@
struct TxdDef {
RwTexDictionary *texDict;
- int refCount;
+ int16 refCount;
+ int16 refCountGu;
char name[20];
};
@@ -26,13 +27,19 @@ public:
static void Create(int slot);
static int GetNumRefs(int slot);
static void AddRef(int slot);
+ static void AddRefEvenIfNotInMemory(int slot);
+ static void AddRefGu(int slot);
static void RemoveRef(int slot);
+ static void RemoveRefGu(int slot);
static void RemoveRefWithoutDelete(int slot);
static bool LoadTxd(int slot, RwStream *stream);
+ static bool LoadTxd(int slot, void *data, void *chunk);
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 void RemoveTxd(int slot, bool notChunk = false);
+
+ static void Load(RwTexDictionary *stored, CPool<TxdDef> *pool);
static TxdDef *GetSlot(int slot) {
assert(slot >= 0);