From 982ea265b4468173d774b315f23c9340da49f969 Mon Sep 17 00:00:00 2001 From: GrapheneCt <57592952+GrapheneCt@users.noreply.github.com> Date: Sun, 19 Apr 2020 00:35:08 +0200 Subject: [PATCH] Add files via upload -Switched to DolceSDK -Some fixes --- CMakeLists.txt | 11 ++--------- appmain/main.c | 17 +---------------- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7f5a31..4080ef0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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 diff --git a/appmain/main.c b/appmain/main.c index ce996ba..ce9b384 100644 --- a/appmain/main.c +++ b/appmain/main.c @@ -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); }