mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Update hydra_core.cpp
This commit is contained in:
parent
9e30e6a14c
commit
7345e2e255
1 changed files with 3 additions and 6 deletions
|
@ -90,7 +90,6 @@ void HydraCore::runFrame() {
|
||||||
}
|
}
|
||||||
|
|
||||||
hid.updateInputs(emulator->getTicks());
|
hid.updateInputs(emulator->getTicks());
|
||||||
|
|
||||||
emulator->runFrame();
|
emulator->runFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,16 +115,14 @@ void HydraCore::resetContext() {
|
||||||
emulator->initGraphicsContext(nullptr);
|
emulator->initGraphicsContext(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HydraCore::destroyContext() {}
|
void HydraCore::destroyContext() { emulator.deinitGraphicsContext(); }
|
||||||
|
|
||||||
void HydraCore::setFbo(unsigned handle) { renderer->setFBO(handle); }
|
void HydraCore::setFbo(unsigned handle) { renderer->setFBO(handle); }
|
||||||
|
|
||||||
void HydraCore::setGetProcAddress(void* function) { getProcAddress = function; }
|
void HydraCore::setGetProcAddress(void* function) { getProcAddress = function; }
|
||||||
|
|
||||||
void HydraCore::setPollInputCallback(void (*callback)()) { pollInputCallback = callback; }
|
void HydraCore::setPollInputCallback(void (*callback)()) { pollInputCallback = callback; }
|
||||||
void HydraCore::setCheckButtonCallback(int32_t (*callback)(uint32_t player, hydra::ButtonType button)) { checkButtonCallback = callback; }
|
void HydraCore::setCheckButtonCallback(int32_t (*callback)(uint32_t player, hydra::ButtonType button)) { checkButtonCallback = callback; }
|
||||||
|
|
||||||
HC_API hydra::IBase* createEmulator() { return new HydraCore; }
|
HC_API hydra::IBase* createEmulator() { return new HydraCore(); }
|
||||||
HC_API void destroyEmulator(hydra::IBase* emulator) { delete emulator; }
|
HC_API void destroyEmulator(hydra::IBase* emulator) { delete emulator; }
|
||||||
|
|
||||||
HC_API const char* getInfo(hydra::InfoType type) {
|
HC_API const char* getInfo(hydra::InfoType type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue