add -silent option

This commit is contained in:
Wengier
2020-10-27 22:36:11 -04:00
parent c98b2723b2
commit e12362e261
4 changed files with 17 additions and 6 deletions

View File

@@ -129,12 +129,16 @@
direct parallel port passthrough feature. (Wengier)
- Improved Flatpak support for Linux. (rderooy)
- Improved message for the -help command-line option,
adding for example the -socket option. (Wengier)
adding for example -silent and -socket command-line
options in the help messages. (Wengier)
- Added -silent command-line option to run DOSBox-X
silently (without showing the DOSBox-X window) and
then exit after executing AUTOEXEC.BAT. (Wengier)
- Fixed command-line option -socket not working for
the null-modem feature. (Wengier)
- Fixed issue that aspect ratio not being respected
in full-screen mode when a GLSL shader is enabled
with an OpenGL output. (Wengier)
- Fixed command-line option -socket not working for
the null-modem feature. (Wengier)
- Fixed shelling from programs may not work when the
shell config option is set. (Wengier)
- Improved Gravis Ultrasound (GUS) implementation to

View File

@@ -7165,6 +7165,7 @@ bool DOSBOX_parse_argv() {
fprintf(stderr," -noconfig Do not execute CONFIG.SYS config section\n");
fprintf(stderr," -noautoexec Do not execute AUTOEXEC.BAT config section\n");
fprintf(stderr," -exit Exit after executing AUTOEXEC.BAT\n");
fprintf(stderr," -silent Run DOSBox-X silently and exit after executing AUTOEXEC.BAT.\n");
fprintf(stderr," -c <command string> Execute this command in addition to AUTOEXEC.BAT.\n");
fprintf(stderr," Make sure to surround the command in quotes to cover spaces.\n");
fprintf(stderr," -set <section property=value> Set the config option (overriding the config file).\n");
@@ -7226,6 +7227,11 @@ bool DOSBOX_parse_argv() {
else if (optname == "break-start") {
control->opt_break_start = true;
}
else if (optname == "silent") {
putenv("SDL_VIDEODRIVER=dummy");
control->opt_exit = true;
control->opt_fastlaunch = true;
}
else if (optname == "exit") {
control->opt_exit = true;
}
@@ -8453,8 +8459,6 @@ bool intensity_menu_callback(DOSBoxMenu * const menu,DOSBoxMenu::item * const me
CALLBACK_RunRealInt(0x10);
reg_ax = oldax;
reg_bx = oldbx;
mainMenu.get_item("text_background").check(!blinking).refresh_item(mainMenu);
mainMenu.get_item("text_blinking").check(blinking).refresh_item(mainMenu);
return true;
}

View File

@@ -20,6 +20,7 @@
#include "dosbox.h"
#include "control.h"
#include "mem.h"
#include "menu.h"
#include "callback.h"
#include "regs.h"
#include "inout.h"
@@ -160,6 +161,8 @@ Bitu INT10_Handler(void) {
break;
case 0x03: /* TOGGLE INTENSITY/BLINKING BIT */
blinking=reg_bl==1;
mainMenu.get_item("text_background").check(!blinking).refresh_item(mainMenu);
mainMenu.get_item("text_blinking").check(blinking).refresh_item(mainMenu);
INT10_ToggleBlinkingBit(reg_bl);
break;
case 0x07: /* GET SINGLE PALETTE REGISTER */

View File

@@ -1,5 +1,5 @@
#!/bin/bash
src/dosbox-x -defaultconf -defaultdir . -exit -fastlaunch -c 'config -wcp dosbox-x.reference.conf' -c 'config -all -wcp dosbox-x.reference.full.conf' -c 'config -setup -wcp contrib/windows/installer/dosbox-x.reference.setup.conf' || exit 1
src/dosbox-x -defaultconf -defaultdir . -silent -c 'config -wcp dosbox-x.reference.conf' -c 'config -all -wcp dosbox-x.reference.full.conf' -c 'config -setup -wcp contrib/windows/installer/dosbox-x.reference.setup.conf' || exit 1
# Convert to Unix format if needed
dos2unix dosbox-x.reference.conf