vita: Set the required heap sizes

This commit is contained in:
Sebastian Krzyszkowiak 2021-07-22 20:59:23 +02:00
parent f20a097b59
commit 49795745cf
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF
2 changed files with 11 additions and 0 deletions

View file

@ -228,6 +228,10 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
add_definitions(-DPOCKETCHIP=1)
endif(POCKETCHIP)
if(VITA)
add_definitions(-DLIBSUPERDERPY_VITA_HEAP_SIZE=64)
endif(VITA)
if(MAEMO5 OR POCKETCHIP)
add_definitions(-DLIBSUPERDERPY_EMULATE_TOUCH=1)
endif(MAEMO5 OR POCKETCHIP)

View file

@ -24,6 +24,13 @@
#include <dlfcn.h>
#endif
#ifdef __vita__
int _newlib_heap_size_user = LIBSUPERDERPY_VITA_HEAP_SIZE * 1024 * 1024;
// PIB requires at least 2MB of SceLibc heap size
unsigned int sceLibcHeapSize = 2 * 1024 * 1024;
#endif
SYMBOL_INTERNAL void SimpleCompositor(struct Game* game) {
struct Gamestate* tmp = GetNextGamestate(game, NULL);
ClearToColor(game, game->_priv.bg);