Comments (5)
Ok, my thoughts:
Current behaviour
I've added echo global.conf
to the autoexec section of the primary conf, then a.conf
contains echo "a.conf"
, and b.conf
has echo "b.conf"
. The local dosbox.conf
contains echo "dosbox.conf"
.
dosbox -c 'echo "c1"' --conf a.conf -c 'echo "c2"' --conf b.conf -c 'echo "c3"'
So the command execution order is:
-c
args in order as specified[autoexec]
of the global config[autoexec]
of the localdosbox.conf
config[autoexec]
of the--conf
args in order as specified
Proposed behaviour
Given the same command:
dosbox -c 'echo "c1"' --conf a.conf -c 'echo "c2"' --conf b.conf -c 'echo "c3"'
We could execute things in the order they appear in the command line, so:
[autoexec]
of the global config[autoexec]
of the localdosbox.conf
config-c 'echo "c1"'
--conf a.conf
-c 'echo "c2"'
--conf b.conf
-c 'echo "c3"'
I find executing anything before the global and local configs very questionable, so ideally I'd always execute the global config first followed by the local config.
Not sure what this would break though... Probably there will be at least one guy who's super upset about this (like always 😄), but does it matter? Unless a large number of people depend on running stuff before the global & local configs, I think this is a better, more logical and more flexible solution.
from dosbox-staging.
Seem reasonable. Not too sure if this would cause regressions we'd need to worry about. Probably not.
from dosbox-staging.
If I understand this change correctly, then I would personally find it objectionable. I am currently passing DOS environment variables to be fed into if %VAR%=1 goto
s within the autoexec script. The resulting goto
s can achieve much more functionality than just explicitly specifing an EXE to run. If the commands were set after the script, then I think I would lose this functionality?
E.g. in the form: "Eradicator -- Multiplayer (Host)" dosbox -conf dosbox-ERAD.conf -c set RUNSERVER=1 --set ipx=true
from dosbox-staging.
Well, I think it's more sensible to run any commands specified in the command line after all configs have been loaded. It's just common sense.
Otherwise, there would be no end to the special requests. E.g., you want the command to be executed before loading any configs @QmwJlHuSg9pa. But what if you specify two or more config files, then want to execute some commands in the middle somewhere? 😄
I'm leaning towards executing commands after all configs have been loaded. If someone wants to parametrise the config files like you @QmwJlHuSg9pa, you can always write it programmatically (or manually), then specify multiple -conf
args which will be executed in order. E.g.:
dosbox --conf one-var-setup.conf --conf one.conf --conf three.conf
from dosbox-staging.
Another option, we literally run things in order. So the order of -c
and --conf
params is respected. Probably that's the best solution, but can be fiddly to implement. Or maybe not 🤷🏻 😆
from dosbox-staging.
Related Issues (20)
- Consider adding Tandy "Direct DAC" patch
- Loadfix command does not work on batch files HOT 4
- Disappears mouse of the Debian HOT 5
- Strange video mode switching in Wing Commander III HOT 2
- Command line history saving can't be disabled HOT 2
- Dunkle Schatten 2 freezes dosbox HOT 10
- Dosbox closed during emulator initialization. HOT 7
- Implement `MODE` Command HOT 3
- MAD TV 2 freezes dosbox HOT 4
- 200 USD bounty for DOSBox Staging Debian package HOT 3
- Add Ghostbusters II to "Game Issues" wiki HOT 2
- Reboot Handler causes a crash
- Blackthorne freezes on startup if Sound Blaster / Sound Blaster Pro is selected for digitized sounds HOT 4
- SIGSEV if the code is compiled with PIE HOT 21
- Dosbox-Staging Linux - Error CDROM: GetTrack at sector 36902 is outside the playable range HOT 8
- On CRT VGA display, Psycho Pinball freezes on high res mode with aspect ratio set to off HOT 7
- Keyboard input delay/locking/queuing in Gods (Bitmap Brothers) HOT 23
- Incremental builds failing
- DOS programs crash from inside Windows 3.1 (Regression from SFT commit) HOT 3
- Flight Simulator 5 Flight Shop Addon fails to install (regression from v0.80.1) HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dosbox-staging.