diff --git a/.gitignore b/.gitignore index ecc6ce4..3964880 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -VitaVolume CMakeCache.txt eboot.bin* cmake_install.cmake @@ -9,5 +8,5 @@ cmake_install.cmake CMakeFiles/ CMakeFiles/* Makefile -.vs-code/* -.vs-code +.vscode/* +.vscode diff --git a/CMakeLists.txt b/CMakeLists.txt index f2d1aae..1f67424 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,27 +8,19 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) endif() endif() -project(VitaMGR) +project(VitaMANAGER) include("${VITASDK}/share/vita.cmake" REQUIRED) set(VITA_APP_NAME "Vita Manager") -set(VITA_TITLEID "VITAVOLUM") - +set(VITA_TITLEID "VSDK00014") set(VITA_VERSION "01.00") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") -set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -s CATEGORY=gdb") -set(VITA_MAKE_FSELF_FLAGS "${VITA_MAKE_FSELF_FLAGS}") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") -include_directories( -) -link_directories( - ${CMAKE_CURRENT_BINARY_DIR} -) add_executable(${PROJECT_NAME} src/main.c @@ -47,14 +39,9 @@ target_link_libraries(${PROJECT_NAME} SceLibc_stub ) -vita_create_self(eboot.bin ${PROJECT_NAME} UNSAFE) -vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} eboot.bin +vita_create_self(${PROJECT_NAME}.self ${PROJECT_NAME} UNSAFE) +vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self VERSION ${VITA_VERSION} NAME ${VITA_APP_NAME} - - FILE sce_sys/icon0.png sce_sys/icon0.png - FILE sce_sys/livearea/contents/bg.png sce_sys/livearea/contents/bg.png - #FILE sce_sys/livearea/contents/startup.png sce_sys/livearea/contents/startup.png - FILE sce_sys/livearea/contents/template.xml sce_sys/livearea/contents/template.xml ) diff --git a/VitaMGR b/VitaMGR deleted file mode 100755 index b84f61e..0000000 Binary files a/VitaMGR and /dev/null differ diff --git a/sce_sys/icon0.png b/sce_sys/icon0.png index 1bdeb3e..8094bba 100644 Binary files a/sce_sys/icon0.png and b/sce_sys/icon0.png differ diff --git a/src/main.c b/src/main.c index 89d9305..fcbd459 100644 --- a/src/main.c +++ b/src/main.c @@ -43,6 +43,7 @@ void databasePage() { clearScreen(0); + sceKernelDelayThread(200000); printf("Press R trigger to rebuild database\n"); printf("Press CIRCLE to go back to the main menu\n"); while(1){ @@ -112,6 +113,7 @@ void volumePage(){ } void powerPage(){ + sceKernelDelayThread(200000); int batteryLifeTime = 0; //credits to the vitasdk samples for this one. clearScreen(0); @@ -157,6 +159,9 @@ int main(){ case SCE_CTRL_LTRIGGER: volumePage(); break; + case SCE_CTRL_TRIANGLE: + powerPage(); + break; default: break;