Enable GBA_LOGGING for Release builds

This commit is contained in:
spacy51 2008-05-20 14:53:16 +00:00
parent 2078af0849
commit f08da5cdce
5 changed files with 5 additions and 10 deletions

View File

@ -165,7 +165,7 @@
FavorSizeOrSpeed="1" FavorSizeOrSpeed="1"
WholeProgramOptimization="true" WholeProgramOptimization="true"
AdditionalIncludeDirectories=""..\dependencies\File_Extractor-0.4.3\fex";..\dependencies\msvc" AdditionalIncludeDirectories=""..\dependencies\File_Extractor-0.4.3\fex";..\dependencies\msvc"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;OEMRESOURCE;MMX;ASM;FINAL_VERSION;BKPT_SUPPORT;_CRT_SECURE_NO_DEPRECATE;HAS_FILE_EXTRACTOR" PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;GBA_LOGGING;OEMRESOURCE;MMX;ASM;FINAL_VERSION;BKPT_SUPPORT;_CRT_SECURE_NO_DEPRECATE;HAS_FILE_EXTRACTOR"
RuntimeLibrary="0" RuntimeLibrary="0"
BufferSecurityCheck="false" BufferSecurityCheck="false"
EnableEnhancedInstructionSet="0" EnableEnhancedInstructionSet="0"

View File

@ -63,7 +63,6 @@ extern int cpuTotalTicks;
static inline u32 CPUReadMemory(u32 address) static inline u32 CPUReadMemory(u32 address)
{ {
#ifdef GBA_LOGGING #ifdef GBA_LOGGING
if(address & 3) { if(address & 3) {
if(systemVerbose & VERBOSE_UNALIGNED_MEMORY) { if(systemVerbose & VERBOSE_UNALIGNED_MEMORY) {

View File

@ -289,7 +289,6 @@ void OpenAL::write()
ALFunction.alGetSourcei( source, AL_BUFFERS_PROCESSED, &nBuffersProcessed ); ALFunction.alGetSourcei( source, AL_BUFFERS_PROCESSED, &nBuffersProcessed );
ASSERT_SUCCESS; ASSERT_SUCCESS;
#ifdef _DEBUG
if( nBuffersProcessed == theApp.oalBufferCount ) { if( nBuffersProcessed == theApp.oalBufferCount ) {
// we only want to know about it when we are emulating at full speed or faster: // we only want to know about it when we are emulating at full speed or faster:
if( ( theApp.throttle >= 100 ) || ( theApp.throttle == 0 ) ) { if( ( theApp.throttle >= 100 ) || ( theApp.throttle == 0 ) ) {
@ -299,7 +298,6 @@ void OpenAL::write()
} }
} }
} }
#endif
if( !speedup && synchronize && !theApp.throttle ) { if( !speedup && synchronize && !theApp.throttle ) {
// wait until at least one buffer has finished // wait until at least one buffer has finished

View File

@ -12,7 +12,6 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS #undef APSTUDIO_READONLY_SYMBOLS
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources // English (U.S.) resources
@ -812,8 +811,9 @@ BEGIN
LTEXT "",IDC_PORT,143,7,36,8,SS_NOPREFIX LTEXT "",IDC_PORT,143,7,36,8,SS_NOPREFIX
END END
IDD_LOGGING DIALOGEX 0, 0, 381, 221 IDD_LOGGING DIALOGEX 0, 0, 382, 220
STYLE DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME STYLE DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Logging" CAPTION "Logging"
FONT 8, "MS Sans Serif", 0, 0, 0x0 FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN BEGIN
@ -1376,9 +1376,9 @@ BEGIN
IDD_LOGGING, DIALOG IDD_LOGGING, DIALOG
BEGIN BEGIN
LEFTMARGIN, 7 LEFTMARGIN, 7
RIGHTMARGIN, 374 RIGHTMARGIN, 375
TOPMARGIN, 7 TOPMARGIN, 7
BOTTOMMARGIN, 214 BOTTOMMARGIN, 213
END END
IDD_EXPORT_SPS, DIALOG IDD_EXPORT_SPS, DIALOG

View File

@ -254,7 +254,6 @@ void XAudio2_Output::write()
ASSERT( vState.BuffersQueued <= NBUFFERS ); ASSERT( vState.BuffersQueued <= NBUFFERS );
if( vState.BuffersQueued < NBUFFERS ) { if( vState.BuffersQueued < NBUFFERS ) {
#ifdef _DEBUG
if( vState.BuffersQueued == 0 ) { if( vState.BuffersQueued == 0 ) {
// buffers ran dry // buffers ran dry
if( systemVerbose & VERBOSE_SOUNDOUTPUT ) { if( systemVerbose & VERBOSE_SOUNDOUTPUT ) {
@ -262,7 +261,6 @@ void XAudio2_Output::write()
log( "XAudio2: Buffers were not refilled fast enough (i=%i)\n", i++ ); log( "XAudio2: Buffers were not refilled fast enough (i=%i)\n", i++ );
} }
} }
#endif
// there is at least one free buffer // there is at least one free buffer
break; break;
} else { } else {