Léo Lam
8233d4e226
loader: Add support for BPS patches
...
The BPS format allows distributing patches that are smaller and that do
not contain copyrighted content if data is relocated
(unlike non-trivial IPS patches).
This is essential for games such as Majora's Mask 3D that have three
barely different code revisions. Supporting all three versions would
demand an unreasonable amount of work; with BPS patches only one
version has to be supported.
The patcher is written in C++ in order to make it possible to share the
implementation with Citra and because a C version would be a lot more
ugly and tedious to write. The patcher is non-intrusive for the rest of
the codebase and self-contained so hopefully that isn't an issue.
This adds roughly ~0x500 bytes of code to the loader sysmodule.
Code looks reasonably optimised (in IDA). Tested and works on an o3DS.
2019-12-21 18:32:18 +01:00
Léo Lam
ca49956219
loader: Compile C++ code with -std=gnu++17
2019-12-21 17:49:58 +01:00
PabloMK7
5edfbfc1f7
Fix stack overflow on screen filters
2019-12-17 15:00:37 +01:00
TuxSH
dfd50d9d75
Merge pull request #1298 from LiquidFenrir/force-wifi
...
add wifi connection forcing to rosalina
2019-11-05 00:15:41 +00:00
TuxSH
1946941340
Merge pull request #1306 from lioncash/null
...
rosalina/gdb/server: Prevent potential null dereference case
2019-11-05 00:15:07 +00:00
TuxSH
31dae90dcd
Merge pull request #1307 from lioncash/null2
...
sm/notifications: Prevent potential null pointer dereference in ReceiveNotification
2019-11-05 00:14:49 +00:00
TuxSH
da8df54649
Merge pull request #1308 from lioncash/uninit
...
rosalina/errdisp: Correct uninitialized variable usage in ERRF_HandleCommands
2019-11-05 00:14:28 +00:00
TuxSH
0e1415299a
Merge pull request #1332 from Oreo639/errdisp
...
rosilina: save errdisp info before doing anything else
2019-11-05 00:14:07 +00:00
TuxSH
93f770888d
Merge pull request #1320 from nathanhitch/master
...
Add ability to offset ntp by any amount of minutes
2019-11-05 00:13:22 +00:00
oreo639
0886b10619
rosilina: save errdisp info before doing anything else
2019-10-23 12:12:08 -07:00
nathan hitch
e8493d18c5
Add ability to offset ntp by any amount of minutes
2019-09-16 17:13:23 +09:30
Lioncash
60a8bf56c6
rosalina/errdisp: Correct uninitialized variable usage in ERRF_HandleCommands
...
This was previously using the value of the uninitialized sz variable
before it was actually assigned a value, rather than assigning the size
indicated within the command buffer.
2019-08-13 03:11:47 -04:00
Lioncash
c95b59c72e
sm/notifications: Prevent potential null pointer dereference in ReceiveNotification
...
Based off the conditions, this is a potential null pointer dereference
that can occur. We need to check for null before accessing
nbPendingNotifications.
This is unlikely to occur in common usage, however it's a fairly
straightforward amendment.
2019-08-13 03:04:03 -04:00
Lioncash
7e14c83bdd
rosalina/gdb/server: Prevent potential null dereference case
...
While unlikely to commonly occur, this is a trivially avoidable case.
2019-08-13 02:54:12 -04:00
TuxSH
a2e46919c1
Merge pull request #1305 from piepie62/master
...
Fix off-by-one error with extra cheat page
2019-08-12 21:11:21 +02:00
piepie62
a4befc29c8
Fix off-by-one error with extra cheat page
2019-08-12 00:58:16 -04:00
LiquidFenrir
93e87284aa
follow changes in ctrulib PR
2019-07-23 00:13:17 +02:00
LiquidFenrir
236dbb043c
add wifi connection forcing to rosalina
...
breaks regular auto connect until reboot
allows connecting to a wifi without internet (for example, for transferring stuff with 3dslink or ftpd/3DShell)
2019-07-21 19:05:37 +02:00
TuxSH
77f0295a04
Merge pull request #1287 from leoetlino/logic
...
loader: Fix boolean logic error
2019-07-09 00:39:39 +02:00
Léo Lam
c3b97999f5
loader: Fix boolean logic error
2019-07-07 15:06:15 +02:00
PabloMK7
f1b787c7d9
Merge pull request #3 from AuroraWright/master
...
Merge 10.0.1
2019-07-06 09:37:41 +02:00
selabnayr
3061001fb1
Switch to updating all 4 bytes of the IRQ mask, on the suggestion of profi200.
2019-07-05 15:37:54 -07:00
selabnayr
0bc51d5c34
Add an entry to the System Configuration menu to toggle disabling a short press of the power button triggering a software closure.
2019-07-05 15:04:38 -07:00
TuxSH
c913de1e67
Fix layeredfs, fix #1280 #1275 #1262 & others
2019-07-03 22:19:38 +02:00
TuxSH
c9a578734e
Fix N3DS applications not closing properly ( fix #1271 , #1270 , etc.)
2019-06-30 22:59:44 +02:00
TuxSH
37544a0eb9
Fix process list
2019-06-30 13:54:41 +02:00
PabloMK7
6b13b5d06b
Merge branch 'AuroraWright-master'
2019-06-29 23:35:07 +02:00
PabloMK7
9705083b65
Fix conflicting files
2019-06-29 23:34:45 +02:00
PabloMK7
2423d1802e
Add plgldr string to config menu
2019-06-29 17:16:17 +02:00
TuxSH
3ad314a5ac
Fix ntp menu (if user pressed A multiple times)
2019-06-29 17:05:43 +02:00
TuxSH
58a6a25eb3
ntp: also zero field 0x30001
2019-06-29 16:53:31 +02:00
TuxSH
6ed93a1f09
Merge pull request #1266 from luigoalma/master
...
Properly create BLX instruction
2019-06-29 16:51:57 +02:00
PabloMK7
0b68baa0dd
Merge branch 'Nanquitas-master'
2019-06-29 16:26:26 +02:00
PabloMK7
8168d2c2f9
Manually merge files
2019-06-29 16:26:03 +02:00
luigoalma
76dbdf45cf
Properly create BLX instruction
...
Rethinked and revised this function.
This previous one worked by "accident".
More a sheer luck of offsets on current firmware (as of writing)
But now, this is more mathematically correct way of creating a
THUMB -> ARM BLX instruction.
Also setting the new op in a set of 2 u16,
because patching code is in thumb.
2019-06-29 15:22:33 +01:00
TuxSH
d4e1da0174
Update Rosalina credits
2019-06-29 12:21:25 +02:00
TuxSH
fde3b70d03
Fix info os cfwversion/memory by adding null terminator to xml files (thanks @fincs)
2019-06-28 23:44:09 +02:00
TuxSH
8c03702c7d
pm: fix uninitialized variable bug (thanks @fincs !)
2019-06-28 20:43:06 +02:00
TuxSH
31c6ead2ad
Fix bug-report.md name
2019-06-28 20:12:44 +02:00
TuxSH
454fa16b3a
Update bug-report.md.md
2019-06-28 20:01:06 +02:00
TuxSH
301e84f1ca
Merge pull request #1194 from noirscape/patch-2
...
Taking advantage of GitHubs new issue templates.
2019-06-28 19:51:57 +02:00
TuxSH
69634fdbd5
Merge pull request #1264 from piepie62/master
...
Use bitflags
2019-06-28 19:44:09 +02:00
piepie62
10e823a9d5
Use bitflags
2019-06-24 15:42:32 -04:00
TuxSH
f4851cd533
fixed inverted condition in hio.c
2019-06-18 23:58:47 +02:00
TuxSH
39287d43e3
Fix null deref when connecting to port 4003 but force debug next app hasn't been selected
2019-06-18 00:02:32 +02:00
TuxSH
09b2bf5fb1
fix build with newer gcc
2019-06-16 23:20:40 +02:00
TuxSH
e989309771
Fix "disable debugger" finally
2019-06-16 22:06:05 +02:00
TuxSH
d989c45c3d
Failed attempt w/ next app
2019-06-14 01:32:50 +02:00
TuxSH
84c5cf0661
Failed attempt at fixing disable debugger when 1+ sessions are open
2019-06-14 00:40:41 +02:00
Chromaryu
648541bb1f
Add NTP_IP dynamic changes via -D or #define ( #1261 )
...
* Add define option on Makefile to change NTP_IP dynamically
* Remove Makefile -D option
2019-06-03 23:24:21 +02:00