Difference between revisions of "RocketLauncher Command Line Parameters"
Jump to navigation
Jump to search
(→Legacy) |
(Replaced HL references with RL) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | RocketLauncher v1.0 supports these command line parameters which allows you to pass much more info to it for greater control over what RocketLauncher can do. | |
==Legacy== | ==Legacy== | ||
Line 5: | Line 5: | ||
;The legacy CLI works like this: | ;The legacy CLI works like this: | ||
− | :'' | + | :''RocketLauncher.exe "<SYSTEM_NAME>" "<ROM_NAME>"'' |
− | :Example: '' | + | :Example: ''RocketLauncher.exe "Nintendo Entertainment System" "Adventure Island (USA)"'' |
− | ;This legacy method will only work if Hyperspin is installed in one of these 2 folders, relative to where | + | ;This legacy method will only work if Hyperspin is installed in one of these 2 folders, relative to where RocketLauncher is installed: |
− | :*..\HyperSpin.exe (1 folder up, like this C:\Hyperspin\ | + | :*..\HyperSpin.exe (1 folder up, like this C:\Hyperspin\RocketLauncher) |
− | :*..\HyperSpin\HyperSpin.exe (1 folder up, then HyperSpin in its own folder, like C:\HyperSpin and C:\ | + | :*..\HyperSpin\HyperSpin.exe (1 folder up, then HyperSpin in its own folder, like C:\HyperSpin and C:\RocketLauncher) |
;All other structures of paths are not supported and will not work w/o having Hyperspin send the -f CLI argument | ;All other structures of paths are not supported and will not work w/o having Hyperspin send the -f CLI argument | ||
*Note that when spaces are used, the parameter must be wrapped in quotes. | *Note that when spaces are used, the parameter must be wrapped in quotes. | ||
Line 15: | Line 15: | ||
==Current== | ==Current== | ||
For all other Front Ends or scenarios, the new CLI parameters are as follows: | For all other Front Ends or scenarios, the new CLI parameters are as follows: | ||
+ | *Note that when spaces are used, the parameter must be wrapped in quotes. | ||
====-s "<SYSTEM_NAME>"==== | ====-s "<SYSTEM_NAME>"==== | ||
Line 28: | Line 29: | ||
====-m <HL_MODE>==== | ====-m <HL_MODE>==== | ||
− | :This tells | + | :This tells RocketLauncher you want to launch one of its features directly and not the game itself. You do not need to wrap this in quotes. |
:Supported Modes: | :Supported Modes: | ||
− | :* | + | :*pause = Boot directly into Pause |
:*mg = Boot directly into MultiGame | :*mg = Boot directly into MultiGame | ||
:*fade = Boot directly into Fade (Non-7z) | :*fade = Boot directly into Fade (Non-7z) | ||
Line 37: | Line 38: | ||
====-f "<FRONT_END_PATH>"==== | ====-f "<FRONT_END_PATH>"==== | ||
− | :This tells | + | :This tells RocketLauncher what Front End called it. This is critical for RocketLauncher to know what to restore on exit. The full path and executable must be supplied. Setting this will overwrite the General Settings -> RocketLauncher -> Default Frontend Path setting in RocketLauncherUI. If you use multiple frontends with RocketLauncher, make sure each of them send this parameter. If you only use one, you can just use the default frontend setting and don't need to send -f. |
:Example: ''-f "C:\RetroFE\RetroFE.exe"''<br> | :Example: ''-f "C:\RetroFE\RetroFE.exe"''<br> | ||
====-p "<PLUGIN_NAME>"==== | ====-p "<PLUGIN_NAME>"==== | ||
− | :This tells | + | :This tells RocketLauncher what Plugin to use for the Front End that called it. Without a proper plugin, RocketLauncher cannot read the Front End's database or know where to find Front End Media. |
− | :Value refers to the file name found in | + | :Value refers to the file name found in RocketLauncher\Plugins. If your plugin is named RetroFE.plugin, then use RetroFE. |
:Example: ''-p "RetroFE"''<br> | :Example: ''-p "RetroFE"''<br> | ||
====-e "<FORCE_EMU_NAME>"==== | ====-e "<FORCE_EMU_NAME>"==== | ||
− | :Allows you to force the use of the specified emulator above anything you may have set in | + | :Allows you to force the use of the specified emulator above anything you may have set in RocketLauncherUI. |
:You must also force a module with the -d parameter. | :You must also force a module with the -d parameter. | ||
:You must also force a full path to the rom you want to launch with the -r parameter. | :You must also force a full path to the rom you want to launch with the -r parameter. | ||
− | :Emulator name can be a defined emulator in | + | :Emulator name can be a defined emulator in RocketLauncherUI, or one not defined but a full path to the exe must be supplied as well. |
:Example: ''-e "C:\Emulators\Nestopia\Nestopia.exe"''<br> | :Example: ''-e "C:\Emulators\Nestopia\Nestopia.exe"''<br> | ||
====-d "<FORCE_MODULE_NAME>"==== | ====-d "<FORCE_MODULE_NAME>"==== | ||
− | :Allows you to force the use of the specified module above anything you may have set in | + | :Allows you to force the use of the specified module above anything you may have set in RocketLauncherUI. |
:You must also force an emulator with the -e parameter. | :You must also force an emulator with the -e parameter. | ||
− | :Module name can be a defined module in | + | :Module name can be a defined module in RocketLauncherUI, or one not defined but a full path to the module must be supplied as well. |
:If you do not supply an extension, ".ahk" will be added on for you automatically. | :If you do not supply an extension, ".ahk" will be added on for you automatically. | ||
− | :Example: ''-d "D:\ | + | :Example: ''-d "D:\RocketLauncher\Modules\Nestopia\Nestopia.ahk"''<br> |
+ | |||
+ | ====-o==== | ||
+ | :Forces mouse to be restored on exit even if Hide_Cursor is set to an option that keeps it hidden. | ||
+ | :This is useful If you use multiple front ends with RocketLauncher, and some of you may want the mouse hidden, while others may need the mouse visible. | ||
+ | :Example: ''-o 1''<br> | ||
==Verifying CLI Was Sent Correctly== | ==Verifying CLI Was Sent Correctly== | ||
− | You can validate your Front End is sending the correct parameters by opening the | + | You can validate your Front End is sending the correct parameters by opening the RocketLauncher.log in RocketLauncherUI and looking for this line (quotes are automatically removed): |
Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin" | Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin" |
Latest revision as of 15:53, 11 October 2020
RocketLauncher v1.0 supports these command line parameters which allows you to pass much more info to it for greater control over what RocketLauncher can do.
Contents
Legacy
The legacy CLI still works, but is only suggested for Hyperspin users who place their Hyperspin folder in C:\Hyperspin or similar, like D:\Hyperspin.
- The legacy CLI works like this
- RocketLauncher.exe "<SYSTEM_NAME>" "<ROM_NAME>"
- Example: RocketLauncher.exe "Nintendo Entertainment System" "Adventure Island (USA)"
- This legacy method will only work if Hyperspin is installed in one of these 2 folders, relative to where RocketLauncher is installed
-
- ..\HyperSpin.exe (1 folder up, like this C:\Hyperspin\RocketLauncher)
- ..\HyperSpin\HyperSpin.exe (1 folder up, then HyperSpin in its own folder, like C:\HyperSpin and C:\RocketLauncher)
- All other structures of paths are not supported and will not work w/o having Hyperspin send the -f CLI argument
- Note that when spaces are used, the parameter must be wrapped in quotes.
Current
For all other Front Ends or scenarios, the new CLI parameters are as follows:
- Note that when spaces are used, the parameter must be wrapped in quotes.
-s "<SYSTEM_NAME>"
- This refers to the system you are launching.
- Example: -s "Nintendo Entertainment System"
-r "<ROM_NAME>"
- This refers to the game or application you are launching. Also known as DB_NAME, as in name from your Front End's database.
- If a full path to the rom was supplied by your Front End instead of just the name:
- Some checks will be skipped, slightly speeding up launch time
- 7z support will be turned off automatically
- Example: -r "Adventure Island (USA)"
-m <HL_MODE>
- This tells RocketLauncher you want to launch one of its features directly and not the game itself. You do not need to wrap this in quotes.
- Supported Modes:
- pause = Boot directly into Pause
- mg = Boot directly into MultiGame
- fade = Boot directly into Fade (Non-7z)
- fade7z = Boot directly into Fade (7z)
- Example: -s "Nintendo Entertainment System" -r "Adventure Island (USA)" -m hp
-f "<FRONT_END_PATH>"
- This tells RocketLauncher what Front End called it. This is critical for RocketLauncher to know what to restore on exit. The full path and executable must be supplied. Setting this will overwrite the General Settings -> RocketLauncher -> Default Frontend Path setting in RocketLauncherUI. If you use multiple frontends with RocketLauncher, make sure each of them send this parameter. If you only use one, you can just use the default frontend setting and don't need to send -f.
- Example: -f "C:\RetroFE\RetroFE.exe"
-p "<PLUGIN_NAME>"
- This tells RocketLauncher what Plugin to use for the Front End that called it. Without a proper plugin, RocketLauncher cannot read the Front End's database or know where to find Front End Media.
- Value refers to the file name found in RocketLauncher\Plugins. If your plugin is named RetroFE.plugin, then use RetroFE.
- Example: -p "RetroFE"
-e "<FORCE_EMU_NAME>"
- Allows you to force the use of the specified emulator above anything you may have set in RocketLauncherUI.
- You must also force a module with the -d parameter.
- You must also force a full path to the rom you want to launch with the -r parameter.
- Emulator name can be a defined emulator in RocketLauncherUI, or one not defined but a full path to the exe must be supplied as well.
- Example: -e "C:\Emulators\Nestopia\Nestopia.exe"
-d "<FORCE_MODULE_NAME>"
- Allows you to force the use of the specified module above anything you may have set in RocketLauncherUI.
- You must also force an emulator with the -e parameter.
- Module name can be a defined module in RocketLauncherUI, or one not defined but a full path to the module must be supplied as well.
- If you do not supply an extension, ".ahk" will be added on for you automatically.
- Example: -d "D:\RocketLauncher\Modules\Nestopia\Nestopia.ahk"
-o
- Forces mouse to be restored on exit even if Hide_Cursor is set to an option that keeps it hidden.
- This is useful If you use multiple front ends with RocketLauncher, and some of you may want the mouse hidden, while others may need the mouse visible.
- Example: -o 1
Verifying CLI Was Sent Correctly
You can validate your Front End is sending the correct parameters by opening the RocketLauncher.log in RocketLauncherUI and looking for this line (quotes are automatically removed):
Main - Raw CLI received: "-s Nintendo Entertainment System -r Adventure Island (USA) -f D:\Hyperspin\HyperSpin.exe -p HyperSpin"