Don't store game's local data path

It's only passed to libloadorder.
This commit is contained in:
Oliver Hamlet
2017-12-30 14:54:10 +00:00
parent 8703425943
commit afa85ff1b8
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -61,7 +61,6 @@ Game::Game(const GameType gameType,
const boost::filesystem::path& localDataPath) :
type_(gameType),
gamePath_(gamePath),
localDataPath_(localDataPath),
cache_(std::make_shared<GameCache>()),
loadOrderHandler_(std::make_shared<LoadOrderHandler>()) {
auto logger = getLogger();
@@ -71,7 +70,7 @@ Game::Game(const GameType gameType,
gamePath_.string());
}
loadOrderHandler_->Init(type_, gamePath_, localDataPath_);
loadOrderHandler_->Init(type_, gamePath_, localDataPath);
database_ = std::make_shared<ApiDatabase>(
Type(), DataPath(), GetCache(), GetLoadOrderHandler());
-1
View File
@@ -83,7 +83,6 @@ private:
const GameType type_;
const boost::filesystem::path gamePath_;
const boost::filesystem::path localDataPath_;
std::string masterFile_;
};