yuzu_cmd: Update title bar/version info to more closely match yuzu Qt and include official build #.

This commit is contained in:
bunnei
2022-05-04 19:07:41 -07:00
parent 18a0c2e9db
commit 9e32d1d5c4
3 changed files with 13 additions and 9 deletions
@@ -90,8 +90,8 @@ EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(InputCommon::InputSubsystem* input_subsyste
} }
SDL_GL_SetSwapInterval(0); SDL_GL_SetSwapInterval(0);
std::string window_title = fmt::format("yuzu {} | {}-{}", Common::g_build_fullname, std::string window_title = fmt::format("{} | {}-{}", Common::g_title_bar_format_idle,
Common::g_scm_branch, Common::g_scm_desc); Common::g_scm_branch, Common::g_scm_rev);
render_window = render_window =
SDL_CreateWindow(window_title.c_str(), SDL_CreateWindow(window_title.c_str(),
SDL_WINDOWPOS_UNDEFINED, // x position SDL_WINDOWPOS_UNDEFINED, // x position
@@ -136,8 +136,9 @@ EmuWindow_SDL2_GL::EmuWindow_SDL2_GL(InputCommon::InputSubsystem* input_subsyste
OnResize(); OnResize();
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size); OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
SDL_PumpEvents(); SDL_PumpEvents();
LOG_INFO(Frontend, "yuzu Version: {} | {}-{}", Common::g_build_fullname, Common::g_scm_branch,
Common::g_scm_desc); LOG_INFO(Frontend, "{} | {}-{}", Common::g_title_bar_format_idle, Common::g_scm_branch,
Common::g_scm_rev);
Settings::LogSettings(); Settings::LogSettings();
} }
@@ -24,8 +24,10 @@
EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsystem, EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsystem,
Core::System& system_, bool fullscreen) Core::System& system_, bool fullscreen)
: EmuWindow_SDL2{input_subsystem, system_} { : EmuWindow_SDL2{input_subsystem, system_} {
const std::string window_title = fmt::format("yuzu {} | {}-{} (Vulkan)", Common::g_build_name, const std::string window_title =
Common::g_scm_branch, Common::g_scm_desc); fmt::format("{} | {}-{} (Vulkan)", Common::g_title_bar_format_idle, Common::g_scm_branch,
Common::g_scm_rev);
render_window = render_window =
SDL_CreateWindow(window_title.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SDL_CreateWindow(window_title.c_str(), SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height, Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height,
@@ -89,8 +91,8 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste
OnResize(); OnResize();
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size); OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
SDL_PumpEvents(); SDL_PumpEvents();
LOG_INFO(Frontend, "yuzu Version: {} | {}-{} (Vulkan)", Common::g_build_name, LOG_INFO(Frontend, "{} | {}-{} (Vulkan)", Common::g_title_bar_format_idle, Common::g_scm_branch,
Common::g_scm_branch, Common::g_scm_desc); Common::g_scm_rev);
} }
EmuWindow_SDL2_VK::~EmuWindow_SDL2_VK() = default; EmuWindow_SDL2_VK::~EmuWindow_SDL2_VK() = default;
+2 -1
View File
@@ -67,7 +67,8 @@ static void PrintHelp(const char* argv0) {
} }
static void PrintVersion() { static void PrintVersion() {
std::cout << "yuzu " << Common::g_scm_branch << " " << Common::g_scm_desc << std::endl; std::cout << Common::g_title_bar_format_idle << " " << Common::g_scm_branch << "-"
<< Common::g_scm_rev << std::endl;
} }
/// Application entry point /// Application entry point