Fix several issues with file setup #2

Merged
xavi merged 2 commits from issue-1 into main 2025-01-03 00:18:33 +01:00
Owner

On fresh installations, Speed Dreams must copy a the files listed by GfDataDir()/user-files to the GfLocalDir. filesetup.cpp was recently refactored to allow this, but there were some issues with its implementation.

On fresh installations, Speed Dreams must copy a the files listed by `GfDataDir()/user-files` to the `GfLocalDir`. `filesetup.cpp` was recently refactored to allow this, but there were some issues with its implementation. - Requires https://forge.a-lec.org/speed-dreams/speed-dreams-data/pulls/1
xavi added 2 commits 2025-01-01 21:59:58 +01:00
Now that the game ships without any driver by default, it is very likely
that simplix.xml does not exist on fresh installations. In fact, the
game already did not consider this as an error, so this was a leftover.
When GfFileSetup is called on a fresh installation, none of the
destination directories might exist.

On the other hand, robustness has been slightly improved by adding calls
to good() and is_open().
Author
Owner

According to @leillo1975, this PR still does not fix #1, so it might be unrelated to it.

However, the fixes introduced by this PR are still required for the game work on a fresh installation, so it will be merged anyway.

According to @leillo1975, this PR still does not fix https://forge.a-lec.org/speed-dreams/speed-dreams-code/issues/1, so it might be unrelated to it. However, the fixes introduced by this PR are still required for the game work on a fresh installation, so it will be merged anyway.
xavi merged commit 316a1bc18b into main 2025-01-03 00:18:33 +01:00
xavi deleted branch issue-1 2025-01-03 00:18:33 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: speed-dreams/speed-dreams-code#2
No description provided.