Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
-Switched to DolceSDK
-Some fixes
  • Loading branch information
GrapheneCt authored Apr 18, 2020
1 parent 2f10c24 commit 982ea26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ add_custom_target(${PROJECT_NAME}.vpk ALL
project(appmain)
add_subdirectory(bgapputil)
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/appmain/main.c)
set_target_properties(${PROJECT_NAME}
PROPERTIES LINK_FLAGS
-nostartfiles
)
link_directories(${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(${PROJECT_NAME}
SceLibKernel_stub
Expand All @@ -68,12 +64,9 @@ target_link_libraries(${PROJECT_NAME}
SceGxm_stub_weak
vita2d_sys
)
dolce_create_self(eboot.bin appmain
CONFIG ${CMAKE_SOURCE_DIR}/appmain.yml
UNSAFE
)
dolce_create_self(eboot.bin appmain UNSAFE)

set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d ATTRIBUTE=16814080 -s CATEGORY=gdc -s PUBTOOLINFO=has_bg=1")
set(DOLCE_MKSFOEX_FLAGS "${DOLCE_MKSFOEX_FLAGS} -d ATTRIBUTE=16814080 -s CATEGORY=gdc -s PUBTOOLINFO=has_bg=1")

dolce_create_vpk(${PROJECT_NAME}.vpk BGFTP0010 eboot.bin
VERSION 01.00
Expand Down
17 changes: 1 addition & 16 deletions appmain/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,8 @@ extern int SceBgAppUtil_7C3525B5(int);

int main()
{
return sceKernelExitProcess(0);
}

int module_stop(SceSize argc, const void *args) {
return SCE_KERNEL_STOP_SUCCESS;
}

int module_exit() {
return SCE_KERNEL_STOP_SUCCESS;
}
void _start() __attribute__((weak, alias("module_start")));
int module_start(SceSize argc, void *args) {

sceSysmoduleLoadModule(SCE_SYSMODULE_BG_APP_UTIL);
SceBgAppUtil_7C3525B5(0);

main();

return SCE_KERNEL_START_SUCCESS;
return sceKernelExitProcess(0);
}

0 comments on commit 982ea26

Please sign in to comment.