Opened 2 years ago

Closed 2 years ago

#13343 closed defect (invalid)

GUI: Debugger md5 works only for files in the same directory as of the ScummVM executable

Reported by: r41k0u Owned by: criezy
Priority: normal Component: GUI
Version: Keywords: MD5
Cc: r41k0u Game:

Description

The md5 command of debugger only works on files which are in the same directory as of the ScummVM executable. When trying to enter a full path like ./LICENSES/COPYING.LUA, it shows "File not found".

Can be fixed by using FSNode instead of Path to create the stream.

Change History (3)

comment:1 by r41k0u, 2 years ago

Summary: Debugger md5 works only for files in the same directory as of the ScummVM executableGUI: Debugger md5 works only for files in the same directory as of the ScummVM executable

comment:3 by criezy, 2 years ago

Owner: set to criezy
Resolution: invalid
Status: newclosed

As explained in the pull request this bug is invalid. The current code uses SearchMan to look for the file. So indeed it does not handle paths, but it does look for the file in various places, such as the game path and the extra path.

I think the main use case for the command is to check the md5 of a game file and verify that it is not corrupted, for example when encountering bugs while playing a game. And it should already work properly (and would break if using FSNode directly instead).

Note: See TracTickets for help on using tickets.