diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-09-02 07:33:56 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-09-02 07:33:56 +0200 |
| commit | 7fb8572765af25cd9bebf7eb4fbb8828e7901862 (patch) | |
| tree | 0b3ee60f01570d587d0f7bd0172ea327bd36e08d | |
| parent | d287a278cf28f419b5ef4cb1ec211904c62bb93b (diff) | |
| parent | 56122728c8a8180cfeff89e6e8e64e4a889fe55e (diff) | |
Merge pull request #935 from lioncash/snprintf
DolphinWX: Get rid of an snprintf call in ISOProperties
| -rw-r--r-- | Source/Core/DolphinWX/ISOProperties.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index 735d6eea6a..27aa03fedc 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -167,12 +167,10 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW if (!_iniFilename.length()) { - char tmp[17]; - u8 _tTitleID[8]; - if (OpenISO->GetTitleID(_tTitleID)) + u8 title_id[8]; + if (OpenISO->GetTitleID(title_id)) { - snprintf(tmp, 17, "%016" PRIx64, Common::swap64(_tTitleID)); - _iniFilename = tmp; + _iniFilename = StringFromFormat("%016" PRIx64, Common::swap64(title_id)); } } |
