diff --git a/docs/reference.rst b/docs/reference.rst index 8a551e3..ed85e05 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -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`. diff --git a/src/main.cpp b/src/main.cpp index 9d98698..0afce35 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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") = ""); } }