all repos — mgba @ 28c896eb9f29599112c2cbd7a8c729071f666993

mGBA Game Boy Advance Emulator

PSP2: Make a safe app
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Aug 2016 01:15:47 -0700
commit

28c896eb9f29599112c2cbd7a8c729071f666993

parent

d9079c06103ff22b8a14883b4a80341a306bb56f

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/core/config.csrc/core/config.c

@@ -207,7 +207,7 @@ }

WideCharToMultiByte(CP_UTF8, 0, wpath, -1, out, outLength, 0, 0); #elif defined(PSP2) UNUSED(portable); - snprintf(out, outLength, "ux0:/%s", projectName); + snprintf(out, outLength, "ux0:data/%s", projectName); sceIoMkdir(out, 0777); #elif defined(GEKKO) UNUSED(portable);
M src/platform/psp2/CMakeLists.txtsrc/platform/psp2/CMakeLists.txt

@@ -49,7 +49,7 @@ ${MAKE_SFO} ${PROJECT_NAME} -s TITLE_ID=MGBA00001 sce_sys/param.sfo

DEPENDS sce_sys) add_custom_target(eboot.bin - ${MAKE_FSELF} ${BINARY_NAME}.velf eboot.bin + ${MAKE_FSELF} -s ${BINARY_NAME}.velf eboot.bin DEPENDS ${BINARY_NAME}.velf) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/template.xml.in ${CMAKE_CURRENT_BINARY_DIR}/template.xml)

@@ -64,7 +64,7 @@ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/startup.png sce_sys/livearea/contents

DEPENDS sce_sys) add_custom_target(${BINARY_NAME}.vpk ALL - zip -r ${BINARY_NAME}.vpk sce_sys eboot.bin + zip -qr ${BINARY_NAME}.vpk sce_sys eboot.bin DEPENDS livearea eboot.bin param.sfo) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.vpk DESTINATION . COMPONENT ${BINARY_NAME}-psp2)
M src/platform/psp2/main.csrc/platform/psp2/main.c

@@ -88,7 +88,7 @@ struct GUIFont* font = GUIFontCreate();

struct mGUIRunner runner = { .params = { PSP2_HORIZONTAL_PIXELS, PSP2_VERTICAL_PIXELS, - font, "ux0:", _drawStart, _drawEnd, + font, "ux0:data", _drawStart, _drawEnd, _pollInput, _pollCursor, _batteryState, 0, 0,