4 Commits
Author SHA1 Message Date
wbcbz7 4bf5631472 SB: finalize IRQ/DMA/options settings 2026-03-22 00:56:38 +07:00
Ian Scott bf6c52c607 More pgusinit refactor 2025-08-09 08:34:09 -06:00
Ian Scott c54450481f Refactor parseCommand and various commands
This means not having to pass the index into argv[] around, etc.
2025-08-08 22:08:41 -06:00
Daniel Arnold e2fa0f75b7 Iterative command parser
Refactored the inline argument commands into functions that iterate through a command table. This should help make input commands more robust and easier to expand.

It also allows for default values when setting options. For example if the user wants a default value for the OPL port, they can use "/oplport default".

Since /sbport and /gusport always check the environment for SET BLASTER and SET ULTRASND, I added the function for pgusinit to retrieve these values from the environment directly. This could open up environment parsing for other variables in the autoexec.bat.

The commands should behave exactly as I did when they were inline to start, but can now easily be expanding.
2025-07-03 19:53:03 -06:00