mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-09 20:18:19 +03:00
print git info in windows title
This commit is contained in:
parent
0ac9f8ffa4
commit
62e501f31f
9 changed files with 248 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue