summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/ConsoleWindow.cpp
diff options
context:
space:
mode:
authorJohn Peterson <jpeterson57@gmail.com>2009-02-07 03:16:41 +0000
committerJohn Peterson <jpeterson57@gmail.com>2009-02-07 03:16:41 +0000
commitfcdd2a8e17714e8a6485ae06a6c67e696a06e438 (patch)
tree4b7f2f7537caa06d6312c4dfec2fe5f7b1218277 /Source/Core/Common/Src/ConsoleWindow.cpp
parent1d0e8ddf84f261ce2a43a318cd3c7c72b09ccf4e (diff)
Wiimote:
1. Fixed the dual mode. You should now be able to change between the real and emulated Wiimote at any time, even when the Nunchuck is connected. It also supports third party Wireless Nunchucks that never sends any calibration values. The Nunchuck status should be automatically updated. The Nunchuck stick may get stuck, but that should fix itself if you disconnect and reconnect again. The only important problems seems to be that the real Wiimote fails to answer sometimes so that the Core functions disconnect it. 2. Began looking at how to reconnect the Wiimote after an unwanted HCI disconnect command git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2129 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/ConsoleWindow.cpp')
-rw-r--r--Source/Core/Common/Src/ConsoleWindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/ConsoleWindow.cpp b/Source/Core/Common/Src/ConsoleWindow.cpp
index 9e6404b9fe..68273e013d 100644
--- a/Source/Core/Common/Src/ConsoleWindow.cpp
+++ b/Source/Core/Common/Src/ConsoleWindow.cpp
@@ -95,16 +95,19 @@ void Close()
// Print to screen and file
int Print(const char *fmt, ...)
{
+ // Maximum bytes, mind this value to avoid an overrun
+ static const int MAX_BYTES = 1024*20;
+
#if defined(_WIN32)
if(__hStdOut)
{
#endif
- char s[1024*20]; // Warning, mind this value
+ char s[MAX_BYTES];
va_list argptr;
int cnt; // To store the vsnprintf return message
va_start(argptr, fmt);
- cnt = vsnprintf(s, 500, fmt, argptr);
+ cnt = vsnprintf(s, MAX_BYTES, fmt, argptr);
va_end(argptr);