print git info in windows title

This commit is contained in:
georgemoralis 2024-08-01 00:56:10 +03:00
parent 0ac9f8ffa4
commit 62e501f31f
9 changed files with 248 additions and 6 deletions

View file

@ -27,6 +27,7 @@
#include "core/memory.h"
#include "emulator.h"
#include "video_core/renderdoc.h"
#include "src/common/scm_rev.h"
Frontend::WindowSDL* g_window = nullptr;
@ -100,10 +101,11 @@ void Emulator::Run(const std::filesystem::path& file) {
}
}
}
std::string game_title = fmt::format("{} - {} <{}>", id, title, app_version);
const std::string window_title = fmt::format("shadPS4 v{} {}| {}", Common::VERSION, Common::g_scm_desc,game_title);
window =
std::make_unique<Frontend::WindowSDL>(WindowWidth, WindowHeight, controller, game_title);
std::make_unique<Frontend::WindowSDL>(WindowWidth, WindowHeight, controller, window_title);
g_window = window.get();