mirror of
https://github.com/libretro/bsnes-libretro-cplusplus98.git
synced 2025-04-16 17:10:18 +00:00

Instead of using time() in chip emulation, create new interface method currentTime(), defaulting to time(0). This way frontend can cleanly override the current time bsnes is using.
12 lines
451 B
C++
12 lines
451 B
C++
struct Interface {
|
|
virtual void videoRefresh(const uint32_t *data, bool hires, bool interlace, bool overscan);
|
|
virtual void audioSample(int16_t lsample, int16_t rsample);
|
|
virtual int16_t inputPoll(bool port, Input::Device::e device, unsigned index, unsigned id);
|
|
|
|
virtual string path(Cartridge::Slot::e slot, const string &hint) = 0;
|
|
virtual void message(const string &text);
|
|
virtual time_t currentTime();
|
|
};
|
|
|
|
extern Interface *interface;
|