Skip to content

Commit

Permalink
[WIP] Set libloadorder additional data paths on init
Browse files Browse the repository at this point in the history
This is only necessary because libloadorder doesn't currently have Starfield's My Games path supported by default
  • Loading branch information
Ortham committed Sep 4, 2023
1 parent 6c74d0c commit 16863a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ Game::Game(const GameType gameType,
conditionEvaluator_(
std::make_shared<ConditionEvaluator>(GetType(), DataPath())),
database_(ApiDatabase(conditionEvaluator_)),
additionalDataPaths_(::GetAdditionalDataPaths(GetType(), DataPath())) {
additionalDataPaths_(
::GetAdditionalDataPaths(GetType(), DataPath(), localDataPath)) {
conditionEvaluator_->SetAdditionalDataPaths(additionalDataPaths_);
loadOrderHandler_.SetAdditionalDataPaths(additionalDataPaths_);
loadOrderHandler_.LoadCurrentState();
}

GameType Game::GetType() const { return type_; }
Expand Down

0 comments on commit 16863a8

Please sign in to comment.