mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 02:50:32 +00:00
f1a4576ac4
byuu says: I failed to complete a WIP, have five of eight cores updated with some major changes to Emulator::Interface. I'll just post a quick temporary WIP in the off chance someone wants to look over the new interface and comment on it. Also implemented screen saver suppression into hiro/GTK. I should also add ... a plan of mine is to develop target-bsnes into a more generic user interface, with the general idea being that target-higan is for multiple Emulator::Interface cores at the same time, and target-bsnes is for just one Emulator::Interface core. The idea being that if one were to compile target-bsnes with the GBA core, it'd become bgba, for instance. I don't plan on releasing single-core emulators like this, but ... I don't see any downsides to being more flexible.
25 lines
450 B
C++
25 lines
450 B
C++
#if defined(Hiro_Application)
|
|
|
|
namespace hiro {
|
|
|
|
struct pApplication {
|
|
static auto run() -> void;
|
|
static auto pendingEvents() -> bool;
|
|
static auto processEvents() -> void;
|
|
static auto quit() -> void;
|
|
static auto setScreenSaver(bool screenSaver) -> void;
|
|
|
|
static auto initialize() -> void;
|
|
|
|
static vector<pWindow*> windows;
|
|
|
|
#if defined(DISPLAY_XORG)
|
|
static XlibDisplay* display;
|
|
static bool xdgScreenSaver;
|
|
#endif
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|