Removed uses of raw c-string manipulation functions.
This commit is contained in:
parent
ce8390ac03
commit
7fa4dbd0c6
4 changed files with 10 additions and 21 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue