mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-01 19:39:10 +12:00
We can now load lua scripts properly
This commit is contained in:
parent
c57f2db6c0
commit
6386605b97
6 changed files with 73 additions and 2 deletions
include/panda_qt
|
@ -21,7 +21,7 @@ class MainWindow : public QMainWindow {
|
|||
|
||||
private:
|
||||
// Types of messages we might send from the GUI thread to the emulator thread
|
||||
enum class MessageType { LoadROM, Reset, Pause, Resume, TogglePause, DumpRomFS, PressKey, ReleaseKey };
|
||||
enum class MessageType { LoadROM, Reset, Pause, Resume, TogglePause, DumpRomFS, PressKey, ReleaseKey, LoadLuaScript };
|
||||
|
||||
// Tagged union representing our message queue messages
|
||||
struct EmulatorMessage {
|
||||
|
@ -35,6 +35,10 @@ class MainWindow : public QMainWindow {
|
|||
struct {
|
||||
u32 key;
|
||||
} key;
|
||||
|
||||
struct {
|
||||
std::string* str;
|
||||
} string;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -72,4 +76,5 @@ class MainWindow : public QMainWindow {
|
|||
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
void loadLuaScript(const std::string& code);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue