all repos — mgba @ 20c99d2f929cb655866ea1a1ec23d6ca163d6d01

mGBA Game Boy Advance Emulator

Wii: Use fixed buffer
Vicki Pfau vi@endrift.com
Thu, 02 Aug 2018 23:11:44 -0700
commit

20c99d2f929cb655866ea1a1ec23d6ca163d6d01

parent

179c49e5f4c13fe79e136f85989406307d1a2ddd

2 files changed, 3 insertions(+), 6 deletions(-)

jump to
M src/platform/wii/CMakeLists.txtsrc/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.csrc/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);