Skip to content

Commit

Permalink
Don't auto run solo EXE when having bootable operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
schellingb committed Oct 17, 2024
1 parent 38328de commit b5dd41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dosbox_pure_osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ static void DBP_PureMenuProgram(Program** make)

DBP_FullscreenOSD = true;
DBP_PureMenuState* ms = new DBP_PureMenuState(m == M_BOOT);
bool runsoloexe = (ms->exe_count == 1 && ms->fs_rows <= 2 && !patchDrive::variants.Len());
bool runsoloexe = (ms->exe_count == 1 && ms->fs_rows <= (dbp_images.size() + 1) && !patchDrive::variants.Len());

#ifndef STATIC_LINKING
if (m == M_FINISH && dbp_menu_time >= 0 && dbp_menu_time < 99 && (runsoloexe || DBP_Run::autoboot.use) && (DBP_GetTicks() - dbp_lastmenuticks) >= 500)
Expand Down

0 comments on commit b5dd41b

Please sign in to comment.