Skip to content

Commit

Permalink
first stable version I guess.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Cohen committed Apr 19, 2020
1 parent 168ceba commit 12fa011
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
5 changes: 2 additions & 3 deletions .gitignore
@@ -1,4 +1,3 @@
VitaVolume
CMakeCache.txt
eboot.bin*
cmake_install.cmake
Expand All @@ -9,5 +8,5 @@ cmake_install.cmake
CMakeFiles/
CMakeFiles/*
Makefile
.vs-code/*
.vs-code
.vscode/*
.vscode
25 changes: 6 additions & 19 deletions CMakeLists.txt
Expand Up @@ -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
Expand All @@ -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
)
Binary file removed VitaMGR
Binary file not shown.
Binary file modified sce_sys/icon0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/main.c
Expand Up @@ -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){
Expand Down Expand Up @@ -112,6 +113,7 @@ void volumePage(){
}

void powerPage(){
sceKernelDelayThread(200000);
int batteryLifeTime = 0;
//credits to the vitasdk samples for this one.
clearScreen(0);
Expand Down Expand Up @@ -157,6 +159,9 @@ int main(){
case SCE_CTRL_LTRIGGER:
volumePage();
break;
case SCE_CTRL_TRIANGLE:
powerPage();
break;
default:
break;

Expand Down

0 comments on commit 12fa011

Please sign in to comment.