Opened 7 weeks ago

Last modified 4 weeks ago

#15302 closed defect

AGS: Running unknown games fails with path error — at Version 2

Reported by: tag2015 Owned by:
Priority: normal Component: Engine: AGS
Version: Keywords:
Cc: Game:

Description (last modified by tag2015)

After the merge of PR 5829, it is no longer possible to start unknown games that have been added using the fallback detection.

Steps to reproduce:

  1. Find a game that is not in the detection tables, such as this testgame
  2. Add the game using the launcher, choose "add anyway"
  3. Try to run the game. It'll fail while attempting to load the resources reporting a garbage gamepath.

It should be noted, that the issue only happens for completely unknown games, variants (i.e. games that are in the detection tables, but with different checksum/size) can be run normally.

Change History (2)

comment:1 by tag2015, 7 weeks ago

After some quick debugging, it seems that the problem occurs when identifyGame calls fallbackDetect.
The fallbackDetectedGame struct should be initialized after fallbackDetect returns, but instead the filesDescriptions array contains garbage.

comment:2 by tag2015, 7 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.