Skip to content

Map cache is not written on non-Windows builds #3101

Description

@bobtista

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour

Bug Description

On non-Windows builds a map added to the user maps directory is parsed again on every launch and never reaches the cache.

Reproduction Steps

  1. Add a custom map to the user maps directory on a non-Windows build.
  2. Start the game, let the map cache pick it up, then quit.
  3. Observe MapCache.ini is unchanged and a file named Maps\MapCache.ini was created alongside it.
  4. Start again and observe the same map is parsed from scratch a second time.

Additional Context

The cache path is assembled with a hardcoded Windows separator before the file name is appended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions