diff options
author | bunnei <bunneidev@gmail.com> | 2014-10-25 21:19:05 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-10-25 21:19:05 +0200 |
commit | 70058f8151a9c6599bbcd9d5772b87c9602ed0fa (patch) | |
tree | b7f0711f1d817b18f041fea31cfcf0ebe9cbba69 /src/common/emu_window.h | |
parent | Merge pull request #112 from bunnei/skyeye-dyncom-interpreter (diff) | |
parent | Removed uses of raw c-string manipulation functions. (diff) | |
download | yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar.gz yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar.bz2 yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar.lz yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar.xz yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.tar.zst yuzu-70058f8151a9c6599bbcd9d5772b87c9602ed0fa.zip |
Diffstat (limited to 'src/common/emu_window.h')
-rw-r--r-- | src/common/emu_window.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 34cecb40b..4d09acb8b 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h @@ -6,7 +6,7 @@ #include "common/common.h" #include "common/scm_rev.h" - +#include "common/string_util.h" #include "common/key_map.h" // Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL, @@ -75,11 +75,11 @@ public: } protected: - EmuWindow() : m_client_area_width(640), m_client_area_height(480) { - char window_title[255]; - sprintf(window_title, "Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc); - m_window_title = window_title; - } + EmuWindow(): + m_client_area_width(640), + m_client_area_height(480), + m_window_title(Common::StringFromFormat("Citra | %s-%s", Common::g_scm_branch, Common::g_scm_desc)) + {} virtual ~EmuWindow() {} std::string m_window_title; ///< Current window title, should be used by window impl. |