mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 13:27:43 +01:00
SeStringEvaluator: Throw if not on main thread
This commit is contained in:
parent
84f5dad0a3
commit
f209ac087a
2 changed files with 4 additions and 7 deletions
|
|
@ -1682,11 +1682,7 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator
|
|||
if (rtm is null)
|
||||
return false;
|
||||
|
||||
if (!ThreadSafety.IsMainThread)
|
||||
{
|
||||
Log.Error("Global parameters may only be used from the main thread.");
|
||||
return false;
|
||||
}
|
||||
ThreadSafety.AssertMainThread("Global parameters may only be used from the main thread.");
|
||||
|
||||
ref var gp = ref rtm->TextModule.MacroDecoder.GlobalParameters;
|
||||
if (parameterIndex >= gp.MySize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue