Re: Re: Wii automatically powers off after using WiiMC

Home › Forums › Help and Support › Wii automatically powers off after using WiiMC › Re: Re: Wii automatically powers off after using WiiMC

#30700

Somehow I missed Inactivity Shutdown. It’s turned off now, and I’ll see if it works tomorrow. However, I was looking through the code and something doesn’t seem right.

menu.cpp

if(WiiSettings.inactivityShutdown > 0 &&
!(wiiAudioOnly() && !wiiIsPaused()) &&
diff_sec(ssTimer, gettime()) > (u32)(WiiSettings.inactivityShutdown*3600))
{
ExitRequested = true;
ShutdownRequested = true;
}

mplayer.c

bool wiiAudioOnly()
{
if(!playing_file || controlledbygui == 2)
return false;

if(mpctx->sh_video || !mpctx->sh_audio || mpctx->eof)
return false;

return true;
}

Maybe this is how it was intended to run, but if it checks that when switching files in a playlist, it will act as if you haven’t played a file in x hours.