![]() |
![]() |
#1 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Pass (host) UAE command line argument to AmigaDOS
Not a fully baked idea, and perhaps it's already possibly and I just don't know about it, but I think it would be convenient to be able easily "inject" some state from the command line into a system friendly environment.
Concretely it'd be nice if I could run say winuae -config=whdload.uae -cmd="whdload sys:foo/bar.slave CUSTOM1=42" -Gand it would run the command after startup-sequence.Just being able to set an environment variable that could be picked up by s:user-startup would also be sufficient for this I think. (Both use cases are inspired by https://eab.abime.net/showthread.php?t=117593). Would also be useful if it something like that could work with winuae64 -cfgparam=quickstart=A1200,0 -0 "%~dp0some.adf" -G, i.e. you could add command line parameters and/or environment variables on the fly to "one off" launches. Basically I have two different work flows that I'd ideally like to cover: - HD based ("whdload development") with a single HD (folder) that covers many different things where I want to launch different stuff from host - FD based ("trackloaded") - standalone stuff where I'm testing just one thing and just want a way of giving the tested program (launched as a "virtual floppy") a simple argument |
![]() |
![]() |
#2 |
Registered User
Join Date: Jul 2009
Location: Lala Land
Posts: 608
|
This is how I would try to do it if I had the need:
A similar thread with external control requirements was here and Hannibal went with using the IPCTester.cpp code in the WinUAE repository. Searching for EVT in the WinUAE repo will find you the definition file with the events. Otherwise DBG for debugger commands. Last edited by copse; 29 May 2024 at 08:10. |
![]() |
![]() |
#3 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,526
|
|
![]() |
![]() |
#4 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
That's a launcher for various games tough, right? I'm looking for something I can use while developing. (Clarification below).
Quote:
![]() To spell out the whdload use case, I have an emulated root directory with subdirectories containing whdload slaves in development. For each of those I have a SYS:Slave1/Source/Makefile that builds that slave and can launch WinUAE with the correct virtual emulated HD. In s:user-startup I have "cd SYS:slave1 : whdload slave1 <options>". This works fine, but when I switch to slave 2, I have to edit s:user-startup to launch slave2 instead (maybe changing options etc.). Thus some kind of command line argument to inject state would allow me to avoid the user-startup editing part every time I switch between them. Of course, there are other ways around it, like overwriting a common script with the makefile or something like that, so it's not like I'm out of options. If it's something only I would have a use for it's obviously a bad idea for a feature. |
|
![]() |
![]() |
#5 |
Registered User
Join Date: Nov 2014
Location: Italy
Posts: 2,526
|
|
![]() |
![]() |
#6 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,330
|
you can low-tech cheese something similar, just add a windows directory as an amiga drive, TEST: or something, and just have your startup-sequence do a RUN >NIL: Execute TEST:Script after LOADWB, maybe wrap it in an if exists statement, if such a script exists ittl get executed then gets deleted after execution, if not business as usual.
Just means you could make a quick dirty script outside of winuae before launch, yeah that wouldnt be "native" but that plus other things can work and do something similar. |
![]() |
![]() |
#7 | ||
Global Moderator
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,557
|
Quote:
Quote:
|
||
![]() |
![]() |
#8 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Yeah, one off scripts seem like the way to go. Second "workflow" is probably too niche anyway.
|
![]() |
![]() |
#9 |
Global Moderator
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,557
|
Toni might be able to answer if 'uae-configuration' could be 'abused' for this.
|
![]() |
![]() |
#10 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
|
![]() |
![]() |
#11 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 50
Posts: 217
|
winuae64 -cfgparam=quickstart=A1200,0 -0 "%~dp0some.adf" -G
-cfgparam doesn't work together with quickstart, you have to take -s winuae64 -s quickstart=A1200,0 -0 "%~dp0some.adf" -G https://eab.abime.net/showthread.php?t=115702 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble with FS-UAE via command line | Asterra | support.FS-UAE | 7 | 29 June 2017 08:05 |
UAE for 68k command line | Leandro Jardim | support.OtherUAE | 1 | 29 June 2015 01:28 |
[AmigaDOS] How to pipe output to argument? | mrrhq | New to Emulation or Amiga scene | 5 | 11 May 2015 11:34 |
WHDload and FS-UAE command line | browniesrgut | support.FS-UAE | 4 | 12 April 2013 14:21 |
AmigaDOS: call several commands in a single command line | pintcat | Coders. Scripting | 6 | 09 February 2013 16:51 |
|
|