Skip to content

Commit a6b7add

Browse files
committed
Allow the MEMSIZE value in the param.sfo file to be changed
1 parent 6c09d35 commit a6b7add

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/base/CreatePBP.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ macro(create_pbp_file)
2121
PSAR_PATH # optional, absolute path to data.psar file
2222
VERSION # optional, adds version information to PARAM.SFO
2323
OUTPUT_DIR # optional, set the output directory for the EBOOT.PBP
24+
MEMSIZE # optional, set to 1 by default for allowing access to all available memory. Can be set to 2 for better Vita compatibility, but limited memory access
2425
)
2526
set(options
2627
BUILD_PRX # optional, generates and uses PRX file instead of ELF in EBOOT.PBP
@@ -139,10 +140,13 @@ macro(create_pbp_file)
139140
)
140141
endif()
141142

143+
if (NOT ${ARG_MEMSIZE})
144+
set(ARG_MEMSIZE "1")
145+
endif()
142146
add_custom_command(
143147
TARGET ${ARG_TARGET}
144148
POST_BUILD COMMAND
145-
"${PSPDEV}/bin/mksfoex" "-d" "MEMSIZE=1" "-s" "APP_VER=${ARG_VERSION}" "${ARG_TITLE}" "${ARG_OUTPUT_DIR}/PARAM.SFO"
149+
"${PSPDEV}/bin/mksfoex" "-d" "MEMSIZE=${ARG_MEMSIZE}" "-s" "APP_VER=${ARG_VERSION}" "${ARG_TITLE}" "${ARG_OUTPUT_DIR}/PARAM.SFO"
146150
COMMENT "Calling mksfoex for target ${ARG_TARGET}"
147151
)
148152

0 commit comments

Comments
 (0)