mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
OpenGL: Changed printf to DEBUG_LOG to avoid that it's always shown in the console window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1801 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
aacfb94059
commit
cbdad3495d
@ -78,14 +78,17 @@ struct TRectangle
|
||||
int left, top, right, bottom;
|
||||
};
|
||||
|
||||
void DebugLog(const char* _fmt, ...);
|
||||
void __Log(const char *format, ...);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Logging
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
void DebugLog(const char* _fmt, ...); // This one goes to the main program
|
||||
void __Log(const char *format, ...); // This one is for the local console
|
||||
void __Log(int type, const char *format, ...);
|
||||
void HandleGLError();
|
||||
|
||||
#define ERROR_LOG __Log
|
||||
|
||||
|
||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||
// FIXME ugly hack for debug to build should use logmanager
|
||||
//#define INFO_LOG if( g_Config.iLog & CONF_LOG ) __Log
|
||||
@ -98,5 +101,7 @@ void HandleGLError();
|
||||
#define PRIM_LOG(...)
|
||||
#define DEBUG_LOG(...)
|
||||
#endif
|
||||
///////////////////////////////////
|
||||
|
||||
|
||||
#endif // _VIDEOCOMMON_H
|
||||
|
@ -317,7 +317,7 @@ void BPWritten(int addr, int changes, int newval)
|
||||
// TODO: Figure out how to do these in GL
|
||||
//TEV_FSEL_BX, TEV_FSEL_BX2?
|
||||
default:
|
||||
printf("Non-Emulated Fog selection %d\n", bpmem.fog.c_proj_fsel.fsel);
|
||||
DEBUG_LOG("Non-Emulated Fog selection %d\n", bpmem.fog.c_proj_fsel.fsel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,10 @@
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
#include <wx/wx.h>
|
||||
#include <wx/filepicker.h>
|
||||
@ -30,11 +34,18 @@
|
||||
|
||||
#include "IniFile.h"
|
||||
#include <assert.h>
|
||||
/////////////////////////////////////
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Declarations and definitions
|
||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||
#ifdef _WIN32
|
||||
|
||||
// The one for Linux is in Linux/Linux.cpp
|
||||
// The Windows console handle. The one for Linux is in Linux/Linux.cpp
|
||||
static HANDLE hConsole = NULL;
|
||||
//////////////////////////////////
|
||||
|
||||
|
||||
void OpenConsole()
|
||||
{
|
||||
|
@ -16,16 +16,22 @@
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
|
||||
// --------------------
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Includes
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
#include "../Globals.h"
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
//////////////////////////////////
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Declarations and definitions
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
|
||||
// --------------------
|
||||
// On and off
|
||||
bool g_consoleEnable = true;
|
||||
@ -47,6 +53,7 @@ FILE* __fStdOut[1]; // you have to update this manually, we can't place a nFiles
|
||||
#ifdef _WIN32
|
||||
HANDLE __hStdOut = NULL;
|
||||
#endif
|
||||
///////////////////////////////////
|
||||
|
||||
|
||||
// =======================================================================================
|
||||
@ -159,6 +166,9 @@ void OpenConsole()
|
||||
}
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Get the window handle of the console
|
||||
// ¯¯¯¯¯¯¯¯¯¯
|
||||
#if defined(DEBUGG) && defined(_WIN32)
|
||||
HWND GetConsoleHwnd(void)
|
||||
{
|
||||
@ -200,3 +210,4 @@ HWND GetConsoleHwnd(void)
|
||||
|
||||
}
|
||||
#endif // win32
|
||||
////////////////////////////////////
|
@ -261,6 +261,7 @@ void Logging(int a)
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
ClearScreen();
|
||||
#endif
|
||||
|
||||
__Log("%s", sbuff.c_str());
|
||||
sbuff.clear(); strcpy(buffer, "");
|
||||
// ================
|
||||
|
Loading…
x
Reference in New Issue
Block a user