mirror of https://github.com/mgba-emu/mgba.git
Wii: Use fixed buffer
This commit is contained in:
parent
179c49e5f4
commit
20c99d2f92
|
@ -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})
|
||||
|
|
|
@ -253,7 +253,8 @@ int main(int argc, char* argv[]) {
|
|||
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)
|
||||
|
@ -530,10 +531,6 @@ int main(int argc, char* argv[]) {
|
|||
VIDEO_WaitVSync();
|
||||
mGUIDeinit(&runner);
|
||||
|
||||
#ifdef FIXED_ROM_BUFFER
|
||||
mappedMemoryFree(romBuffer, romBufferSize);
|
||||
#endif
|
||||
|
||||
free(fifo);
|
||||
free(texmem);
|
||||
free(rescaleTexmem);
|
||||
|
|
Loading…
Reference in New Issue