Skip to content

Commit

Permalink
cmake: Add module files into sce_sys
Browse files Browse the repository at this point in the history
now, we need kernel.skprx and user.suprx of the vitashell for the build
  • Loading branch information
d3m3vilurr committed Apr 12, 2018
1 parent d4ed97c commit 79cb461
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.d/build_vitashell_modules.sh
Expand Up @@ -7,11 +7,13 @@ cd $VITASDK/tmp/VitaShell*/modules/kernel
cmake .
make
make install
cp kernel.skprx $TRAVIS_BUILD_DIR/sce_sys/kernel.skprx

cd $VITASDK/tmp/VitaShell*/modules/user
cmake .
make
make install
cp user.suprx $TRAVIS_BUILD_DIR/sce_sys/user.suprx

cd $VITASDK
rm -rf $VITASDK/tmp
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -85,6 +85,8 @@ add_custom_target(${PROJECT_NAME}.vpk ALL
COMMAND vita-mksfoex -s TITLE_ID=${TITLE_ID} -s APP_VER=${APP_VER} "${TITLE}" param.sfo
COMMAND vita-pack-vpk -s param.sfo -b eboot.bin
--add ../sce_sys/icon0.png=sce_sys/icon0.png
--add ../sce_sys/kernel.skprx=sce_sys/kernel.skprx
--add ../sce_sys/user.suprx=sce_sys/user.suprx
--add ../sce_sys/livearea/contents/bg.png=sce_sys/livearea/contents/bg.png
--add ../sce_sys/livearea/contents/startup.png=sce_sys/livearea/contents/startup.png
--add ../sce_sys/livearea/contents/template.xml=sce_sys/livearea/contents/template.xml
Expand Down
6 changes: 4 additions & 2 deletions src/main.c
Expand Up @@ -844,12 +844,14 @@ void mainloop() {
}
}

#define MODULE_PATH "ux0:app/SAVEMGR00/sce_sys"

int main() {
debugNetInit(DEBUG_IP, 18194, DEBUG);

kernel_modid = taiLoadStartKernelModule("ux0:VitaShell/module/kernel.skprx",
kernel_modid = taiLoadStartKernelModule(MODULE_PATH "/kernel.skprx",
0, NULL, 0);
user_modid = sceKernelLoadStartModule("ux0:VitaShell/module/user.suprx",
user_modid = sceKernelLoadStartModule(MODULE_PATH "/user.suprx",
0, NULL, 0, NULL, NULL);

vita2d_init();
Expand Down

0 comments on commit 79cb461

Please sign in to comment.