Skip to content

Commit

Permalink
ARE YOU KIDDING ME WHY DOES IT WORK NOW
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryFrosty committed Sep 7, 2024
1 parent 116b3df commit ef1e1b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/psychlua/ReflectionFunctions.hx
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,17 @@ class ReflectionFunctions
if(index > -1)
{
myArg = myArg.substring(index+2);
PlayState.instance.addTextToDebug('Op1: $myArg', FlxColor.WHITE);
//PlayState.instance.addTextToDebug('Op1: $myArg', FlxColor.WHITE);
var lastIndex:Int = myArg.lastIndexOf('::');

var split:Array<String> = lastIndex > -1 ? myArg.substring(0, lastIndex).split('.') : myArg.split('.');
args[i] = (lastIndex > -1) ? Type.resolveClass(myArg.substring(lastIndex+2)) : PlayState.instance;
PlayState.instance.addTextToDebug('Op1.5: ${args[i]}', FlxColor.WHITE);
//PlayState.instance.addTextToDebug('Op1.5: ${args[i]}', FlxColor.WHITE);
for (j in 0...split.length)
{
PlayState.instance.addTextToDebug('Op2: ${Type.getClass(args[i])}, ${split[j]}', FlxColor.WHITE);
//PlayState.instance.addTextToDebug('Op2: ${Type.getClass(args[i])}, ${split[j]}', FlxColor.WHITE);
args[i] = LuaUtils.getVarInArray(args[i], split[j].trim());
PlayState.instance.addTextToDebug('Op3: ${args[i] != null ? Type.getClass(args[i]) : null}', FlxColor.WHITE);
//PlayState.instance.addTextToDebug('Op3: ${args[i] != null ? Type.getClass(args[i]) : null}', FlxColor.WHITE);
}
}
}
Expand Down

0 comments on commit ef1e1b2

Please sign in to comment.