mirror of https://github.com/mgba-emu/mgba.git
PSP2: Make a safe app
This commit is contained in:
parent
d9079c0610
commit
28c896eb9f
|
@ -207,7 +207,7 @@ void mCoreConfigDirectory(char* out, size_t outLength) {
|
|||
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);
|
||||
|
|
|
@ -49,7 +49,7 @@ add_custom_target(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 @@ add_custom_target(livearea
|
|||
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)
|
||||
|
|
|
@ -88,7 +88,7 @@ int main() {
|
|||
struct mGUIRunner runner = {
|
||||
.params = {
|
||||
PSP2_HORIZONTAL_PIXELS, PSP2_VERTICAL_PIXELS,
|
||||
font, "ux0:", _drawStart, _drawEnd,
|
||||
font, "ux0:data", _drawStart, _drawEnd,
|
||||
_pollInput, _pollCursor,
|
||||
_batteryState,
|
||||
0, 0,
|
||||
|
|
Loading…
Reference in New Issue