switch to INI for settings (easier), make settings a singleton thingy, slightly simplify core pause/stop/reset. Drop support for remappable inputs for now

This commit is contained in:
irisz64
2025-06-27 00:50:47 +02:00
parent 38129d8d88
commit 7ca337ca48
18 changed files with 2279 additions and 137 deletions

View File

@@ -25,10 +25,7 @@ private:
class SDLWSIPlatform final : public Vulkan::WSIPlatform {
public:
explicit SDLWSIPlatform(const std::shared_ptr<n64::Core> &core, SDL_Window* window) : window(window), core(core) {}
~SDLWSIPlatform() {
if(gamepadConnected)
SDL_CloseGamepad(gamepad);
}
~SDLWSIPlatform() = default;
std::vector<const char *> get_instance_extensions() override {
auto vec = std::vector<const char *>();
@@ -71,7 +68,6 @@ public:
VkSurfaceKHR surface;
private:
std::shared_ptr<n64::Core> core;
SDL_Gamepad *gamepad{};
bool gamepadConnected = false;
};