Commit graph

67 commits

Author SHA1 Message Date
wheremyfoodat
d007b2d780 Emulator cleanup, add AR conditionals 2023-07-21 00:55:08 +03:00
wheremyfoodat
97f8ea6cfd Get our first AR code running 2023-07-20 13:50:32 +03:00
wheremyfoodat
0904638df0 [Cheats] Add boilerplate 2023-07-19 20:51:45 +03:00
Wunkolo
2c57936c50 Fix EmulatorConfig initialization order
`config` was being consumed much too early before it has a chance to
call `load`. This caused GPU to read weird uninitialized data, and then
`load` called, and then further initialization to occur based on default
data and the data inside of `config.toml`. `EmulatorConfig` needs to be
loaded in first before any sort of initialization happens, by adding a
new constructor so that it can be initialized sooner.
2023-07-17 10:23:19 -07:00
Wunkolo
ceff20f57f Add configurable Renderer backend
There are still some initialization errors to work through, such as
config not being initialized properly by the time GPU tries to utilize
it too. Also some life-time issues. But manually forcing it to use the
Null backnd successfully works and allows games to be "played"
headlessly.
2023-07-17 10:13:34 -07:00
wheremyfoodat
786c3e8a5c
Merge pull request #98 from Wunkolo/modular-gl
Allow conditional OpenGL rendering backend
2023-07-16 03:48:07 +03:00
wheremyfoodat
7b6cd90d36 Cleanup for #98 2023-07-15 04:56:43 +03:00
wheremyfoodat
ddb18662cd
Add CCI support 2023-07-13 12:49:25 +03:00
wheremyfoodat
c8f4ec2a11
Merge pull request #109 from wheremyfoodat/dynapand
Fix MinGW-w64 build maybe
2023-07-12 20:42:10 +03:00
wheremyfoodat
4f08a2dd7a Fix MinGW-w64 build maybe 2023-07-12 20:01:47 +03:00
Wunkolo
4864c51125 Migrate OpenGL specific headers to renderer_gl 2023-07-11 11:28:06 -07:00
Wunkolo
a636a0d1da Replace ENABLE_OPENGL with PANDA3DS_ENABLE_OPENGL 2023-07-11 11:28:06 -07:00
Wunkolo
2a1683ba62 Introduce "Renderer" abstraction layer
Adds a `renderer` class for which a rendering backend must implement and
will conditionally use OpenGL in the case that `ENABLE_GL` is enabled.
2023-07-11 11:27:35 -07:00
Wunkolo
d664d5caf0 Emulator: Conditional OpenGL compilation 2023-07-11 11:27:04 -07:00
Wunkolo
e4e8e7ce26 Move stb_image_write into its own translation unit
Rather than having the entire implementation within `emulator.cpp`,
causing incremental builds to be much slower, give it its own
translation unit `stb_image_write.c`.
2023-07-11 10:43:20 -07:00
wheremyfoodat
b352309290 Introduce 2 methods of resetting the emulator; with and without reload 2023-07-11 16:17:36 +03:00
wheremyfoodat
effc9543b3 Formatting 2023-07-11 03:08:12 +03:00
wheremyfoodat
de2751fb5c Bonk frontend changes 2023-07-11 02:47:09 +03:00
SimoneN64
6ce861624d Don't force users to load rom from terminal or by dragging and dropping onto executable file. Instead, open a blank window and use SDL's drag&drop feature 2023-07-11 01:58:35 +03:00
wheremyfoodat
ba1c3a8ec5 Moar HTTP 2023-07-10 11:30:09 +03:00
wheremyfoodat
57c45cf58a Remove globals, change conditional compilation, doormat 2023-07-10 02:29:08 +03:00
offtkp
b8fa5fc86d Separate http server to a new file 2023-07-10 01:32:47 +03:00
offtkp
77ea84373f Add /input command in http server 2023-07-10 01:00:14 +03:00
offtkp
0949a16e6f Add initial http server stuff 2023-07-10 01:00:08 +03:00
wheremyfoodat
1a7e79f2c9 Bad-but-ok for now gyroscope implementation 2023-07-08 23:31:16 +03:00
wheremyfoodat
1037f93f61 Hook shader JIT to config file 2023-07-08 16:23:20 +03:00
wheremyfoodat
4a12e59c2f Slightly more robust ROM management 2023-07-07 13:39:35 +03:00
wheremyfoodat
433330a74c
Add support for .app files 2023-07-07 04:14:55 +03:00
wheremyfoodat
187feb5772 Add CXI ROM support
Co-Authored-By: Kelpsy <138107494+Kelpsyberry@users.noreply.github.com>
2023-07-06 16:21:26 +03:00
wheremyfoodat
4e5eb884ed Ask Windows to give us a dGPU instead of an iGPU 2023-07-06 01:38:20 +03:00
wheremyfoodat
b403e9a66e Start work on GL state manager object 2023-07-04 23:27:38 +03:00
wheremyfoodat
8b703dd147 Merge branch 'master' into dynapica 2023-06-30 16:01:49 +03:00
wheremyfoodat
d028c1cb64 Bonk headers 2023-06-28 03:39:04 +03:00
wheremyfoodat
eff25180d5 [Controller] Set gameControllerID if a gamepad is connected mid-gameplay 2023-06-28 01:51:21 +03:00
wheremyfoodat
29806ff8e5 clang-format 2023-06-28 01:48:34 +03:00
wheremyfoodat
71582eff6d [Controller] Slightly better analog handling 2023-06-28 01:40:23 +03:00
wheremyfoodat
bc4e71bf40 [Controller] Fix breaks, constexpr 2023-06-28 00:58:40 +03:00
wheremyfoodat
acd21c6908 Merge remote-tracking branch 'upstream/master' into feature/basic-controller-input 2023-06-28 00:20:54 +03:00
Nadia Holmquist Pedersen
71dddc0020 Add basic controller input using the SDL2 GameController API 2023-06-27 22:40:38 +02:00
wheremyfoodat
3cf8427670 [Crypto] Slightly more robust error handling 2023-06-27 01:12:17 +03:00
Mary
86dd7f54f5 feat: Add support for encrypted NCSD
Missing version 1 support and seeded crypto but that would be enough for now.
2023-06-22 17:41:08 +02:00
Mary
2e5bc0cb14 feat: crypto: Add basic AES keyslot manager
We loads keys from AppData/Alber/sysdata/aes_keys.txt.

NOTE: We do differ from other emulators by not hardcoding the generator key, it's the user responsibility to provide it in aes_keys.txt.
2023-06-22 17:37:21 +02:00
wheremyfoodat
8e90b8a103 [GPU] Bottom screen stub 2023-06-13 22:47:01 +03:00
wheremyfoodat
5200c10b27 [Emulator] Handle left click 2023-06-13 15:41:02 +03:00
wheremyfoodat
dea8b9ec2e [HID] Redo service 2023-06-06 00:57:48 +03:00
wheremyfoodat
629e00251c [HID] Remap keys 2023-06-05 22:43:59 +03:00
wheremyfoodat
0c0e7a4cb9 Clean up srv interface for HID 2023-06-05 15:28:44 +03:00
liuk7071
608bf88c5f Basic input 2023-06-05 13:25:06 +02:00
wheremyfoodat
6419098851 [HID] Implement events 2023-04-29 02:45:21 +03:00
wheremyfoodat
c8cc8a2520 Add game folder to app data 2023-03-18 22:58:45 +02:00