diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..0cd1925 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,43 @@ +{ + "configurations": [ + { + "name": "DKP Aarch64 Windows", + "includePath": [ + "C:/devkitPro/devkitA64/aarch64-none-elf/include/**", + "C:/devkitPro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/include/**", + "C:/devkitPro/libnx/include/**", + "C:/devkitPro/portlibs/switch/include/**" + ], + "defines": [ + "SWITCH", + "VERSION=\"\"", + "__SWITCH__", + "__aarch64__" + ], + "compilerPath": "C:/devkitPro/devkitA64/bin/aarch64-none-elf-g++", + "cStandard": "c11", + "cppStandard": "c++17", + "intelliSenseMode": "gcc-x64" + }, + { + "name": "DKP Aarch64 Linux", + "includePath": [ + "/opt/devkitpro/devkitA64/aarch64-none-elf/include/**", + "/opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/8.3.0/include/**", + "/opt/devkitpro/libnx/include/**", + "/opt/devkitpro/portlibs/switch/include/**" + ], + "defines": [ + "SWITCH", + "VERSION=\"\"", + "__SWITCH__", + "__aarch64__" + ], + "compilerPath": "/opt/devkitpro/devkitA64/bin/aarch64-none-elf-g++", + "cStandard": "c11", + "cppStandard": "c++17", + "intelliSenseMode": "gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Makefile b/Makefile index 0748167..4d97d97 100644 --- a/Makefile +++ b/Makefile @@ -37,12 +37,11 @@ include $(DEVKITPRO)/libnx/switch_rules # of a homebrew executable (.nro). This is intended to be used for sysmodules. # NACP building is skipped as well. #--------------------------------------------------------------------------------- -TARGET := hbl +TARGET := ovll BUILD := build SOURCES := source DATA := data INCLUDES := include -#ROMFS := romfs APP_VERSION := 1.0.0 ifeq ($(RELEASE),) diff --git a/hbl.json b/ovll.json similarity index 99% rename from hbl.json rename to ovll.json index 9597887..8681706 100644 --- a/hbl.json +++ b/ovll.json @@ -1,5 +1,5 @@ { - "name": "edizon", + "name": "ovlloader", "title_id": "0x010000000007E51A", "title_id_range_min": "0x010000000007E51A", "title_id_range_max": "0x010000000007E51A", diff --git a/source/main.c b/source/main.c index b221d01..5059bd5 100644 --- a/source/main.c +++ b/source/main.c @@ -1,4 +1,6 @@ #include + +#include #include #include #include @@ -71,8 +73,12 @@ void __appInit(void) void __wrap_exit(void) { - // exit() effectively never gets called, so let's stub it out. - fatalThrow(MAKERESULT(Module_HomebrewLoader, 39)); + pmshellInitialize(); + pmshellTerminateProgram(0x010000000007E51A); + pmshellExit(); + + while (1) + svcSleepThread(INT64_MAX); } static void* g_heapAddr; @@ -203,7 +209,7 @@ void loadNro(void) int fd = open(g_nextNroPath, O_RDONLY); if (fd < 0) - fatalThrow(MAKERESULT(Module_HomebrewLoader, 3)); + exit(1); // Reset NRO path to load hbmenu by default next time. g_nextNroPath[0] = '\0';