96facaa7bb
Make Python.Cheat command more usable by not parsing its argument
...
The argument is now always treated as a plain string and passed directly
to the cheat. This is the behavior expected by all the functions in
xCheat.py, which parse the string argument manually where needed.
The previous implementation evaluated the argument value as a Python
expression. This theoretically allowed passing non-string arguments, but
none of the cheats use this (and it's also a potential code execution
issue). If no argument was passed, the function was called with no
arguments, which is also not supported by any of the cheats.
In practice, this required unintuitive syntax for calling the cheats
correctly, for example:
Python.Cheat GetPlayerID None
Python.Cheat GetSDL "'FirstWeekClothing'"
With the new argument handling, these have been simplified to:
Python.Cheat GetPlayerID
Python.Cheat GetSDL FirstWeekClothing
2023-12-15 01:03:25 +01:00
70449244f4
Merge branch 'ticket/53'
2023-10-02 20:13:56 -06:00
82abcb2f07
remove clearReceivers()
2023-10-02 10:34:28 -07:00
870d0534df
Merge branch 'ticket/53'
2023-09-29 10:49:27 -06:00
1f09d6c48a
Try without armature changes
2023-09-28 11:48:33 -07:00
66ce08ed67
Merge branch 'ticket/53'
2023-09-26 10:08:18 -06:00
4924156ad4
Fix 3 problems with plSubWorldMsg.
...
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com >
2023-09-18 09:50:23 -07:00
13ea0a98de
Don't trust the local machine's system time.
...
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com >
2023-09-18 09:41:33 -07:00
7d3774a732
Unload all keys of all pages before deleting them
...
(ported from H-uru/Plasma@04d0ac94ea )
2023-06-29 22:04:17 +02:00
ea7e4b2ab5
Fix previous commits not actually nulling out the key
...
I goofed while porting this from H'uru, where the variable is a
reference. The previous code actually caused the keys to not get deleted
at all.
2023-06-26 00:16:24 +02:00
5d5ba00f7d
Also guard against accessing plRegistryKeyList currently being deleted
...
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com >
(ported from H-uru/Plasma@725eeaa288 )
2023-06-25 16:50:10 +02:00
af38137822
Fix possible use after free in plRegistryPageNode::UnloadKeys
...
Short explanation: the destructor of plRegistryKeyList may indirectly
access other entries of fKeyLists where the plRegistryKeyList has
already been deleted, but not yet removed from the map.
Long explanation:
* Deleting a plRegistryKeyList also deletes all plKeys inside it, which
decrements the reference count of the objects they point to.
* If one of the deleted keys happens to be the last reference to an
object, this also deletes the object itself.
* The object's destructor might in turn delete another plKey, which
calls SetKeyUnused, which tries to look up the key in its page.
* If this second plKey belongs to the page that is currently being
unloaded, then its plRegistryKeyList may be partially or completely
deleted, but still listed in the fKeyLists map. In this case, the key
lookup accesses already freed memory.
(ported from H-uru/Plasma@a529e35fd9 )
2023-06-25 16:44:35 +02:00
07b92234ad
Fix bug for python SDL variable-length arrays
2022-10-03 21:48:57 -05:00
7dfa2ba56a
Merge branch 'master' into working
2022-07-19 08:55:00 -06:00
1a091b7019
Merge branch 'ticket/48'
2022-06-05 15:14:09 -06:00
104a5ef4ee
Merge branch 'ticket/47'
2022-06-05 15:13:55 -06:00
19cfaaaea9
Merge branch 'ticket/45'
2022-06-05 15:13:41 -06:00
dafd190083
Merge branch 'ticket/44'
2022-06-05 15:13:26 -06:00
e7b4f5c6ba
Fix compile error
...
(cherry picked from commit 202e846a56
)
2022-05-11 15:20:16 -06:00
202e846a56
Fix compile error
2022-05-11 14:16:44 -07:00
deb4858f3e
Add subtitle and loc key message flags
...
(cherry picked from commit 126e7a76dd
)
2022-05-11 13:58:51 -06:00
bff879abfd
PR from Huru to prevent dynamics from moving during age initilization
2022-05-11 13:58:51 -06:00
fededb574b
Change to prevent crashing when fCurStage is null
2022-05-11 13:58:51 -06:00
126e7a76dd
Add subtitle and loc key message flags
2022-05-10 20:07:41 -05:00
f54f14328e
PR from Huru to prevent dynamics from moving during age initilization
2022-05-04 20:16:58 -07:00
8aaa98b8b7
Change to prevent crashing when fCurStage is null
2022-04-29 07:46:54 -07:00
3489e04463
Fix crash from plMouseDevice::HideCursor if it is called before cursor is created
2022-04-06 19:46:00 -05:00
33bbc490be
Minor code quality correction
2022-04-06 19:32:30 -05:00
fd0c2a205e
Fix nondeterministic conflicting page processing on startup
2022-04-06 19:18:05 -05:00
b16de9d86f
Merge branch 'master' into working
2022-03-19 21:41:37 -06:00
bff8203fbe
Merge branch 'ticket/38' of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata into ticket/38
2022-03-19 22:15:28 -05:00
23ded3210f
By popular demand, enable subtitles by default
2022-03-19 22:15:14 -05:00
9f9d510958
Merge branch 'ticket/38'
...
closes #38
2022-03-12 09:15:42 -07:00
f0d2bd3eaa
Don't feed remaining subtitles when audio skips to past the end of last subtitle
...
(cherry picked from commit 40bcaba9d8
)
2022-03-11 10:05:46 -07:00
41627d1c7c
Merge branch 'master' into working
2022-03-11 10:03:31 -07:00
ea4bb43623
Merge branch 'ticket/38' of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata into ticket/38
2022-03-11 10:59:08 -06:00
40bcaba9d8
Don't feed remaining subtitles when audio skips to past the end of last subtitle
2022-03-11 10:55:44 -06:00
e93db035ba
Revert "Fixes bug where avatar run-lock state can get confused after alt-tabbing"
...
This reverts commit 69dac251b6
.
2022-03-09 09:44:05 -07:00
94fab5996f
Merge branch 'ticket/41'
...
closes #41
2022-03-09 09:42:23 -07:00
da7d2d0e5c
Merge branch 'ticket/40'
...
closes #40
2022-03-09 09:41:57 -07:00
2e8dc81bf3
Merge branch 'ticket/38'
...
closes #38
2022-03-09 09:41:29 -07:00
c0e83259f3
Don't display previous subtitles all at once when subtitles are enabled mid-audio play
...
(cherry picked from commit 40f200e066
)
2022-03-06 10:17:51 -07:00
838e3e51ad
Merge branch 'ticket/38' of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata into ticket/38
2022-03-06 09:10:38 -06:00
40f200e066
Don't display previous subtitles all at once when subtitles are enabled mid-audio play
2022-03-06 09:04:27 -06:00
6e4996e1be
Ensure pyGUIControlListBox::GetElementW can't attempt to return a null pointer as a std::wstring
...
(cherry picked from commit 2f1bb87056
)
2022-03-05 12:42:42 -07:00
2f1bb87056
Ensure pyGUIControlListBox::GetElementW can't attempt to return a null pointer as a std::wstring
2022-03-05 13:34:52 -06:00
df848b48c4
Prevent deferred link race conditions
...
(cherry picked from commit e512dd0c68
)
2022-03-04 13:16:31 -07:00
75c570877a
Merge branch 'master' into working
2022-03-04 13:16:11 -07:00
e512dd0c68
Prevent deferred link race conditions
2022-03-03 23:26:08 -06:00
4c76549fb3
Merge branch 'ticket/33'
...
closes #33
2022-03-01 14:42:05 -07:00