From 8078b90f518c8245c2601e0ea587ee794540619b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 22 Sep 2025 16:52:55 -0700 Subject: [PATCH] text_cache / dasm_cache -> text / disasm --- src/{dasm_cache/dasm_cache.c => disasm/disasm.c} | 0 src/{dasm_cache/dasm_cache.h => disasm/disasm.h} | 6 +++--- src/raddbg/raddbg_main.c | 8 ++++---- src/{text_cache/text_cache.c => text/text.c} | 0 src/{text_cache/text_cache.h => text/text.h} | 6 +++--- src/texture_cache/texture_cache.c | 15 +++++++++++++++ src/texture_cache/texture_cache.h | 6 ++++++ 7 files changed, 31 insertions(+), 10 deletions(-) rename src/{dasm_cache/dasm_cache.c => disasm/disasm.c} (100%) rename src/{dasm_cache/dasm_cache.h => disasm/disasm.h} (94%) rename src/{text_cache/text_cache.c => text/text.c} (100%) rename src/{text_cache/text_cache.h => text/text.h} (95%) diff --git a/src/dasm_cache/dasm_cache.c b/src/disasm/disasm.c similarity index 100% rename from src/dasm_cache/dasm_cache.c rename to src/disasm/disasm.c diff --git a/src/dasm_cache/dasm_cache.h b/src/disasm/disasm.h similarity index 94% rename from src/dasm_cache/dasm_cache.h rename to src/disasm/disasm.h index 15472faa..b1acf658 100644 --- a/src/dasm_cache/dasm_cache.h +++ b/src/disasm/disasm.h @@ -1,8 +1,8 @@ // Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) -#ifndef DASM_CACHE_H -#define DASM_CACHE_H +#ifndef DISASM_H +#define DISASM_H //////////////////////////////// //~ rjf: Disassembly Syntax Types @@ -202,4 +202,4 @@ internal void dasm_artifact_destroy(void *ptr); internal DASM_Info dasm_info_from_hash_params(Access *access, U128 hash, DASM_Params *params); internal DASM_Info dasm_info_from_key_params(Access *access, C_Key key, DASM_Params *params, U128 *hash_out); -#endif // DASM_CACHE_H +#endif // DISASM_H diff --git a/src/raddbg/raddbg_main.c b/src/raddbg/raddbg_main.c index 9f502c45..33939e69 100644 --- a/src/raddbg/raddbg_main.c +++ b/src/raddbg/raddbg_main.c @@ -228,7 +228,7 @@ #include "mdesk/mdesk.h" #include "content/content.h" #include "file_stream/file_stream.h" -#include "text_cache/text_cache.h" +#include "text/text.h" #include "mutable_text/mutable_text.h" #include "coff/coff.h" #include "coff/coff_parse.h" @@ -251,7 +251,7 @@ #include "regs/regs.h" #include "regs/rdi/regs_rdi.h" #include "dbgi/dbgi.h" -#include "dasm_cache/dasm_cache.h" +#include "disasm/disasm.h" #include "demon/demon_inc.h" #include "eval/eval_inc.h" #include "eval_visualization/eval_visualization_inc.h" @@ -278,7 +278,7 @@ #include "mdesk/mdesk.c" #include "content/content.c" #include "file_stream/file_stream.c" -#include "text_cache/text_cache.c" +#include "text/text.c" #include "mutable_text/mutable_text.c" #include "coff/coff.c" #include "coff/coff_parse.c" @@ -301,7 +301,7 @@ #include "regs/regs.c" #include "regs/rdi/regs_rdi.c" #include "dbgi/dbgi.c" -#include "dasm_cache/dasm_cache.c" +#include "disasm/disasm.c" #include "demon/demon_inc.c" #include "eval/eval_inc.c" #include "eval_visualization/eval_visualization_inc.c" diff --git a/src/text_cache/text_cache.c b/src/text/text.c similarity index 100% rename from src/text_cache/text_cache.c rename to src/text/text.c diff --git a/src/text_cache/text_cache.h b/src/text/text.h similarity index 95% rename from src/text_cache/text_cache.h rename to src/text/text.h index ba687a4e..bc41db58 100644 --- a/src/text_cache/text_cache.h +++ b/src/text/text.h @@ -1,8 +1,8 @@ // Copyright (c) Epic Games Tools // Licensed under the MIT license (https://opensource.org/license/mit/) -#ifndef TEXT_CACHE_H -#define TEXT_CACHE_H +#ifndef TEXT_H +#define TEXT_H //////////////////////////////// //~ rjf: Value Types @@ -208,4 +208,4 @@ internal void txt_artifact_destroy(void *ptr); internal TXT_TextInfo txt_text_info_from_hash_lang(Access *access, U128 hash, TXT_LangKind lang); internal TXT_TextInfo txt_text_info_from_key_lang(Access *access, C_Key key, TXT_LangKind lang, U128 *hash_out); -#endif // TEXT_CACHE_H +#endif // TEXT_H diff --git a/src/texture_cache/texture_cache.c b/src/texture_cache/texture_cache.c index a5b598a2..eb111261 100644 --- a/src/texture_cache/texture_cache.c +++ b/src/texture_cache/texture_cache.c @@ -263,3 +263,18 @@ tex_tick(void) scratch_end(scratch); ProfEnd(); } + +//////////////////////////////// +//~ rjf: Artifact Cache Hooks / Lookups + +internal void * +tex_artifact_create(String8 key, B32 *retry_out) +{ + +} + +internal void +tex_artifact_destroy(void *ptr) +{ + +} diff --git a/src/texture_cache/texture_cache.h b/src/texture_cache/texture_cache.h index 6eece14c..18fa5011 100644 --- a/src/texture_cache/texture_cache.h +++ b/src/texture_cache/texture_cache.h @@ -109,4 +109,10 @@ internal R_Handle tex_texture_from_key_topology(Access *access, C_Key key, TEX_T internal void tex_tick(void); +//////////////////////////////// +//~ rjf: Artifact Cache Hooks / Lookups + +internal void *tex_artifact_create(String8 key, B32 *retry_out); +internal void tex_artifact_destroy(void *ptr); + #endif // TEXTURE_CACHE_H