First working version of desktop emulator with game launcher support. Includes local stubs and launcher logic.

This commit is contained in:
Adolfo Reyna
2026-01-30 23:35:43 -05:00
parent d2fd001e70
commit c1423b66aa
28 changed files with 5074 additions and 0 deletions

25
emulator/game.h Normal file
View File

@@ -0,0 +1,25 @@
// Emulator copy of game.h
#ifndef GAME_H
#define GAME_H
#include <stdint.h>
#include "input_event.h"
#include "../display/low_level_render.h"
#include "../display/low_level_gui.h"
class InputManager;
class Game {
public:
Game(uint16_t width, uint16_t height, LowLevelRenderer* renderer, LowLevelGUI* gui, InputManager* input_manager)
: width(width), height(height), renderer(renderer), gui(gui), input_manager(input_manager) {}
virtual ~Game() {}
virtual void init() = 0;
virtual bool update(const InputEvent& event) = 0;
virtual void draw() = 0;
virtual bool wants_to_exit() const { return false; }
protected:
uint16_t width;
uint16_t height;
LowLevelRenderer* renderer;
LowLevelGUI* gui;
InputManager* input_manager;
};
#endif // GAME_H