mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-08-22 07:04:33 -04:00
Added function patching, began reorganizing UI code, added native file dialog library
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user