a couple mobile improvements
comment section in sub-songs background play option!
This commit is contained in:
parent
48aa3b438f
commit
c20a839871
4 changed files with 26 additions and 8 deletions
15
src/main.cpp
15
src/main.cpp
|
|
@ -510,13 +510,6 @@ static void handleTermGUI(int) {
|
|||
// TODO: CoInitializeEx on Windows?
|
||||
// TODO: add crash log
|
||||
int main(int argc, char** argv) {
|
||||
// uncomment these if you want Furnace to play in the background on Android.
|
||||
// not recommended. it lags.
|
||||
#if defined(HAVE_SDL2) && defined(ANDROID)
|
||||
//SDL_SetHint(SDL_HINT_ANDROID_BLOCK_ON_PAUSE,"0");
|
||||
//SDL_SetHint(SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO,"0");
|
||||
#endif
|
||||
|
||||
// Windows console thing - thanks dj.tuBIG/MaliceX
|
||||
#ifdef _WIN32
|
||||
#ifndef TA_SUBSYSTEM_CONSOLE
|
||||
|
|
@ -751,6 +744,14 @@ int main(int argc, char** argv) {
|
|||
e.setAudio(DIV_AUDIO_DUMMY);
|
||||
}
|
||||
|
||||
#if defined(HAVE_SDL2) && defined(ANDROID)
|
||||
if (e.getConfInt("backgroundPlay",0)!=0) {
|
||||
SDL_SetHint(SDL_HINT_ANDROID_BLOCK_ON_PAUSE,"0");
|
||||
SDL_SetHint(SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO,"0");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
if (!fileName.empty() && ((!e.getConfBool("tutIntroPlayed",TUT_INTRO_PLAYED)) || e.getConfInt("alwaysPlayIntro",0)!=3 || consoleMode || benchMode || infoMode || outName!="" || vgmOutName!="" || cmdOutName!="")) {
|
||||
logI("loading module...");
|
||||
FILE* f=ps_fopen(fileName.c_str(),"rb");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue