moved some confusing code

This commit is contained in:
Paul Dino Jones 2025-01-25 09:51:20 -05:00
parent 0e47f53f88
commit 8bf98fae1e
1 changed files with 3 additions and 5 deletions

View File

@ -165,6 +165,8 @@ int main(int argc, char** argv)
slogi("Openend monocoque configuration file"); slogi("Openend monocoque configuration file");
} }
if (ms->program_action == A_CONFIG_TACH) if (ms->program_action == A_CONFIG_TACH)
{ {
int error = 0; int error = 0;
@ -214,15 +216,11 @@ int main(int argc, char** argv)
int error = 0; int error = 0;
error = MONOCOQUE_ERROR_NONE; error = MONOCOQUE_ERROR_NONE;
setupsound(); setupsound();
bool pulseaudio = false;
if (ms->program_action == A_PLAY) if (ms->program_action == A_PLAY)
{ {
ms->useconfig = 1; ms->useconfig = 1;
}
bool pulseaudio = false;
if (ms->program_action == A_PLAY)
{
slogi("running monocoque in gameloop mode.."); slogi("running monocoque in gameloop mode..");
#ifdef USE_PULSEAUDIO #ifdef USE_PULSEAUDIO
pa_threaded_mainloop_unlock(mainloop); pa_threaded_mainloop_unlock(mainloop);