mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-28 12:51:52 +01:00
-temporary disable gecko output before booting a wii game
(hopefully fixes random blackscreens)
This commit is contained in:
parent
f45e70c7d3
commit
4e9f70490c
@ -16,7 +16,7 @@
|
||||
/* init-globals */
|
||||
bool geckoinit = false;
|
||||
bool textVideoInit = false;
|
||||
|
||||
bool geckoDisable = false;
|
||||
bool bufferMessages = true;
|
||||
bool WriteToSD = false;
|
||||
|
||||
@ -108,6 +108,8 @@ void WriteToFile(char* tmp)
|
||||
//using the gprintf from crediar because it is smaller than mine
|
||||
void gprintf( const char *format, ... )
|
||||
{
|
||||
if(geckoDisable)
|
||||
return;
|
||||
char *tmp = NULL;
|
||||
va_list va;
|
||||
va_start(va, format);
|
||||
@ -182,6 +184,11 @@ bool InitGecko()
|
||||
return false;
|
||||
}
|
||||
|
||||
void GeckoDisable()
|
||||
{
|
||||
geckoDisable = true;
|
||||
}
|
||||
|
||||
void AllocSDGeckoBuffer()
|
||||
{
|
||||
tmpfilebuffer = (char*)MEM2_alloc(filebuffer + 1 * sizeof(char));
|
||||
|
@ -17,6 +17,7 @@ extern "C" {
|
||||
bool InitGecko();
|
||||
void AllocSDGeckoBuffer();
|
||||
void ClearLogBuffer();
|
||||
void GeckoDisable();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -1411,6 +1411,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd)
|
||||
|
||||
if(currentPartition == 0)
|
||||
SDHC_Init();
|
||||
GeckoDisable();
|
||||
#endif
|
||||
|
||||
RunApploader(offset, videoMode, vipatch, countryPatch, patchVidMode, aspectRatio, returnTo);
|
||||
|
Loading…
Reference in New Issue
Block a user