Permalink
Comparing changes
Open a pull request
- 6 commits
- 4 files changed
- 0 commit comments
- 3 contributors
Unified
Split
Showing
with
14 additions
and 7 deletions.
- +1 −1 Makefile
- +1 −1 NX_Sysmodules
- +1 −0 src/error.c
- +11 −5 src/firmware.c
| @@ -4,7 +4,7 @@ ifeq ($(strip $(DEVKITARM)),) | ||
| $(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM") | ||
| endif | ||
| CC = $(DEVKITARM)/bin/arm-none-eabi-gcc | ||
| include $(DEVKITARM)/base_tools | ||
| LD = $(DEVKITARM)/bin/arm-none-eabi-ld | ||
| OBJCOPY = $(DEVKITARM)/bin/arm-none-eabi-objcopy | ||
Submodule NX_Sysmodules
updated
12 files
| +2 −0 | README.md | |
| +36 −42 | libstratosphere/include/stratosphere/hossynch.hpp | |
| +2 −2 | loader/source/ldr_nso.cpp | |
| +1 −0 | pm/pm.json | |
| +1 −0 | pm/source/pm_boot2.cpp | |
| +1 −0 | pm/source/pm_boot2.hpp | |
| +10 −0 | pm/source/pm_debug_monitor.cpp | |
| +3 −0 | pm/source/pm_debug_monitor.hpp | |
| +8 −8 | pm/source/pm_main.cpp | |
| +10 −0 | pm/source/pm_registration.cpp | |
| +12 −11 | pm/source/pm_registration.hpp | |
| +87 −39 | pm/source/pm_resource_limits.cpp |
| @@ -30,6 +30,7 @@ void panic() { | ||
| } | ||
| void error(char *errStr) { | ||
| gfx_con.mute = 0; | ||
| gfx_con_setcol(&gfx_con, RED, 0, 0); | ||
| print("Error: %s", errStr); | ||
| gfx_con_setcol(&gfx_con, DEFAULT_TEXT_COL, 0, 0); | ||
| @@ -25,13 +25,14 @@ | ||
| static pk11_offs *pk11Offs = NULL; | ||
| void drawSplash() { | ||
| int drawSplash() { | ||
| // Draw splashscreen to framebuffer. | ||
| if(fopen("/ReiNX/splash.bin", "rb") != 0) { | ||
| fread((void*)0xC0000000, fsize(), 1); | ||
| fclose(); | ||
| usleep(3000000); | ||
| return 1; | ||
| } | ||
| return 0; | ||
| } | ||
| pk11_offs *pkg11_offsentify(u8 *pkg1) { | ||
| @@ -309,7 +310,7 @@ void firmware() { | ||
| i2c_send_byte(I2C_5, 0x3C, MAX77620_REG_ONOFFCNFG1, MAX77620_ONOFFCNFG1_PWR_OFF); | ||
| btn_wait(); | ||
| } | ||
| if(PMC(APBDEV_PMC_SCRATCH49) != 69 && fopen("/ReiNX.bin", "rb")) { | ||
| fread((void*)PAYLOAD_ADDR, fsize(), 1); | ||
| fclose(); | ||
| @@ -322,9 +323,14 @@ void firmware() { | ||
| } | ||
| SYSREG(AHB_AHB_SPARE_REG) = (volatile vu32)0xFFFFFF9F; | ||
| PMC(APBDEV_PMC_SCRATCH49) = 0; | ||
| if (btn_read() & BTN_VOL_DOWN) { | ||
| print("Booting verbosely\n"); | ||
| } else if (drawSplash()) { | ||
| gfx_con.mute = 1; | ||
| } | ||
| print("Welcome to ReiNX %s!\n", VERSION); | ||
| loadFirm(); | ||
| drawSplash(); | ||
| launch(); | ||
| } | ||