mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
CLI: add factory reset option to retrodeck.sh without warning
This commit is contained in:
parent
b9bffc189a
commit
4682d77502
|
@ -71,6 +71,7 @@
|
||||||
<li>New CLI argument `--set` to set presets, call retrodeck with `--set help` for more information</li>
|
<li>New CLI argument `--set` to set presets, call retrodeck with `--set help` for more information</li>
|
||||||
<li>New CLI argument `--open` to open a component or emulator. Call retrodeck with `--open --list` for a list of available components or emulator to open</li>
|
<li>New CLI argument `--open` to open a component or emulator. Call retrodeck with `--open --list` for a list of available components or emulator to open</li>
|
||||||
<li>New CLI argument `--reset` that replaces the previous ones</li>
|
<li>New CLI argument `--reset` that replaces the previous ones</li>
|
||||||
|
<li>New CLI argument `--factory-reset` that resets RetroDECK completely and brings the user to the first setup</li>
|
||||||
<li>CHEATS: added basic cheats support for RetroArch, PCSX2, PPSSPP and MAME</li>
|
<li>CHEATS: added basic cheats support for RetroArch, PCSX2, PPSSPP and MAME</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Bug fixes:</p>
|
<p>Bug fixes:</p>
|
||||||
|
|
|
@ -16,6 +16,7 @@ Arguments:
|
||||||
--compress-one <file> \t Compresses target file to a compatible format
|
--compress-one <file> \t Compresses target file to a compatible format
|
||||||
--compress-all <format> \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\"
|
--compress-all <format> \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\"
|
||||||
--reset <component> \t Reset RetroDECK or one or more component/emulator configurations to default values. WARNING: no confirmation prompt
|
--reset <component> \t Reset RetroDECK or one or more component/emulator configurations to default values. WARNING: no confirmation prompt
|
||||||
|
--factory-reset \t Factory Reset, triggers the initial setup WARNING: no confirmation prompt
|
||||||
--test-upgrade <version> \t Test upgrading RetroDECK to a specific version, developer use only
|
--test-upgrade <version> \t Test upgrading RetroDECK to a specific version, developer use only
|
||||||
--set <preset> <system/all> [value] \t Configure or toggle a preset. Examples: --set borders, --set borders all true,\n\t\t\t\t\t\t --set borders gba false. Use --set help for more information
|
--set <preset> <system/all> [value] \t Configure or toggle a preset. Examples: --set borders, --set borders all true,\n\t\t\t\t\t\t --set borders gba false. Use --set help for more information
|
||||||
--open <component/emulator> \t Open a specific component or emulator\n\t\t\t\t\t\t --open --list for a list of available components
|
--open <component/emulator> \t Open a specific component or emulator\n\t\t\t\t\t\t --open --list for a list of available components
|
||||||
|
@ -92,7 +93,10 @@ for i in "$@"; do
|
||||||
log d "Resetting component: $component"
|
log d "Resetting component: $component"
|
||||||
prepare_component "reset" "$component"
|
prepare_component "reset" "$component"
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
--factory-reset*)
|
||||||
|
prepare_component --factory-reset
|
||||||
|
;;
|
||||||
--test-upgrade*)
|
--test-upgrade*)
|
||||||
if [[ "$2" =~ ^.+ ]]; then
|
if [[ "$2" =~ ^.+ ]]; then
|
||||||
echo "You are about to test upgrading RetroDECK from version $2 to $hard_version"
|
echo "You are about to test upgrading RetroDECK from version $2 to $hard_version"
|
||||||
|
|
Loading…
Reference in a new issue