Wii: Use fixed buffer
Vicki Pfau vi@endrift.com
Thu, 02 Aug 2018 23:11:44 -0700
2 files changed,
3 insertions(+),
6 deletions(-)
M
src/platform/wii/CMakeLists.txt
→
src/platform/wii/CMakeLists.txt
@@ -3,7 +3,7 @@ find_program(GXTEXCONV gxtexconv)
find_program(RAW2C raw2c) find_program(WIILOAD wiiload) -set(OS_DEFINES COLOR_16_BIT COLOR_5_6_5 USE_VFS_FILE IOAPI_NO_64) +set(OS_DEFINES COLOR_16_BIT COLOR_5_6_5 USE_VFS_FILE IOAPI_NO_64 FIXED_ROM_BUFFER) list(APPEND CORE_VFS_SRC ${CMAKE_SOURCE_DIR}/src/util/vfs/vfs-file.c ${CMAKE_SOURCE_DIR}/src/util/vfs/vfs-dirent.c ${CMAKE_SOURCE_DIR}/src/util/vfs/vfs-devlist.c) include_directories(${CMAKE_CURRENT_BINARY_DIR})
M
src/platform/wii/main.c
→
src/platform/wii/main.c
@@ -253,7 +253,8 @@
memset(audioBuffer, 0, sizeof(audioBuffer)); #ifdef FIXED_ROM_BUFFER romBufferSize = SIZE_CART0; - romBuffer = anonymousMemoryMap(romBufferSize); + romBuffer = SYS_GetArena2Lo(); + SYS_SetArena2Lo((void*)((intptr_t) romBuffer + SIZE_CART0)); #endif #if !defined(COLOR_16_BIT) && !defined(COLOR_5_6_5)@@ -529,10 +530,6 @@ VIDEO_SetBlack(true);
VIDEO_Flush(); VIDEO_WaitVSync(); mGUIDeinit(&runner); - -#ifdef FIXED_ROM_BUFFER - mappedMemoryFree(romBuffer, romBufferSize); -#endif free(fifo); free(texmem);