mirror of
https://github.com/loot/libloot-python.git
synced 2026-07-27 14:14:13 -07:00
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:
+1
-1
@@ -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
@@ -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") = "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user