Commit Graph

110 Commits

Author SHA1 Message Date
MrHuu 2633b3e310 (3DS) On error, only init gfx on salamander build
This prevents graphical issues if the gfx is already initialized.
Which should always be the case if called from a running core.
2021-01-17 15:44:35 +01:00
MrHuu e6c035de7d (3DS) Update error applet 2021-01-04 20:15:28 +01:00
Justin Weiss 082f83a08e [3DS] Free memory in smaller blocks when exiting
This works around an occasional kernel panic when freeing larger
blocks.
2020-10-25 16:06:28 -07:00
Justin Weiss 5756ff0b16 [3DS] Free memory in 1MB blocks
When freeing large blocks of memory, the 3DS may kernel panic. Freeing
in smaller blocks seems to avoid the crashes.
2020-09-28 19:12:15 -07:00
Autechre 2d3c63f545 Merge pull request #11248 from justinweiss/update-libctru
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
Justin Weiss 9ae2514009 [3DS] Update to libctru 2.0
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.

Some 2.0 changes addressed rare problems in earlier versions:

- Save / restore stack pointer for init / exit
  Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events

Other changes for 2.0:

- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex 5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
twinaphex a657ad7039 Cleanup 2020-06-29 05:41:25 +02:00
twinaphex 41ffca2b6f (CTR) Style nits 2020-06-07 17:28:53 +02:00
twinaphex 860f94e914 (CTR) Stylistic cleanups 2020-03-05 15:50:39 +01:00
twinaphex 8627d638e1 Cleanups 2020-02-04 06:05:00 +01:00
twinaphex 7f4139c427 Get rid of wrong double ';;' 2020-01-30 16:53:20 +01:00
Justin Weiss 2e9a793519 Enable svchax in Luma3DS 8.0+ 2019-09-20 08:27:41 -07:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
orbea 4c56167446 Convert to linux line endings. 2019-02-03 15:43:42 -08:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
meepingsnesroms 1bd25a6f12 Fix pointer type 2018-05-16 16:28:32 -07:00
meepingsnesroms ce0d8bb5e0 Remove quote parsing 2018-05-16 16:26:38 -07:00
meepingsnesroms 9e51d41fea Fix last null terminator not being added to cia argv 2018-05-15 18:11:47 -07:00
meepingsnesroms 052de6bcd2 3ds now has proper core launching 2018-05-15 10:30:34 -07:00
meepingsnesroms 1a6f572405 Fixes 2018-05-09 18:23:35 -07:00
meepingsnesroms 5f234f0dd1 Start using proper 3ds executable formats (doesnt work properly yet) 2018-05-09 15:55:48 -07:00
twinaphex 867981b74b Include this header include 2018-04-10 00:07:37 +02:00
aliaspider 1f143927ca (CTR) build fix. 2017-12-25 08:51:50 +01:00