mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +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 */
|
/* 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));
|
||||||
|
@ -17,6 +17,7 @@ extern "C" {
|
|||||||
bool InitGecko();
|
bool InitGecko();
|
||||||
void AllocSDGeckoBuffer();
|
void AllocSDGeckoBuffer();
|
||||||
void ClearLogBuffer();
|
void ClearLogBuffer();
|
||||||
|
void GeckoDisable();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user