Remove default value for create_game_handle's game_path argument

The LOOT API incorrectly allows it, it causes a runtime exception.
This commit is contained in:
Oliver Hamlet
2017-12-30 15:29:03 +00:00
parent a8e2b11280
commit 0c9d014174
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ Functions
that the system default locale will be initialised. Wraps
:cpp:func:`loot::InitialiseLocale`.
.. py:function:: loot_api.create_game_handle(game : loot_api.GameType, [game_path : unicode = u'', [game_local_path : unicode = u'']]) -> loot_api.GameInterface
.. py:function:: loot_api.create_game_handle(game : loot_api.GameType, game_path : unicode, [game_local_path : unicode = u'']) -> loot_api.GameInterface
Initialise a new game handle. Wraps :cpp:func:`loot::CreateGameHandle`.
+3 -3
View File
@@ -137,9 +137,9 @@ void bindFunctions(pybind11::module& module) {
module.def("initialise_locale", &InitialiseLocale, arg("id") = "");
module.def("create_game_handle", &CreateGameHandle,
arg("game"),
arg("game_path") = "",
module.def("create_game_handle", &CreateGameHandle,
arg("game"),
arg("game_path"),
arg("game_local_path") = "");
}
}