mirror of
https://github.com/esuo1198/TaikoArcadeLoader.git
synced 2026-10-10 16:18:30 +03:00
Fix
This commit is contained in:
+1
-3
@@ -73,10 +73,8 @@ printColour (int colour, const char *format, ...) {
|
||||
|
||||
if (consoleHandle == 0) consoleHandle = GetStdHandle (STD_OUTPUT_HANDLE);
|
||||
|
||||
char buffer[255];
|
||||
vsprintf (buffer, format, args);
|
||||
SetConsoleTextAttribute (consoleHandle, colour);
|
||||
printf ("%s", buffer);
|
||||
vprintf (format, args);
|
||||
SetConsoleTextAttribute (consoleHandle, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
|
||||
|
||||
va_end (args);
|
||||
|
||||
+1
-1
@@ -160,6 +160,7 @@ InitializePoll (void *DivaWindowHandle) {
|
||||
if (SDL_GameControllerAddMappingsFromFile (configPath ("gamecontrollerdb.txt")) == -1)
|
||||
printError ("%s (): Cannot read gamecontrollerdb.txt\n", __func__);
|
||||
SDL_GameControllerEventState (SDL_ENABLE);
|
||||
SDL_JoystickEventState (SDL_ENABLE);
|
||||
|
||||
for (int i = 0; i < SDL_NumJoysticks (); i++) {
|
||||
if (!SDL_IsGameController (i)) continue;
|
||||
@@ -172,7 +173,6 @@ InitializePoll (void *DivaWindowHandle) {
|
||||
}
|
||||
|
||||
controllers[i] = controller;
|
||||
break;
|
||||
}
|
||||
|
||||
window = SDL_CreateWindowFrom (DivaWindowHandle);
|
||||
|
||||
Reference in New Issue
Block a user