diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-02-03 00:59:26 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-02-03 00:59:26 +0000 |
| commit | 220eafad0e2431b114a3fbe8574b5bf7e34f4e1c (patch) | |
| tree | e81d3313627776a045480f3db4cd727b86b135b7 /Source/Core/Common/Src/StringUtil.cpp | |
| parent | ace2ea395dbed0fd7f8962e8bd0bd4002aecabd0 (diff) | |
Wiimote: The first working IR recording, use Alt + the numerical HotKey to play back the IR data associated with a recording
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2078 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/StringUtil.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 28cb67d08b..ef95259bd0 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -149,14 +149,15 @@ std::string StringFromFormat(const char* format, ...) // =================================================== /* For Debugging. Read out an u8 array. */ // ---------------- -std::string ArrayToString(const u8 *data, u32 size, u32 offset, int line_len) +std::string ArrayToString(const u8 *data, u32 size, u32 offset, int line_len, bool Spaces) { //const u8* _data = (const u8*)data; std::string Temp; for (u32 i = 0; i < size; i++) { char Buffer[128]; - sprintf(Buffer, "%02x ", data[i + offset]); + if (Spaces) sprintf(Buffer, "%02x ", data[i + offset]); + else sprintf(Buffer, "%02x", data[i + offset]); if((i + 1) % line_len == 0) Temp.append("\n"); // break long lines Temp.append(Buffer); } |
