As requested, I have taken a look at Borderlands 2. The package opens in the present public version but the functions are not decompiled at all.
I have made some progress(~2 hours) on the decompiling the BL2 functions, so far this is how it looks:
Many functions are decompiled perfectly except for those using Let tokens(Assigments =) and Local variables as you see there are none but in the UDK build there is at least one local variable named Delta, e.g:
For as far as I know the local variables seem to have just dissapeared, although they've added a new array at the beginning of the functions with values I haven't figured out yet, perhaps they are the replacement for local variables.
I suppose I'll have to test more functions to get an idea of those changes
I have made some progress(~2 hours) on the decompiling the BL2 functions, so far this is how it looks:
Code:
static final simulated function float FindDeltaAngle(float A1, float A2)
{
@OBJECT[1] = A2 - A1;
// End:0x45 Loop:False
if(@OBJECT[1] > 3.14)
{
@OBJECT[1] = @OBJECT[1] - 3.14 * 2.00;
// This is an implied JumpToken;
goto J0x6f;
// End:0x6f Loop:False
if(@OBJECT[1] < -3.14)
{
@OBJECT[1] = @OBJECT[1] + 3.14 * 2.00;
}
return @OBJECT[1];
return ReturnValue;
}
}
Many functions are decompiled perfectly except for those using Let tokens(Assigments =) and Local variables as you see there are none but in the UDK build there is at least one local variable named Delta, e.g:
Code:
static final simulated function float FindDeltaAngle(float A1, float A2)
{
local float Delta;
Delta = A2 - A1;
// End:0x55 Loop:False
if(Delta > 3.14)
{
Delta = Delta - 3.14 * 2.00;
}
// End:0x8b
else
{
// End:0x8b Loop:False
if(Delta < -3.14)
{
Delta = Delta + 3.14 * 2.00;
}
}
return Delta;
}
For as far as I know the local variables seem to have just dissapeared, although they've added a new array at the beginning of the functions with values I haven't figured out yet, perhaps they are the replacement for local variables.
I suppose I'll have to test more functions to get an idea of those changes