Comments (6)
This is something I'd like to work on when I get a chance! I think the ideas included:
- Configuration adjustment - having the ability to save and load a GUI setup + emulator configuration from a file via the command line. (Should we have the ability to change configuration using the GUI as well?)
--load-config [CONFIG]
and--save-config [CONFIG]
, potentially.QSettings
supports loading and saving configuration to an INI file.- One thing to note - would it be possible to override configuration on command line? For instance, if the ROM is typically
file1
, could we override that withfile2
without overriding the configuration? Since we useQSettings
to fetch our settings... we need to save them there as well. (Is there a way of openingQSettings
read-only?) ROM may not be the best example (since we can override at runtime), but there may be other settings to consider.
--rom [ROMFILE]
- obligatory ROM file selection.--send [FILE]
- send files on emulator start. I still need to evaluate whetherQCommandLineParser
can handle duplicate arguments (e.g.--send file1 --send file2
) or not. If not, not a big deal - we could maybe do something like--send file1,file2
or some other path delimiter.- Keypresses: Macro files potentially? If we do allow specifying on the command line, we should be able to distinguish quick presses from holds. If we're really crazy, we can specify the hold down, hold up time as well...
- Another idea would be to have screenshots/screencapturing abilities exposed to CLI as well.
Another interesting thing to consider (outside the scope of this particular issue) - do we want to add any Lua support? Might be kind of interesting to do, though it may add some overhead... What do you guys think?
from cemu.
It would be great to have a "execute this program/app" option.
I would prefer exposing an IPC mechanism over embedding a specific scripting language.
from cemu.
I agree that an IPC mechanism, which is the topic of issue #16 , is higher priority than scriptable emulator operation using Lua, Python, JS or another widely used programming language, possibly using an embeddable implementation (Duktape, XS6, Micro Python, etc.) inside a native code program.
Said scripting front-end, with advanced file send / file recv / keypress / screenshot / other capabilities, should build on top of the IPC. I'll create an issue for scripting on top of the IPC.
from cemu.
While I agree having an IPC would be neat, I disagree that this should become a feature. This is already implemented throughout the GUI, and the userbase for it would be very minimal compared to the effort spent in implementing it. I would like to focus more on the CLI when starting the program, as I feel this would be the most useful feature.
In addition, because of state saving, it is going to be rather difficult to find a way to safely transfer files on start.
from cemu.
So in pull request #75 i added in basic support for some of this stuff. Most notably autotester integration as well as something @adriweb requested else where. Which is forcing a ROM load instead of the saved state.
Loading a ROM via commandline is currently not possible there is no interface to do so. In Cemu's current setup one could be added but it would change the ROM that is loaded after that. (EG. it would get saved as the current ROM). I believe this to be acceptable practice, but in some auto testing situations it might be a nuisance to the end user if it overwrites their typical use ROM.
In addition, because of state saving, it is going to be rather difficult to find a way to safely transfer files on start.
There is now a command line argument to ignore that. Alternatively we could assume sending files implies a reset of the device. Both are acceptable.
from cemu.
A list of command line arguments can be found here: https://github.com/CE-Programming/CEmu/wiki/Command-Line-Arguments
Because this implements many things; I feel that the scripting interface could easily handle future items, especially with lua. This topic is being closed; however a future command line argument to load a lua script is really the only nesassary thing left.
from cemu.
Related Issues (20)
- CEmu Terminal window stays visible in latest W11 HOT 1
- Missing translation in About page HOT 4
- How do I make the screen dock bigger? HOT 1
- Add Ctrl-F to CEmu Console
- TI-Basic debugging enhancements
- CEmu not receiving Apps. HOT 1
- Add tabs for opcode/operand separation
- CEmu seemingly does not transfer 8xv file HOT 1
- Allow CEmu to be pushed to the back of the screen instead of leaving it in the front. HOT 2
- Variables that start with `r` show up as `Ans` in the Variable Viewer HOT 1
- Doesn't work on big-endian architectures HOT 4
- Exporting "Natural" Key binding causes a crash HOT 1
- Name of AUR in ArchLinux
- Dark mode does not work on macOS HOT 8
- Python app isn't working HOT 3
- Cant send Flash Apps to calc HOT 2
- Emulator doesn't start, missing DLL HOT 3
- Sending .8ek files not working on Mac OS HOT 1
- Fullscreen CLI flag doesn't work HOT 3
- Box whisker plot with outliers is not drawn correctly HOT 2
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 cemu.