-temporary disable gecko output before booting a wii game

(hopefully fixes random blackscreens)
This commit is contained in:
fix94.1 2012-07-18 20:08:53 +00:00
parent f45e70c7d3
commit 4e9f70490c
3 changed files with 10 additions and 1 deletions

View File

@ -16,7 +16,7 @@
/* init-globals */ /* init-globals */
bool geckoinit = false; bool geckoinit = false;
bool textVideoInit = false; bool textVideoInit = false;
bool geckoDisable = false;
bool bufferMessages = true; bool bufferMessages = true;
bool WriteToSD = false; bool WriteToSD = false;
@ -108,6 +108,8 @@ void WriteToFile(char* tmp)
//using the gprintf from crediar because it is smaller than mine //using the gprintf from crediar because it is smaller than mine
void gprintf( const char *format, ... ) void gprintf( const char *format, ... )
{ {
if(geckoDisable)
return;
char *tmp = NULL; char *tmp = NULL;
va_list va; va_list va;
va_start(va, format); va_start(va, format);
@ -182,6 +184,11 @@ bool InitGecko()
return false; return false;
} }
void GeckoDisable()
{
geckoDisable = true;
}
void AllocSDGeckoBuffer() void AllocSDGeckoBuffer()
{ {
tmpfilebuffer = (char*)MEM2_alloc(filebuffer + 1 * sizeof(char)); tmpfilebuffer = (char*)MEM2_alloc(filebuffer + 1 * sizeof(char));

View File

@ -17,6 +17,7 @@ extern "C" {
bool InitGecko(); bool InitGecko();
void AllocSDGeckoBuffer(); void AllocSDGeckoBuffer();
void ClearLogBuffer(); void ClearLogBuffer();
void GeckoDisable();
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -1411,6 +1411,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
if(currentPartition == 0) if(currentPartition == 0)
SDHC_Init(); SDHC_Init();
GeckoDisable();
#endif #endif
RunApploader(offset, videoMode, vipatch, countryPatch, patchVidMode, aspectRatio, returnTo); RunApploader(offset, videoMode, vipatch, countryPatch, patchVidMode, aspectRatio, returnTo);