Skip to content
Snippets Groups Projects
Commit e1e8d47d authored by PoloNX's avatar PoloNX
Browse files

first commit

parents
No related branches found
No related tags found
No related merge requests found
Showing with 490 additions and 0 deletions
/build
/PayloadReboot.code-workspace
/PayloadReboot.elf
/PayloadReboot.lst
/PayloadReboot.nacp
/PayloadReboot.nro
\ No newline at end of file
{
"configurations": [
{
"name": "3DS",
"includePath": [
"${workspaceFolder}/include/**",
"${env:DEVKITPRO}/devkitARM/arm-none-eabi/include/**",
"${env:DEVKITPRO}/devkitARM/lib/gcc/arm-none-eabi/**",
"${env:DEVKITPRO}/libctru/include/**",
"${env:DEVKITPRO}/portlibs/3ds/include/**"
],
"defines": [
"_3DS"
],
"compilerPath": "C:/devkitpro/devkitARM/bin/arm-none-eabi-gcc",
"cStandard": "c11",
"cppStandard": "c++20",
"intelliSenseMode": "linux-gcc-arm",
"compilerArgs": []
},
{
"name": "Switch",
"includePath": [
"${workspaceFolder}/include/**",
"C:/Users/geyre/source/repos/sigpatch-downloader/include/**",
"C:/DevkitPro/devkitA64/aarch64-none-elf/include/**",
"C:/DevkitPro/devkitA64/lib/gcc/aarch64-none-elf/**",
"C:/DevkitPro/libnx/include/**",
"C:/DevkitPro/portlibs/switch/include/**"
],
"defines": [
"__SWITCH__",
"__BSD_VISIBLE"
],
"compilerPath": "C:/DevkitPro/devkitA64/bin/aarch64-none-elf-g++",
"cStandard": "c11",
"cppStandard": "c++20",
"intelliSenseMode": "linux-gcc-arm64",
"compilerArgs": []
}
],
"version": 4
}
\ No newline at end of file
{"buildTargets":["all","build","clean"],"launchTargets":["home:\\geyre\\Desktop\\PayloadReboot>home:\\geyre\\Desktop\\PayloadReboot\\PayloadReboot.elf()","home:\\geyre\\Desktop\\PayloadReboot>home:\\geyre\\Desktop\\PayloadReboot\\a.out()"],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":["home:\\geyre\\Desktop\\PayloadReboot\\build","home:\\geyre\\Desktop\\PayloadReboot\\include","home:\\geyre\\Desktop\\PayloadReboot\\source","opt:\\devkitpro\\libnx\\include","opt:\\devkitpro\\portlibs\\switch\\include"],"compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/renderWindow.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/renderWindow.cpp","-o","renderWindow.o"],"compilerPath":"aarch64-none-elf-g++.exe","standard":"gnu++17"},"fileIndex":[["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\cursor.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\cursor.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/cursor.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/cursor.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/cursor.cpp","-o","cursor.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/cursor.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/cursor.cpp -o cursor.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\cursor.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\entity.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\entity.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/entity.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/entity.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/entity.cpp","-o","entity.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/entity.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/entity.cpp -o entity.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\entity.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\input.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\input.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/input.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/input.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/input.cpp","-o","input.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/input.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/input.cpp -o input.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\input.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\main.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\main.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/main.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/main.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/main.cpp","-o","main.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/main.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/main.cpp -o main.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\main.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\menu.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\menu.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/menu.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/menu.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/menu.cpp","-o","menu.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/menu.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/menu.cpp -o menu.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\menu.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\reboot.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\reboot.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/reboot.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/reboot.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/reboot.cpp","-o","reboot.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/reboot.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/reboot.cpp -o reboot.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\reboot.cpp"}}],["\\home:\\geyre\\Desktop\\PayloadReboot\\source\\renderWindow.cpp",{"uri":{"$mid":1,"fsPath":"\\home:\\geyre\\Desktop\\PayloadReboot\\source\\renderWindow.cpp","_sep":1,"path":"/home:/geyre/Desktop/PayloadReboot/source/renderWindow.cpp","scheme":"file"},"configuration":{"defines":["__SWITCH__"],"standard":"gnu++17","includePath":["home:\\geyre\\Desktop\\PayloadReboot\\include","opt:\\devkitpro\\portlibs\\switch\\include","opt:\\devkitpro\\libnx\\include","home:\\geyre\\Desktop\\PayloadReboot\\build"],"forcedInclude":[],"compilerPath":"aarch64-none-elf-g++.exe","compilerArgs":["-MMD","-MP","/home/geyre/Desktop/PayloadReboot/build/renderWindow.d","-g","-Wall","-O2","-ffunction-sections","`aarch64-none-elf-pkg-config","--cflags","sdl2","SDL2_image`","-g","-Wall","-O2","-ffunction-sections","-march=armv8-a+crc+crypto","-mtune=cortex-a57","-mtp=soft","-fPIE","-fexceptions","-fno-rtti","-fno-exceptions","-Wno-reorder","-c","/home/geyre/Desktop/PayloadReboot/source/renderWindow.cpp","-o","renderWindow.o"]},"compileCommand":{"command":"aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/renderWindow.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/renderWindow.cpp -o renderWindow.o ","directory":"home:\\geyre\\Desktop\\PayloadReboot","file":"home:\\geyre\\Desktop\\PayloadReboot\\source\\renderWindow.cpp"}}]]}}
\ No newline at end of file
make.exe build --dry-run --always-make --keep-going --print-directory
make: Entering directory '/home/geyre/Desktop/PayloadReboot'
[ -d build ] || mkdir -p build
make --no-print-directory -C build -f /home/geyre/Desktop/PayloadReboot/Makefile
echo cursor.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/cursor.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/cursor.cpp -o cursor.o
echo entity.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/entity.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/entity.cpp -o entity.o
echo input.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/input.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/input.cpp -o input.o
echo main.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/main.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/main.cpp -o main.o
echo menu.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/menu.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/menu.cpp -o menu.o
echo reboot.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/reboot.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/reboot.cpp -o reboot.o
echo renderWindow.cpp
aarch64-none-elf-g++ -MMD -MP -MF /home/geyre/Desktop/PayloadReboot/build/renderWindow.d -g -Wall -O2 -ffunction-sections `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -I/home/geyre/Desktop/PayloadReboot/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/geyre/Desktop/PayloadReboot/build -D__SWITCH__ -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder -c /home/geyre/Desktop/PayloadReboot/source/renderWindow.cpp -o renderWindow.o
echo linking PayloadReboot.elf
aarch64-none-elf-g++ -specs=/opt/devkitpro/libnx/switch.specs -g `aarch64-none-elf-pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE -Wl,-Map,PayloadReboot.map cursor.o entity.o input.o main.o menu.o reboot.o renderWindow.o -L/opt/devkitpro/portlibs/switch/lib -L/opt/devkitpro/libnx/lib -lminizip -lstdc++fs -lz -lfreetype -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx `curl-config --libs` -o /home/geyre/Desktop/PayloadReboot/PayloadReboot.elf
aarch64-none-elf-gcc-nm -CSn /home/geyre/Desktop/PayloadReboot/PayloadReboot.elf > PayloadReboot.lst
nacptool --create "PayloadReboot" "PoloNX" "0.0.1" /home/geyre/Desktop/PayloadReboot/PayloadReboot.nacp
echo built ... PayloadReboot.nacp
elf2nro /home/geyre/Desktop/PayloadReboot/PayloadReboot.elf /home/geyre/Desktop/PayloadReboot/PayloadReboot.nro --icon=/opt/devkitpro/libnx/default_icon.jpg --nacp=/home/geyre/Desktop/PayloadReboot/PayloadReboot.nacp --romfsdir=/home/geyre/Desktop/PayloadReboot/romfs
echo built ... PayloadReboot.nro
make: Leaving directory '/home/geyre/Desktop/PayloadReboot'
{
"makefile.extensionOutputFolder": "./.vscode"
}
\ No newline at end of file
This diff is collapsed.
Makefile 0 → 100644
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
endif
TOPDIR ?= $(CURDIR)
include $(DEVKITPRO)/libnx/switch_rules
APP_TITLE := PayloadReboot
APP_AUTHOR := PoloNX
APP_VERSION := 0.0.1
TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source
DATA := data
INCLUDES := include
ROMFS := romfs
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
ARCH := `$(PREFIX)pkg-config --cflags sdl2 SDL2_image` -g -Wall -O2 -ffunction-sections \
-march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
CFLAGS := -g -Wall -O2 -ffunction-sections \
$(ARCH) $(DEFINES)
CFLAGS += $(INCLUDE) -D__SWITCH__
CXXFLAGS := $(CFLAGS) -fexceptions -fno-rtti -fno-exceptions -std=gnu++17 -Wno-reorder
ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
LIBS := -lminizip -lstdc++fs -lz -lfreetype -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx `curl-config --libs`
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS) $(LIBNX)
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------
export OUTPUT := $(CURDIR)/$(TARGET)
export TOPDIR := $(CURDIR)
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
export DEPSDIR := $(CURDIR)/$(BUILD)
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
#---------------------------------------------------------------------------------
export LD := $(CC)
#---------------------------------------------------------------------------------
else
#---------------------------------------------------------------------------------
export LD := $(CXX)
#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
export OFILES_SRC := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
export OFILES := $(OFILES_BIN) $(OFILES_SRC)
export HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD)
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
ifeq ($(strip $(CONFIG_JSON)),)
jsons := $(wildcard *.json)
ifneq (,$(findstring $(TARGET).json,$(jsons)))
export APP_JSON := $(TOPDIR)/$(TARGET).json
else
ifneq (,$(findstring config.json,$(jsons)))
export APP_JSON := $(TOPDIR)/config.json
endif
endif
else
export APP_JSON := $(TOPDIR)/$(CONFIG_JSON)
endif
ifeq ($(strip $(ICON)),)
icons := $(wildcard *.jpg)
ifneq (,$(findstring $(TARGET).jpg,$(icons)))
export APP_ICON := $(TOPDIR)/$(TARGET).jpg
else
ifneq (,$(findstring icon.jpg,$(icons)))
export APP_ICON := $(TOPDIR)/icon.jpg
endif
endif
else
export APP_ICON := $(TOPDIR)/$(ICON)
endif
ifeq ($(strip $(NO_ICON)),)
export NROFLAGS += --icon=$(APP_ICON)
endif
ifeq ($(strip $(NO_NACP)),)
export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp
endif
ifneq ($(APP_TITLEID),)
export NACPFLAGS += --titleid=$(APP_TITLEID)
endif
ifneq ($(ROMFS),)
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
endif
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
all: $(BUILD)
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#---------------------------------------------------------------------------------
clean:
@echo clean ...
ifeq ($(strip $(APP_JSON)),)
@rm -fr $(BUILD) $(TARGET).nro $(TARGET).nacp $(TARGET).elf
else
@rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf
endif
#---------------------------------------------------------------------------------
else
.PHONY: all
DEPENDS := $(OFILES:.o=.d)
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
ifeq ($(strip $(APP_JSON)),)
all : $(OUTPUT).nro
ifeq ($(strip $(NO_NACP)),)
$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp
else
$(OUTPUT).nro : $(OUTPUT).elf
endif
else
all : $(OUTPUT).nsp
$(OUTPUT).nsp : $(OUTPUT).nso $(OUTPUT).npdm
$(OUTPUT).nso : $(OUTPUT).elf
endif
$(OUTPUT).elf : $(OFILES)
$(OFILES_SRC) : $(HFILES_BIN)
#---------------------------------------------------------------------------------
# you need a rule like this for each extension you use as binary data
#---------------------------------------------------------------------------------
%.bin.o %_bin.h : %.bin
#---------------------------------------------------------------------------------
@echo $(notdir $<)
@$(bin2o)
-include $(DEPENDS)
#---------------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------------
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include "Entity.hpp"
#include "Input.hpp"
#include "RenderWindow.hpp"
#include "Menu.hpp"
class Cursor{
private:
int posX = 0;
int posY = 0;
int cursorWandH = 258;
int line = 0; //line = 0 payload line line = 1 about, close and update line
int column = 0;
SDL_Rect rectCursor {0, 0, 0, 0};
void moveCursorX(bool right);
void refreshPos();
public:
Cursor();
void printCursor(RenderWindow render);
bool checkInputCursor(int value);
int getPosX(){
return posX;
}
int getPosY(){
return posY;
}
};
\ No newline at end of file
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include "Math.hpp"
class Entity
{
private:
Vector2f pos = Vector2f(50, 50);
bool animated = false;
int frames = 0;
int speed = 100;
SDL_Rect currentFrame;
SDL_Texture* tex;
int t_x = 0;
int p_x = 0;
int p_y = 0;
public:
Entity(Vector2f p_pos, SDL_Texture* p_tex, int w, int h, int x, int y);
Entity(Vector2f p_pos, SDL_Texture* p_tex, int w, int h, int x, int y, int nFrames, int mSpeed);
Vector2f& getPos();
Vector2f& addPos();
SDL_Texture* getTex();
SDL_Rect getCurrentFrame();
};
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include "Cursor.hpp"
class Input{
private:
SDL_Event event;
int inputValue = -1;
public:
Input();
int checkInput();
int getInputValue(){
return inputValue;
}
};
\ No newline at end of file
#pragma once
#include <iostream>
struct Vector2f
{
Vector2f()
:x(0.0f), y(0.0f)
{}
Vector2f(float p_x, float p_y)
:x(p_x), y(p_y)
{}
void print()
{
std::cout << x << ", " << y << std::endl;
}
float x;
float y;
};
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include "RenderWindow.hpp"
class Menu
{
private:
const int vertical = 720;
const int horizontal = 1280;
SDL_Texture* tTitle;
SDL_Texture* tInfo;
SDL_Texture* tExit;
SDL_Texture* tUpdate;
SDL_Texture* tAMS;
SDL_Texture* tHekate;
SDL_Texture* tLockpick;
SDL_Texture* tLakka;
RenderWindow window;
SDL_Rect rectTemplate;
public:
Menu(RenderWindow window);
void printAbout();
void printMenu();
};
#pragma once
#include <switch.h>
class Reboot{
public:
Reboot();
void rebootNow(int payload);
};
\ No newline at end of file
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL2_gfxPrimitives.h>
#include <iostream>
#include "Entity.hpp"
class RenderWindow
{
public:
RenderWindow(const char* p_title, int p_w, int p_h);
RenderWindow(){}
SDL_Texture* loadTexture(const char* p_filePath);
SDL_Texture* loadString(const char* text);
SDL_Renderer* getRenderer(){
return renderer;
}
int getRefreshRate();
void cleanup();
void clear();
void render(Entity& p_entity, int multiply);
void renderRect(SDL_Rect rect);
void fillRect(SDL_Rect rect, int r, int g, int b)
{
SDL_SetRenderDrawColor(renderer, r, g, b, 255);
SDL_RenderFillRect(renderer, &rect);
}
void display();
int horizontal = 0;
int vertical = 0;
void drawCircleBehindIcons();
private:
SDL_Window* window;
SDL_Renderer* renderer;
};
\ No newline at end of file
File added
romfs/gfx/exit.png

2.57 KiB

romfs/gfx/fusee.png

6.9 KiB

romfs/gfx/hekate.png

12.9 KiB

romfs/gfx/info.png

3.67 KiB

romfs/gfx/lakka.png

21.7 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment