Add option to disable G3D log

This commit is contained in:
raven02 2013-01-11 16:04:47 +08:00
parent 6ab6045baf
commit e34ba40519
4 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public:
bool bUseVBO;
int iWindowZoom; // for Windows
bool SSAntiAlaising; //for Windows, too
bool bDisableG3DLog;
// Sound
bool bEnableSound;

View File

@ -507,6 +507,14 @@ namespace MainWindow
g_Config.SSAntiAlaising = !g_Config.SSAntiAlaising;
UpdateMenus();
break;
case ID_OPTIONS_DISABLEG3DLOG:
g_Config.bDisableG3DLog = !g_Config.bDisableG3DLog;
if (!g_Config.bDisableG3DLog )
LogManager::GetInstance()->SetEnable(LogTypes::G3D, true);
else
LogManager::GetInstance()->SetEnable(LogTypes::G3D, false);
UpdateMenus();
break;
case ID_OPTIONS_CONTROLS:
DialogManager::EnableAll(FALSE);
DialogBox(hInst, (LPCTSTR)IDD_CONTROLS, hWnd, (DLGPROC)Controls);
@ -653,6 +661,7 @@ namespace MainWindow
CHECKITEM(ID_OPTIONS_SIMPLE2XSSAA, g_Config.SSAntiAlaising);
CHECKITEM(ID_EMULATION_RUNONLOAD, g_Config.bAutoRun);
CHECKITEM(ID_OPTIONS_USEVBO, g_Config.bUseVBO);
CHECKITEM(ID_OPTIONS_DISABLEG3DLOG, g_Config.bDisableG3DLog);
UINT enable = !Core_IsStepping() ? MF_GRAYED : MF_ENABLED;
EnableMenuItem(menu,ID_EMULATION_RUN, g_State.bEmuThreadStarted ? enable : MF_GRAYED);

View File

@ -261,6 +261,7 @@ BEGIN
MENUITEM "&Wireframe (experimental)", ID_OPTIONS_WIREFRAME
MENUITEM "&Display Raw Framebuffer", ID_OPTIONS_DISPLAYRAWFRAMEBUFFER
MENUITEM "&Show Debug Statistics", ID_OPTIONS_SHOWDEBUGSTATISTICS
MENUITEM "&Disable G3D Log", ID_OPTIONS_DISABLEG3DLOG
MENUITEM SEPARATOR
MENUITEM "Screen &1x\tCtrl+1", ID_OPTIONS_SCREEN1X
MENUITEM "Screen &2x\tCtrl+2", ID_OPTIONS_SCREEN2X

View File

@ -256,6 +256,7 @@
#define ID_DEBUG_DUMPNEXTFRAME 40132
#define ID_OPTIONS_SIMPLE2XSSAA 40133
#define ID_OPTIONS_USEVBO 40134
#define ID_OPTIONS_DISABLEG3DLOG 40135
#define IDC_STATIC -1
// Next default values for new objects