Skip to content

Commit

Permalink
Update hydra_core.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat authored Oct 20, 2023
1 parent 32dca90 commit 7c33ff5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hydra_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <hydra/core.hxx>
#include <renderer_gl/renderer_gl.hpp>

#include <stdexcept>

class HC_GLOBAL HydraCore final : public hydra::IBase, public hydra::IOpenGlRendered, public hydra::IFrontendDriven, public hydra::IInput {
HYDRA_CLASS
public:
Expand Down Expand Up @@ -74,7 +76,6 @@ void HydraCore::runFrame() {
}

void HydraCore::reset() { emulator->reset(Emulator::ReloadOption::Reload); }

hydra::Size HydraCore::getNativeSize() { return {400, 480}; }

// Size doesn't matter as the glBlitFramebuffer call is commented out for the core
Expand All @@ -95,15 +96,12 @@ void HydraCore::setGetProcAddress(void* function) {
}

void HydraCore::setContext(void*) {}

void HydraCore::setFbo(unsigned handle) { renderer->setFBO(handle); }

void HydraCore::setPollInputCallback(void (*callback)()) { pollInputCallback = 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 void destroyEmulator(hydra::IBase* emulator) { delete emulator; }

HC_API const char* getInfo(hydra::InfoType type) {
Expand Down

0 comments on commit 7c33ff5

Please sign in to comment.