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(RAW2C raw2c)
|
||||||
find_program(WIILOAD wiiload)
|
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)
|
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})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
|
@ -253,7 +253,8 @@ int main(int argc, char* argv[]) {
|
||||||
memset(audioBuffer, 0, sizeof(audioBuffer));
|
memset(audioBuffer, 0, sizeof(audioBuffer));
|
||||||
#ifdef FIXED_ROM_BUFFER
|
#ifdef FIXED_ROM_BUFFER
|
||||||
romBufferSize = SIZE_CART0;
|
romBufferSize = SIZE_CART0;
|
||||||
romBuffer = anonymousMemoryMap(romBufferSize);
|
romBuffer = SYS_GetArena2Lo();
|
||||||
|
SYS_SetArena2Lo((void*)((intptr_t) romBuffer + SIZE_CART0));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(COLOR_16_BIT) && !defined(COLOR_5_6_5)
|
#if !defined(COLOR_16_BIT) && !defined(COLOR_5_6_5)
|
||||||
|
@ -530,10 +531,6 @@ int main(int argc, char* argv[]) {
|
||||||
VIDEO_WaitVSync();
|
VIDEO_WaitVSync();
|
||||||
mGUIDeinit(&runner);
|
mGUIDeinit(&runner);
|
||||||
|
|
||||||
#ifdef FIXED_ROM_BUFFER
|
|
||||||
mappedMemoryFree(romBuffer, romBufferSize);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
free(fifo);
|
free(fifo);
|
||||||
free(texmem);
|
free(texmem);
|
||||||
free(rescaleTexmem);
|
free(rescaleTexmem);
|
||||||
|
|
Loading…
Reference in New Issue