mirror of
https://github.com/JaCzekanski/Avocado.git
synced 2024-05-20 12:57:38 -04:00
b51c2b8a64
Load memory cards by drag&drop Better parsing of memory card contents Card formatting
66 lines
1.1 KiB
C++
66 lines
1.1 KiB
C++
#pragma once
|
|
#include <eventbus/EventBus.h>
|
|
#include <string>
|
|
|
|
extern Dexode::EventBus bus;
|
|
|
|
namespace Event {
|
|
namespace Config {
|
|
struct Graphics {};
|
|
struct Gte {};
|
|
struct Controller {};
|
|
struct Spu {};
|
|
}; // namespace Config
|
|
|
|
namespace File {
|
|
struct Load {
|
|
enum class Action {
|
|
ask,
|
|
slowboot,
|
|
fastboot,
|
|
swap,
|
|
};
|
|
std::string file;
|
|
Action action = Action::ask;
|
|
};
|
|
struct Exit {};
|
|
}; // namespace File
|
|
|
|
namespace System {
|
|
struct SoftReset {};
|
|
struct HardReset {};
|
|
struct SaveState {
|
|
int slot = 0;
|
|
};
|
|
struct LoadState {
|
|
int slot = 0;
|
|
};
|
|
}; // namespace System
|
|
|
|
namespace Gui {
|
|
struct Toast {
|
|
std::string message;
|
|
};
|
|
struct ToggleFullscreen {};
|
|
namespace Debug {
|
|
struct OpenDrawListWindows {};
|
|
} // namespace Debug
|
|
} // namespace Gui
|
|
|
|
namespace Controller {
|
|
struct Vibration {
|
|
int port;
|
|
bool small;
|
|
uint8_t big;
|
|
};
|
|
|
|
struct MemoryCardContentsChanged {
|
|
int slot = 0;
|
|
};
|
|
struct MemoryCardSwapped {
|
|
int slot = 0;
|
|
};
|
|
} // namespace Controller
|
|
}; // namespace Event
|
|
|
|
void toast(const std::string& message); |