[ scummvm-Bugs-2988017 ] exit status with --list-saves always 0

SourceForge.net noreply at sourceforge.net
Fri Apr 16 01:50:31 CEST 2010


Bugs item #2988017, was opened at 2010-04-15 18:50
Message generated for change (Tracker Item Submitted) made by drantin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2988017&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unknown Crash/Other
Group: Unknown
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Johannes Manhave (drantin)
Assigned to: Nobody/Anonymous (nobody)
Summary: exit status with --list-saves always 0

Initial Comment:
When querying scummvm for a list of game saves from the command line, the exit status is set to 0, even if the gameid does not exist, or is associated with an engine that does not support game save querying, or when the gameid just has no saves. (In the latter case an empty list is returned)

~ $ scummvm --list-saves=t7g
Saves for target 't7g':
  Slot Description                                           
  ---- ------------------------------------------------------
  1    this.is.a.sav
  2    stupid.crypt
~ $ echo $?
0
~ $ scummvm --list-saves=tentacle
Saves for target 'tentacle':
  Slot Description                                           
  ---- ------------------------------------------------------
~ $ echo $?
0
~ $ scummvm --list-saves=nosuchgameid
Could not find any plugin to handle gameid 'nosuchgameid' (target 'nosuchgameid')!
~ $ echo $?
0
~ $ scummvm --list-saves=rtz
Saves for target 'rtz':
  Slot Description                                           
  ---- ------------------------------------------------------
~ $ echo $?
0


imho, each of these instances (that do not result in the listing of saved games) should return a non-zero exit status, and the instance of an engine that doesn't support querying should also return some sort of error, rather than an empty list.

(I have no saved games for 'tentacle')

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2988017&group_id=37116




More information about the Scummvm-tracker mailing list