Don't accept empty game path in CreateGameHandle()

Add a new logging statement partially to have an easily testable
message and partly because knowing the unresolved paths could be
useful.
This commit is contained in:
Oliver Hamlet
2017-12-30 15:22:58 +00:00
parent afa85ff1b8
commit 89599664ab
4 changed files with 15 additions and 10 deletions
+3 -5
View File
@@ -111,10 +111,8 @@ LOOT_API void InitialiseLocale(const std::string& id = "");
* @param game
* A game code for which to create the handle.
* @param game_path
* The relative or absolute path to the game folder, or an empty string.
* If an empty string, the API will attempt to detect the data path of
* the specified game by searching for the game's main master file in a
* sibling Data folder and by searching for the game's Registry entry.
* The relative or absolute path to the directory containing the
* game's executable.
* @param game_local_path
* The relative or absolute path to the game's folder in
* `%%LOCALAPPDATA%` or an empty string. If an empty string, the API
@@ -125,7 +123,7 @@ LOOT_API void InitialiseLocale(const std::string& id = "");
*/
LOOT_API std::shared_ptr<GameInterface> CreateGameHandle(
const GameType game,
const std::string& game_path = "",
const std::string& game_path,
const std::string& game_local_path = "");
}