Commit Graph
131 Commits
Author SHA1 Message Date
Mikaël Capelle 626a7bc670 Update python bindings for tree to be consistent with others. 2020-05-02 13:22:34 +02:00
Mikaël Capelle c9115e7ad0 Add python interface for IPluginInstallerSimple. 2020-05-02 00:30:17 +02:00
Mikaël Capelle 6cececc7a0 Fix issue with default QDateTime() throwing error. 2020-05-01 21:32:30 +02:00
Mikaël Capelle d82640455f Update wrappers and expose the new file tree interface. 2020-05-01 21:32:08 +02:00
Mikaël Capelle f25602cc69 Update the wrapper and the python interface after change to IModInterface. 2020-05-01 21:30:31 +02:00
AnyOldName3 c5d4857f47 Make functor converter variadic
Duplicating code three times is silly.
2020-04-16 00:56:57 +01:00
AnyOldName3 5825661a4f Only initialise Python once
When switching instances, the Python runner gets another initPython call, despite the previous interpreter existing. Most of the function was either a no-op or was redundant, and the GIL state got confusing. This is the simplest fix.

If things catch fire that I haven't anticipated, instead of returning true, we can destroy the pre-existing interpreter and create a new one by running the rest of the function.
2020-04-16 00:53:29 +01:00
AnyOldName3 2e13cf0dab Ensure we relinquish the GIL after initialising Python and have it when destroying callables 2020-04-15 17:01:28 +01:00
Silarn b0ef81214a Fix cmakelists and use zip 2019-10-29 01:35:15 -05:00
AnyOldName3 63a6c504b0 Restore logging of historically-logged Python exceptions. 2019-07-22 00:08:35 +01:00
AnyOldName3 19dcdd95c0 Prevent PyQt from using its buggy exception logging by making it look like we're using custom exception handling. 2019-07-15 20:04:44 +01:00
AnyOldName3 ac5540ba87 Forward Python stdout and stderr to qDebug and qCritical 2019-07-15 20:02:18 +01:00
Silarn 2b6f453fbc Add better error handling when loading the SIP API 2019-07-01 22:19:14 -05:00
AnyOldName3 e280b07cb6 Correctly use SIP to transfer ownership of objects from Python to C++ 2019-06-01 00:59:39 +01:00
LostDragonist 3eb85cd17f Update for startApplication 2019-03-24 21:28:13 -05:00
LostDragonist 65eb0c6374 Add function to get configured mods directory 2019-02-23 07:11:19 -06:00
LostDragonist 97a20d522a Add setGameName to the mod interface 2019-02-22 22:16:17 -06:00
LostDragonist 956d481ca4 Make logs more consistent in format and content 2019-01-30 20:53:48 -06:00
LostDragonist c9d77cf948 Change qPrintable to qUtf8Printable to better support non-ASCII text 2019-01-05 16:34:11 -06:00
LostDragonist b939f7e88e Add enumerations for plugin states and mod states 2018-12-21 02:30:58 -06:00
LostDragonist a1bc87e75a Fix the crash in a better, non-leaky way 2018-12-17 17:56:24 -06:00
LostDragonist 4160dea823 Convert a crash when converting strings to QStrings to possibly a memory leak 2018-12-16 18:27:45 -06:00
LostDragonist f6d41a1a81 Update for archive invalidation changes 2018-12-05 06:34:30 -06:00
Al 69ff972b12 Merge pull request #20 from AnyOldName3/settable-plugin-settings
Fix typo preventing IOrganizer::setPluginSetting from being used in P…
2018-09-25 20:28:15 +02:00
Al ada342e818 Merge pull request #19 from AnyOldName3/qvariant-from-unicode
Add missing PyUnicode_Check which prevented QVariants being created f…
2018-09-25 20:27:58 +02:00