Added function patching, began reorganizing UI code, added native file dialog library

This commit is contained in:
Mr-Wiseguy
2023-11-11 17:42:07 -05:00
parent 91611c9c33
commit 398988a961
21 changed files with 622 additions and 802 deletions
+16
View File
@@ -1,9 +1,25 @@
#ifndef __RECOMP_UI__
#define __RECOMP_UI__
#include <memory>
#include "SDL.h"
void queue_event(const SDL_Event& event);
bool try_deque_event(SDL_Event& out);
namespace Rml {
class ElementDocument;
class EventListenerInstancer;
}
std::unique_ptr<Rml::EventListenerInstancer> make_event_listener_instancer();
enum class Menu {
Launcher,
None
};
void set_current_menu(Menu menu);
#endif
+4 -4
View File
@@ -125,8 +125,8 @@ auto RSP::CFC2(r32& rt, u8 rd) -> void {
if constexpr (Accuracy::RSP::SISD) {
rt = 0;
for (u32 n = 0; n < 8; n++) {
rt |= lo.get(n) << 0 + n;
rt |= hi.get(n) << 8 + n;
rt |= lo.get(n) << (0 + n);
rt |= hi.get(n) << (8 + n);
}
rt = s16(rt);
}
@@ -151,8 +151,8 @@ auto RSP::CTC2(cr32& rt, u8 rd) -> void {
if constexpr (Accuracy::RSP::SISD) {
for (u32 n = 0; n < 8; n++) {
lo->set(n, rt & 1 << 0 + n);
hi->set(n, rt & 1 << 8 + n);
lo->set(n, rt & 1 << (0 + n));
hi->set(n, rt & 1 << (8 + n));
}
}