Skip to content

Commit

Permalink
Fixed bug in filesystem with file path searching
Browse files Browse the repository at this point in the history
Bug was introduced with b83da98

This commit fixes possible issues with file path search and, in
particular, crash in Clear Sky with log:
ERROR: There are no sound collection with path:
characters_voice\scenario\agroprom\agr_base_commander_reward_pda

This is another 3 year old bug!!!
Those "refactoring" commits made by me in 2017-2018 should be totally
reviewed!
  • Loading branch information
Xottab-DUTY committed Jun 10, 2020
1 parent 5a0dea1 commit 384a5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/LocatorAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void CLocatorAPI::LoadArchive(archive& A, pcstr entrypoint)
// R_ASSERT3 (root, "path not found ", read_path.c_str());
xr_strcpy(fs_entry_point, sizeof fs_entry_point, root->m_Path);
}
xr_strcat(fs_entry_point, "gamedata//");
xr_strcat(fs_entry_point, "gamedata" DELIMITER);
}
else
{
Expand Down

0 comments on commit 384a5d5

Please sign in to comment.