#pragma once //license: GPLv3 //started: 2004-10-14 #include #include #include #include #include #include #include #include #include #include #include #if defined(SFC_SUPERGAMEBOY) #include #endif namespace SuperFamicom { #define platform Emulator::platform namespace File = Emulator::File; using Scheduler = Emulator::Scheduler; using Random = Emulator::Random; using Cheat = Emulator::Cheat; extern Scheduler scheduler; extern Random random; extern Cheat cheat; struct Thread : Emulator::Thread { auto create(auto (*entrypoint)() -> void, double frequency) -> void { Emulator::Thread::create(entrypoint, frequency); scheduler.append(*this); } inline auto synchronize(Thread& thread) -> void { if(clock() >= thread.clock()) scheduler.resume(thread); } }; struct Region { static inline auto NTSC() -> bool; static inline auto PAL() -> bool; }; #include #include #include #include #include #include #include #include #include #include #include #include #include #include } #include