copy dolsdk2004 to tp / b_bh + e_mb done (#2299)

* move dolsdk2004 over

* cleanup some temp work

* finish and cleanup gf

* b_bh done

* d_a_e_mb done
This commit is contained in:
TakaRikka
2025-02-10 11:20:42 -08:00
committed by GitHub
parent a38e2bfeee
commit eda175afc8
540 changed files with 68042 additions and 22075 deletions
+42
View File
@@ -0,0 +1,42 @@
#ifndef _CHARPIPELINE_FILECACHE_H_
#define _CHARPIPELINE_FILECACHE_H_
#include <charPipeline/structures.h>
#ifdef __cplusplus
extern "C" {
#endif
#define DS_AUTO_PURGE 0
#define DS_NO_PURGE 1
typedef struct {
DSLink Link;
void (*Free)(Ptr* data);
char* Name;
Ptr Data;
u16 ReferenceCount;
} DSCacheNode, *DSCacheNodePtr;
typedef struct {
u8 PurgeFlag;
DSList CacheNodeList;
} DSCache, *DSCachePtr;
extern u8 DOCacheInitialized;
extern DSCache DODisplayCache;
DSCacheNodePtr DSAddCacheNode(DSCachePtr cache, char* name, Ptr data, Ptr OSFreeFunc);
void DSEmptyCache(DSCachePtr cache);
Ptr DSGetCacheObj(DSCachePtr cache, char* name);
void DSInitCache(DSCachePtr cache);
void DSPurgeCache(DSCachePtr cache);
void DSReleaseCacheObj(DSCachePtr cache, Ptr data);
void DSSetCachePurgeFlag(DSCachePtr cache, u8 purgeFlag);
void CSHInitDisplayCache(void);
#ifdef __cplusplus
}
#endif
#endif