Ilari Liusvaara 7e3d56fe1e Don't use time() in emulating chips
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.
2011-11-11 18:34:30 +01:00

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;