Search found 4 matches

by sharkbyte16
Fri 28 Jun, 2024 5:17 pm
Forum: Development
Topic: How to add a command line parameter to edit a configuration?
Replies: 5
Views: 1754

Re: How to add a command line parameter to edit a configuration?

By use of ChatGPT I have come some way by adding the --settings argument parsing in initpc(). To be able to call the C++ config_open() function in the pc.c file, I added a wrapper C++ function. In that wrapper function I tried to initialize all the wxWidgets stuff needed to open the configuration wi...
by sharkbyte16
Sun 23 Jun, 2024 11:23 am
Forum: Development
Topic: How to add a command line parameter to edit a configuration?
Replies: 5
Views: 1754

Re: How to add a command line parameter to edit a configuration?

My idea was to add a switch variable to bypass the configuration selection window and open the configuration dialog instead, similar to how the command line argument --config sets the config_override variable which also leads to bypass the configuration selection window and directly run the specifie...
by sharkbyte16
Mon 17 Jun, 2024 5:02 pm
Forum: Development
Topic: How to add a command line parameter to edit a configuration?
Replies: 5
Views: 1754

Re: How to add a command line parameter to edit a configuration?

Thank you, Arjen! I'll try it from there.
by sharkbyte16
Sun 16 Jun, 2024 3:02 pm
Forum: Development
Topic: How to add a command line parameter to edit a configuration?
Replies: 5
Views: 1754

How to add a command line parameter to edit a configuration?

Hi all, Currently PCem allows directly launching a configuration from the command line with the --config option without showing the main window. What I think I understand from the source code it sets the default configuration to the --config specified one and than launches the configuration. While r...