sdl window: Added game title (serial, title and app_ver)

This commit is contained in:
raziel1000 2024-07-24 00:12:53 -06:00 committed by georgemoralis
parent f29293c9fb
commit f35518d527
3 changed files with 17 additions and 9 deletions

View file

@ -3,6 +3,7 @@
#pragma once
#include <string>
#include "common/types.h"
struct SDL_Window;
@ -40,7 +41,8 @@ struct WindowSystemInfo {
class WindowSDL {
public:
explicit WindowSDL(s32 width, s32 height, Input::GameController* controller);
explicit WindowSDL(s32 width, s32 height, Input::GameController* controller,
std::string game_title);
~WindowSDL();
s32 getWidth() const {
@ -68,6 +70,7 @@ private:
private:
s32 width;
s32 height;
std::string game_title;
Input::GameController* controller;
WindowSystemInfo window_info{};
SDL_Window* window{};