1797 Commits

Author SHA1 Message Date
fangrong
d3d9a63bf2 lfs: Call UnMountArchive before Mount, Prevent potential issues in the RegisterArchive interface 2025-12-12 21:09:47 +01:00
PabloMK7
407c18e6fd
plugin_loader: Make plugin reply timeout configurable (#2183) 2025-09-26 17:34:31 +02:00
TuxSH
456a6b4ad7 arm9/util: use hardcoded crc luts 2025-09-08 03:29:23 +02:00
TuxSH
b3282abbf7 Patch lgy k11 to avoid allocating unused pages (bug) which was preventing 2 threads to be created 2025-08-04 18:01:14 +02:00
TuxSH
119499d28d Patch lgy k11 to skip devunit check on kernelpanic, allowing red screens to be displayed on panic
L+R+Start+Select to remove LCD fill
2025-08-04 18:00:47 +02:00
TuxSH
12b15812f2 rosalina: make sure pixel data is aligned in screenshots 2025-07-30 12:53:46 +02:00
TuxSH
55d694fbdd rosalina: we are in 2025 - update credits v13.3.3 2025-07-15 02:44:55 +02:00
TuxSH
1c980b95dc rosalina: fix display bug in MiscellaneousMenu_UpdateTimeDateNtp 2025-07-15 02:44:48 +02:00
TuxSH
da66af3f8a sysmenu: fix luminance calculation, and allow going above preset 5 in many cases.
Unlike SetLuminanceLevel, SetLuminance doesn't check if preset <= 5, and actually allows the lumiance levels provisioned for the "brightness boost mode" (brighter when adapter is plugged in), even when the feature is disabled (it is disabled for anything but the OG model, iirc).
2025-07-04 00:19:09 +02:00
TuxSH
97cc70d35d Fix issue with screen init causing brightness flickering and burn-in when booting HM after a splash on IPS panels
- previously, we left brightness voltage and LCD panel voltage on even though we disabled PWM and output signal, causing GSP to misdetect screen state in turn. Fix that (this fixes the issue mentioned above)

- Initialize the LCD controller over I2C, this fixes some rare sync issues some screen have with other Arm9 homebrew

This may not fix 100% of the issues, only the most egregious/dangerous
ones. There's still a lot of tech debt in Luma's baremetal code, that
necessitate a full rewrite to fix (not planned for this year)
2025-07-03 21:05:18 +02:00
TuxSH
59543da23d bootloader: zerofill N3DS ABL regs when autobooting DSi title
Closes #2137.

Even though (when running TWL/AGB FIRM) the SoC is in O3DS mode, and the GPU also is,
as well as most other components behaving as such (external RAM, L2C not usable, etc.),
this is NOT the case for the LCD and adaptive backlight logic which retains FULL N3DS
functionality, including a feature where the window is blended with a given color depending
on the overall relative luminance of that window.

However, Nintendo's own code mistakenly assumes the opposite, and clearly so ("if GPU in N3DS mode"
checks, not passing N3DS extra adaptive backlight (ABL) to TWL/AGB_FIRM). This has implications:

- Powersaving (ABL) settings in TWL/AGB_FIRM is inconsistent with *both* O3DS (because the new RGB blend
LUT has been set to its current value by NATIVE_FIRM) and N3DS (because "pwn_cnt" and "inertia" are missing
their N3DS-only bits)
- "rave party" when booting into TWL/AGB_FIRM or O3DS NATIVE_FIRM without these regs (well, the LUT)
initialized. Easiest way to do so is by leveraging the "DSi autooboot" feature Luma provides. It is worth
noting at least the LUT survives hardware reboots (if Nintendo were using DSi software that was using
TLNC-based reboots, they wouldn't have noticed).

Only touch the autoboot path, for now
2025-05-12 03:10:52 +02:00
TuxSH
581e591070 arm9: fix loadDeliverArg bug 2025-05-11 22:24:34 +02:00
TuxSH
8a6b766894 loader: fix nonstring warnings 2025-05-02 20:40:37 +02:00
TuxSH
5f848124c4 Fix undefined function issue in plgldr.c 2025-03-19 03:11:27 +01:00
TuxSH
b4273f9569 Fix regression introduced by latest release
As it turns out, neither f_mkdir nor fs.c function create directories recursively, only the last one
v13.3.2
2025-03-10 19:37:27 +01:00
PabloMK7
856a4b3acf Put essential files in subfolder with console ID v13.3.1 2025-03-04 22:39:42 +01:00
TuxSH
043e2d2497 Fix bug in loadNintendoFirm v13.3 2024-12-30 14:29:32 +01:00
TuxSH
b15e5fa8d6 loader: change defaults when kext not present
E.g. if ran through emulation
2024-12-29 20:30:38 +01:00
PabloMK7
1399d7ef3b plgldr: Allow loading plugins on homebrew if flag set in 3gx 2024-12-23 16:36:50 +01:00
TuxSH
60b244d6a3 Add emunand support for prototype NFIRM (by @Wack0) 2024-12-22 23:14:26 +01:00
PabloMK7
92e586cb3c Add basic support for prototype firmware
* Installs arm9 exception handlers
* Disables NAND signature checks, allowing the firmware to boot on retail devices
2024-12-08 02:00:31 +01:00
TuxSH
9b8a95a1de Fix volume override for applets (i2s2/csnd)
This feature repurposes the functionality used for the camera shutter sound.
As such, it interferes with it:
    - shutter volume is set to the override instead of its default 100% value
    - due to implementation details, having the shutter sound effect play will
      make this feature stop working until the volume override is reapplied by
      going back to this menu

Closes #2072
2024-10-20 19:37:02 +02:00
TuxSH
684c95c7e8 rosalina: in volume override menu, add support for CPAD too v13.2.1 2024-10-01 23:31:22 +02:00
TuxSH
2a7caa366e Prepare for v13.2.1 2024-10-01 23:16:57 +02:00
TuxSH
d2bf10733b Rewrite README, add screenshots 2024-10-01 20:41:32 +02:00
TuxSH
78fe559eb6 Rename LICENSE (same GPLv3 terms, prune history) 2024-10-01 17:47:24 +02:00
TuxSH
0d0a549967 Prepare LICENSE for rename 2024-10-01 17:46:48 +02:00
TuxSH
e96f2efc7e rosalina: add bottom screen color curve that was thought to be incorrect
Use separate toggle in the same submenu as top screen
2024-10-01 01:52:14 +02:00
TuxSH
d299558b09 Update bug-report.md in accordance to the release about to be made v13.2 2024-09-27 22:36:05 +02:00
PabloMK7
3253fdb255
Allow plugins to use PRIVATE memory instead of SHARED on requests (#2086)
- Modify the svcMapProcessMemoryEx svc so that it takes an extra flags argument. This change was made in a way that shouldn't break existing plugins or applications.
- Add MAPEXFLAGS_PRIVATE flag, which maps the specified memory as PRIVATE instead of SHARED.
- Allow plugins to be mapped with PRIVATE memory instead of SHARED with a flag in the .3gx header. This allows plugins to use socket and http services without additional hacks.

---------

Co-authored-by: LittleCube <littlecubehax@gmail.com>
2024-09-27 22:31:03 +02:00
PabloMK7
e0e86c46a7 rosalina: Add debug flag to dump gdb communications 2024-09-27 22:18:34 +02:00
TuxSH
902f306ab3 rosalina: remove unused lut, add attribution 2024-09-27 22:01:29 +02:00
TuxSH
ef1773ef4a rosalina: add ability to menu to take screenshot of itself (default combo: L+Up+Select)
Only for documentation purposes, via compile-time flag.

And fix some resource leak bugs, etc.
2024-09-23 00:35:22 +02:00
R-YaTian
7e4a106787
rosalina: Improve misc NTP menu drawing (#2075) 2024-09-22 01:36:19 +02:00
TuxSH
2ae3c4d4ce rosalina: fix handling of more than 1 hidden option in a row
Reported by @cooolgamer
2024-09-22 01:20:53 +02:00
TuxSH
946eb94f02 rosalina: clean up code in N3DSMenu_UpdateStatus 2024-09-22 00:59:57 +02:00
TuxSH
0a11d29d8b rosalina: move power off/reboot back, in a single menu entry this time 2024-09-18 22:36:04 +02:00
TuxSH
1c737d499f rosalina: add qtm calibration submenu
Also steal qtm handle b/c of limitiations (max 3 sessions total)
2024-09-15 23:44:44 +02:00
TuxSH
2aa2013318 rosalina: add SS3D toggle option
Closes #2062
2024-09-15 23:44:36 +02:00
TuxSH
a7bd3208a5 Declutter main rosalina menu & reorder
"Change screen brightness" (due to limitations), "Power Off", "Reboot" moved to sysconfig menu
2024-09-09 00:44:48 +02:00
TuxSH
14e462be20 Clarify that the color curve fixing is intended for IPS top screen only (with stellar results)
And that bottom screen curve doesn't actually match (I don't have bottom IPS New 3DSes but I have asked people who do).
2024-09-03 20:33:21 +02:00
fangrong
9f933954a0 rosalina: fix wrong args in svcControlMemoryEx 2024-08-24 19:48:09 +02:00
TuxSH
ab7e8676b5 rosalina: fix regression in menuReadScreenTypes 2024-08-18 20:42:31 +02:00
TuxSH
f0be624792 rosalina: add system info menu with TN/IPS screen detection in it 2024-08-14 22:48:33 +02:00
TuxSH
85c1997f2b rosalina: use correct srgb filter order 2024-08-04 23:14:29 +02:00
TuxSH
2c49a04516 rosalina: add battery info in debug info 2024-08-02 17:22:53 +02:00
TuxSH
2ddf5d334c Create payloads directory during upgrade process
Closes #2058
2024-08-01 12:39:21 +02:00
TuxSH
db4564a3f5 rosalina: implement full color space correction (to sRGB)
Add option to make the 3DS screens look like sRGB monitors. While this
is not perfect (due to screen variance, and it may make dark tones
slightly darker), this significantly improves the color fidelity of
homebrew and custon HOME Menu themes, removing that "blueish, washed-out
look".

Do note that first-party party 3DS games are designed around the 3DS's
"washed-out" color curve, and may not need that adjustment.

(done in collaboration with @profi200)
2024-07-31 23:22:48 +02:00
TuxSH
7a259a5792 Update super-outdated bug_report.md 2024-07-15 22:44:48 +02:00
TuxSH
988ec17ebf Screenshots: when dealing with 800px mode, produce 800x480 instead of 800x240 images for more faithful output
Each line is duplicated in this case (integer scaling 2)
v13.1.2
2024-06-22 01:22:22 +02:00