From d1c5cd7b0a6f7dc52f06627fd161416f0ece0c3c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 10 Oct 2024 08:35:58 +0200 Subject: [BOX32][TRACE] Small improvment to SDL_RWFromFile trace --- src/emu/x86int3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c index 66c362f4..4f63f7b3 100755 --- a/src/emu/x86int3.c +++ b/src/emu/x86int3.c @@ -105,7 +105,7 @@ void x86Int3(x64emu_t* emu, uintptr_t* addr) pu8 = from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)); post = 10; } else if(strstr(s, "SDL_RWFromFile")==s || strstr(s, "SDL_RWFromFile")==s) { - snprintf(buff, 255, "%04d|%p: Calling %s(%s, %s)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), (char *)s, (char *)from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)), (char *)from_ptrv(*(ptr_t*)from_ptr(R_ESP+8))); + snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", \"%s\")", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), (char *)s, (char *)from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)), (char *)from_ptrv(*(ptr_t*)from_ptr(R_ESP+8))); } else if(strstr(s, "SDL_WarpMouse")==s) { snprintf(buff, 255, "%04d|%p: Calling %s(%hd, %hd)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), (char *)s, *(uint16_t*)from_ptr(R_ESP+4), *(uint16_t*)from_ptr(R_ESP+8)); } else if(strstr(s, "glColor4f")==s) { -- cgit 1.4.1