Commit graph

2653 commits

Author SHA1 Message Date
Clownacy
ccd436bce7 3DS: More error detection for audio 2020-10-20 00:47:38 +01:00
Clownacy
8a560eb873 Shut up a GCC warning 2020-10-18 14:25:44 +01:00
Clownacy
2e6c291400 3DS: Move save data to different directory
There seems to be an unofficial standard between 3DS homebrew devs,
where data goes in `3ds/data`.
2020-10-18 13:19:07 +01:00
Clownacy
48926f32c2 3DS: Detect more errors 2020-10-17 22:48:18 +01:00
Clownacy
dd0d453709 3DS: Disable depth test 2020-10-17 22:46:12 +01:00
Clownacy
5d970e860c Cleanup 2020-10-15 14:28:46 +01:00
Clownacy
35d3d20d44 Even better way 2020-10-15 14:27:16 +01:00
Clownacy
977a5eb49d Add better 3DS audio thread priority 2020-10-15 14:25:48 +01:00
Clownacy
497adce14b Add mutexes to 3DS audio backend 2020-10-15 14:22:49 +01:00
Clownacy
2f8e771333 Fix a typo 2020-10-15 14:00:55 +01:00
Clownacy
cbef077ff7 3DS - Save some RAM 2020-10-15 13:46:56 +01:00
Clownacy
cf92263fba 3DS - Swap ZL and ZR
I use the D-pad on the 3DS, rendering the L and ZL buttons basically
unusable. By swapping ZL and ZR, I can cycle through the weapons both
ways with only my right hand.
2020-10-14 23:43:07 +01:00
Clownacy
3e03995ab4 Update 3DS build instructions 2020-10-14 23:23:32 +01:00
Clownacy
0d7ad3358b Make some filenames more consistent 2020-10-14 23:22:16 +01:00
Clownacy
d391ab77f9 Add a hardware-accelerated 3DS audio backend
Hell yes
2020-10-14 23:18:43 +01:00
Clownacy
268d68b078 Remove dead functions 2020-10-14 20:36:00 +01:00
Clownacy
28ea9054e7 Remove the dummied-out Wii U controller backend 2020-10-14 20:32:38 +01:00
Clownacy
6e53250a20 Update CMake options 2020-10-14 20:31:16 +01:00
Clownacy
f652fb7016 Update readme with 3DS build instructions 2020-10-14 20:21:18 +01:00
Clownacy
094990b6ad 3DS - Remove warnings about a crash
This crash on longer occurs
2020-10-14 20:05:33 +01:00
Clownacy
785781c133 3DS - Deobfuscate some raw values 2020-10-14 20:05:12 +01:00
Clownacy
c396dede92 3DS - Take advantage of C++ default parameters 2020-10-14 20:03:01 +01:00
Clownacy
ccf1a6cd23 3DS - No more 'depth = 0.5'
We're not doing 3D
2020-10-14 20:02:03 +01:00
Clownacy
7987243427 3DS - Initialise screen render-target ourselves
Citro2D allocates a depth buffer for some reason, but CSE2 works fine
without one, even on real hardware
2020-10-14 19:59:00 +01:00
Clownacy
790a25ba6b 3DS - Move common code to functions 2020-10-14 19:51:19 +01:00
Clownacy
56da7dfe99 3DS - Slight optimisation 2020-10-14 19:47:10 +01:00
Clownacy
aafb8dd302 3DS - Make glyph system independent of surfaces 2020-10-14 19:40:37 +01:00
Clownacy
5756612212 3DS - Cleanup 2020-10-14 19:33:35 +01:00
Clownacy
196ff6ac2f 3DS - Only call C2D_SceneBegin when we have to
Looking at Citro2D's source, it has a bunch of overhead
2020-10-14 19:32:21 +01:00
Clownacy
8f87aa108e 3DS - Add glyph rendering 2020-10-14 19:27:18 +01:00
Clownacy
658c38b350 Remove unnecessary function calls
These are called internally by libctru
2020-10-14 18:41:12 +01:00
Clownacy
e732534e91 3DS - Fix hang on shutdown 2020-10-14 18:40:37 +01:00
Clownacy
c50155b1b0 Better way to handle EnableAlpha mid-frame
This should have much lower overhead
2020-10-14 16:17:02 +01:00
Clownacy
d006b6c439 Update readme to not FREETYPE_FONTS option 2020-10-14 16:03:21 +01:00
Clownacy
fcba88f2e1 3DS - Delete old files 2020-10-14 16:01:44 +01:00
Clownacy
54817eda51 3DS - Fix EnableAlpha 2020-10-14 15:50:50 +01:00
Clownacy
3f6ac2ee5f Correct indentation 2020-10-14 15:50:22 +01:00
Clownacy
4c034571c8 3DS - Note a crash 2020-10-13 22:27:15 +01:00
Clownacy
007b455426 3DS - Correct an error message 2020-10-13 21:36:08 +01:00
Clownacy
36f9fb6fec 3DS - Avoid redundant code
I love C's syntax so much
2020-10-13 21:35:36 +01:00
Clownacy
2601a2c4e7 3DS - Fix garbage data showing on Loading screen 2020-10-13 21:34:25 +01:00
Clownacy
9c24ab9338 3DS - Remove attributes
Leftover from the software renderer
2020-10-13 21:30:53 +01:00
Clownacy
87652c50f5 Remove unnecessary #include 2020-10-13 21:30:31 +01:00
Clownacy
e45ee3c189 3DS - Fix corrupted graphics on real hardware 2020-10-13 21:12:46 +01:00
Clownacy
a82189b0c9 3DS - Fix more corruption
I swear I'm normally a good programmer ;_;
2020-10-13 20:59:20 +01:00
Clownacy
b6ff494f54 3DS - Fix alpha and corruption 2020-10-13 20:57:20 +01:00
Clownacy
0f6768e6e6 Misc 3DS cleanup and tweaks 2020-10-13 20:00:30 +01:00
Clownacy
65aac0bb21 Convert the 3DS renderer to Citro2D
Not finished yet - there's no glyph support, and for some reason the
level tileset isn't reloading properly
2020-10-13 18:56:07 +01:00
Clownacy
82630cedb7 Added unfinished 3DS hardware renderer
I'm commiting what I have now because I'm thinking of switching to
Citro2D instead of Citro3D.
2020-10-13 13:22:02 +01:00
Clownacy
ffcd989cea Remove unnecessary whitespace 2020-10-13 13:21:30 +01:00