Commit graph

748 commits

Author SHA1 Message Date
Wunkolo
a636a0d1da Replace ENABLE_OPENGL with PANDA3DS_ENABLE_OPENGL 2023-07-11 11:28:06 -07:00
Wunkolo
c53080b444 Fix HTTPServer gpu-renderer interfacing
Fixing some compilation issues that occur when enabling the HTTP server
2023-07-11 11:28:06 -07:00
Wunkolo
9e32b6d4bf Remove OpenGL-specific vector-types
Removes dependency on the OpenGL header and rendering backen for its
`OpenGL::Vector` type in favor of a more standard array.
2023-07-11 11:27:35 -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
wheremyfoodat
148232c0b2
Merge pull request #101 from SimoneN64/master
Don't force users to load rom from terminal
2023-07-11 20:14:17 +03: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
3063efaea1 Revert "Merge branch 'master' of https://github.com/SimoneN64/Panda3DS"
This reverts commit 51fb4865ee, reversing
changes made to de2751fb5c.
2023-07-11 02:50:40 +03:00
wheremyfoodat
51fb4865ee Merge branch 'master' of https://github.com/SimoneN64/Panda3DS 2023-07-11 02:50:24 +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
SimoneN64
49101037b8 Should reset this flag in the GSP (needs better name) 2023-07-10 23:04:07 +02:00
Wunkolo
119c908aa7 Add explicit return-type overload for getBits
Allows the return-type to be specified, allowing a concise final cast
after extracting the bit-type.  Addresses the remaining `C4244` warnings
regarding `getBits`.
2023-07-10 12:33:37 -07:00
Wunkolo
37b75f0928 Fix C4267/C4244 warnings
Address warnings involving lossy conversions from larger integer-types into smaller integer-types
2023-07-10 12:33:37 -07:00
SimoneN64
7ad47875b6 Should reset the state every time a rom is loaded so the user can keep dragging and dropping roms and it works 2023-07-10 21:27:18 +02:00
SimoneN64
53873c75cc 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-10 20:48:13 +02:00
offtkp
37188edc3b Add /status command in http server 2023-07-10 13:52:40 +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
b3f6a3a91c
Merge pull request #89 from wheremyfoodat/UUID
[ACT] Stub GenerateUUID
2023-07-09 04:15:18 +03:00
wheremyfoodat
5bcc35dfc8 [ACT] Stub GenerateUUID 2023-07-09 03:17:24 +03:00
wheremyfoodat
482233f601
Merge pull request #87 from wheremyfoodat/superskyler
Make colour/depth buffers to also do ringing for now, add exp2/log2 approximations in x87 to the shader JIT
2023-07-09 02:10:42 +03:00
wheremyfoodat
c88ab423d3 doormat 2023-07-09 01:44:25 +03:00
wheremyfoodat
2bbcdfade2 Add proper warning to surface cache 2023-07-09 01:40:30 +03:00
wheremyfoodat
15ede3bd6e [Shader JIT] Temporary EXP2/LOG2 implementations in x87 2023-07-09 01:29:51 +03:00
wheremyfoodat
5e8f324ff5 Formatting 2023-07-09 00:50:16 +03:00
wheremyfoodat
b2c6a5e801
Merge pull request #86 from skylersaleh/ColorDepthCacheUpdates
Color and depth cache updates
2023-07-09 00:15:11 +03:00
wheremyfoodat
1a7e79f2c9 Bad-but-ok for now gyroscope implementation 2023-07-08 23:31:16 +03:00
wheremyfoodat
5f2f82d074 [FS] Implement SdmcIsWritable 2023-07-08 20:43:48 +03:00
wheremyfoodat
91bf249cba [BOSS] Stub GetTaskInfo 2023-07-08 20:32:21 +03:00
wheremyfoodat
b83526378e [IR:USER] Some more stubbing 2023-07-08 20:13:20 +03:00
wheremyfoodat
1c08912a59 [IR:USER] Add empty service 2023-07-08 19:35:59 +03:00
wheremyfoodat
46207a3995 [BOSS} Stub more calls (Fixes Crashmo) 2023-07-08 18:40:49 +03:00
wheremyfoodat
c4878ec4b4 Update comments
Co-Authored-By: Mireille <13669774+fleroviux@users.noreply.github.com>
2023-07-08 16:38:44 +03:00
wheremyfoodat
1037f93f61 Hook shader JIT to config file 2023-07-08 16:23:20 +03:00
wheremyfoodat
bc3377ac78 Add config class 2023-07-08 16:16:00 +03:00
wheremyfoodat
90a88eee39 Switch if to if constexpr 2023-07-08 15:00:55 +03:00
wheremyfoodat
b7ce987487 IOFile: Allow multiple opens on the same object 2023-07-07 16:51:14 +03:00
wheremyfoodat
2ec3884189 Proper stack management 2023-07-07 15:00:18 +03:00
wheremyfoodat
4a12e59c2f Slightly more robust ROM management 2023-07-07 13:39:35 +03:00
wheremyfoodat
e67b98f990 doormat 2023-07-07 12:19:04 +03:00
Sky
17b08a25fa [GPU] Converted Depth/Color Surfaces to a ring buffer
Additionally made the surface cache search hit for any address that lies in the surface.

This should allow multiple races to be done in Mario Kart and fixes the intro video.
2023-07-06 11:18:14 -07:00
Sky
255947b2fc [GPU] Add texture surface cache eviction
Implemented as a simple ring buffer evicting the oldest entry for now.
2023-07-06 08:48:37 -07: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
52c7783ae1 [OpenGL] Same for depth func 2023-07-05 19:08:13 +03:00
wheremyfoodat
7307bd270b [OpenGL] Same for depth mask 2023-07-05 18:54:09 +03:00