Fixed API compilation.

This commit is contained in:
WrinklyNinja
2014-07-14 10:42:20 +01:00
parent db60a03e9e
commit f270f07c86
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -158,6 +158,21 @@ unsigned int c_error(const unsigned int code, const std::string& what) {
return c_error(loot::error(code, what.c_str()));
}
////////////////////////////////////
// Dummy Masterlist member functions
////////////////////////////////////
// The API doesn't depend on libgit2, by not compiling ".git.cpp", so the member functions are defined
// below as dummies.
namespace loot {
void Masterlist::GetGitInfo(boost::filesystem::path& path) {}
void Masterlist::Update(Game& game, const unsigned int language) {
this->MetadataList::Load(game.MasterlistPath());
}
}
//////////////////////////////
// Error Handling Functions