From 506baf2cd3934d0a482848d6dcb124db2ff51a5f Mon Sep 17 00:00:00 2001 From: janis Date: Fri, 9 Jun 2023 09:44:32 +0200 Subject: [PATCH] fix ffc cli option --- bin/engines/{fsr => ffc}/config.json | 4 ++-- bin/engines/{fsr/fsr.py => ffc/ffc.py} | 0 smuL-cli.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) rename bin/engines/{fsr => ffc}/config.json (90%) rename bin/engines/{fsr/fsr.py => ffc/ffc.py} (100%) diff --git a/bin/engines/fsr/config.json b/bin/engines/ffc/config.json similarity index 90% rename from bin/engines/fsr/config.json rename to bin/engines/ffc/config.json index c4d41ee..f204967 100644 --- a/bin/engines/fsr/config.json +++ b/bin/engines/ffc/config.json @@ -1,5 +1,5 @@ { - "abbr":"FSR", + "abbr":"ffc", "displayName":"FidelityFX_CLI", "lastUsedFilePath":"sc", "fileNameBeginning":"ig", @@ -13,5 +13,5 @@ "engineLink": "", "supports": [ "upscaling", "sharpening" ], "engineDownloadLink":"", - "filesToInclude": [ "fsr.py" ] + "filesToInclude": [ "ffc.py" ] } \ No newline at end of file diff --git a/bin/engines/fsr/fsr.py b/bin/engines/ffc/ffc.py similarity index 100% rename from bin/engines/fsr/fsr.py rename to bin/engines/ffc/ffc.py diff --git a/smuL-cli.py b/smuL-cli.py index f250d3b..5686a2e 100644 --- a/smuL-cli.py +++ b/smuL-cli.py @@ -54,7 +54,9 @@ def performChecks ( args, ap ): try: engineInfo[ args.engine.lower() ] except KeyError: - print( '\n==> ERROR: Engine not available. Ensure you have specified a valid engine' ) + print( '\n==> ERROR: Engine not available. Ensure you have specified a valid engine. Possible engines: ' ) + for entry in engineList: + print( ' --> ' + entry ) return False # Check scalefactor argument and also verify that engine supports upscaling @@ -103,7 +105,7 @@ def performChecks ( args, ap ): else: print( '\n\n==> Available engines <==\n' ) for entry in engineList: - print( '--> ' + entry ) + print( ' --> ' + entry ) print( '\n\n' ) else: print( '\n\n ==> INFOS about ' + engineInfo[ args.details.lower() ][ 'displayName' ] + '\n' )