#pragma once //license: GPLv3 //started: 2017-01-11 #include #include #include #include namespace PCEngine { #define platform Emulator::platform using File = Emulator::File; using Scheduler = Emulator::Scheduler; extern Scheduler scheduler; 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 Model { inline static auto PCEngine() -> bool; inline static auto SuperGrafx() -> bool; }; #include #include #include #include #include #include #include #include } #include