mirror of
https://github.com/libretro/bsnes-libretro-cplusplus98.git
synced 2025-04-11 06:40:46 +00:00

- This allows eliminating random seed differences from savestates (may be useful for some forms of sync stability testing). - Would also allow (re)recording with randomization enabled, as the seed can be set portably).
30 lines
531 B
C++
30 lines
531 B
C++
#include <snes/snes.hpp>
|
|
|
|
namespace SNES {
|
|
|
|
Interface *interface = 0;
|
|
|
|
void Interface::videoRefresh(const uint32_t *data, bool hires, bool interlace, bool overscan) {
|
|
}
|
|
|
|
void Interface::audioSample(int16_t l_sample, int16_t r_sample) {
|
|
}
|
|
|
|
int16_t Interface::inputPoll(bool port, Input::Device::e device, unsigned index, unsigned id) {
|
|
return 0;
|
|
}
|
|
|
|
void Interface::message(const string &text) {
|
|
print(text, "\n");
|
|
}
|
|
|
|
time_t Interface::currentTime() {
|
|
return time(0);
|
|
}
|
|
|
|
time_t Interface::randomSeed() {
|
|
return time(0);
|
|
}
|
|
|
|
}
|