From 678b78905cbd618cbbb06bd7f6f2520e827758ea Mon Sep 17 00:00:00 2001 From: MegaMech <7255464+MegaMech@users.noreply.github.com> Date: Fri, 6 Dec 2024 07:18:55 -0700 Subject: [PATCH] strcpy dma_textures instead of memcpy --- src/racing/memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/racing/memory.c b/src/racing/memory.c index 11e8d217c..e2aed1a58 100644 --- a/src/racing/memory.c +++ b/src/racing/memory.c @@ -489,7 +489,7 @@ u8* dma_textures(const char* texture, size_t arg1, size_t arg2) { #ifdef TARGET_N64 temp_v0 = (u8*) gNextFreeMemoryAddress; #else - u8* tex = (u8*) LOAD_ASSET(texture); + //u8* tex = (u8*) LOAD_ASSET(texture); temp_v0 = (u8*) allocate_memory(arg2); #endif @@ -504,7 +504,8 @@ u8* dma_textures(const char* texture, size_t arg1, size_t arg2) { mio0decode((u8*) temp_a0, temp_v0); gNextFreeMemoryAddress += arg2; #else - memcpy(temp_v0, tex, arg2); + //memcpy(temp_v0, tex, arg2); + strcpy(temp_v0, texture); #endif return temp_v0; }