commit 7c2a0b8d6351cd0a8aba8e5556b7d80845bedd4f Author: Alexander Popov Date: Tue May 19 00:51:24 2020 +0300 Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ef0c70 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.vpk +build/eboot.bin +build/sce_sys/param.sfo +buildsce_sysparam.sfo diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cf1ab25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md new file mode 100644 index 0000000..a46554a --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +**This tool will let you generate a vpk homebrew with lpp-vita core.** +[![asciicast](https://asciinema.org/a/rtGJOdY9LXNMkcrWIMa3taT8D.svg)](https://asciinema.org/a/rtGJOdY9LXNMkcrWIMa3taT8D) + +## How to use +- Place `index.lua` file in build folder. +- Place the eboot you prefer (unsafe or safe) in build folder and rename it as eboot.bin +- Customize images in build/sce_sys and build/sce_sys/livearea/contents with your own images (make sure to compress them with pngquant). +- Launch `build.sh` and follow the onscreen instructions. + +## Tips +You can place in build folder whatever file you want. Such files will be usable in your homebrew in app0 filesystem. +For example if you place an image in build/image.jpg, it will be usable in your script as app0:/image.jpg. + +## Safe mode limitations + +When using the safe eboot.bin for your application, you'll have a few limitations: + +- Cannot open files from paths different than `ux0:/data` or `app0:/`. +- Cannot intercept `SCE_CTRL_VOLUP`, `SCE_CTRL_VOLDOWN`, `SCE_CTRL_POWER` buttons. +- Cannot use `Controls.headsetStatus` function. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..4cd7b91 --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/sh +echo -n "Insert homebrew name: " +read TITLE +echo -n "Insert homebrew title ID (4 characters): " +read ID + +vita-mksfoex -s TITLE_ID="${ID}00001" $TITLE build/sce_sys/param.sfo +7z a -tzip "$TITLE.vpk" -r ./build/* ./build/eboot.bin diff --git a/build/sce_sys/icon0.png b/build/sce_sys/icon0.png new file mode 100644 index 0000000..7a85ebd Binary files /dev/null and b/build/sce_sys/icon0.png differ diff --git a/build/sce_sys/livearea/contents/bg.png b/build/sce_sys/livearea/contents/bg.png new file mode 100644 index 0000000..30930ad Binary files /dev/null and b/build/sce_sys/livearea/contents/bg.png differ diff --git a/build/sce_sys/livearea/contents/startup.png b/build/sce_sys/livearea/contents/startup.png new file mode 100644 index 0000000..c8d69b9 Binary files /dev/null and b/build/sce_sys/livearea/contents/startup.png differ diff --git a/build/sce_sys/livearea/contents/template.xml b/build/sce_sys/livearea/contents/template.xml new file mode 100644 index 0000000..a4d43f0 --- /dev/null +++ b/build/sce_sys/livearea/contents/template.xml @@ -0,0 +1,11 @@ + + + + + bg.png + + + + startup.png + + diff --git a/eboot_safe.bin b/eboot_safe.bin new file mode 100644 index 0000000..89ca12e Binary files /dev/null and b/eboot_safe.bin differ diff --git a/eboot_unsafe.bin b/eboot_unsafe.bin new file mode 100644 index 0000000..fc6e8f6 Binary files /dev/null and b/eboot_unsafe.bin differ