帮助理解糟糕的代码?
很久很久以前,我用 AS3 构建了一个游戏。从那以后我对它越来越陌生,并且在计算机崩溃中丢失了原始的 .fla。我反编译了我的 .swf ,sothink 给了我这个:
_loc_7 = _loc_3 ? (JMP[_loc_4]) : (if (brain.S.mods.indexOf("B") != -1) 转到 731,brain.S.HR ? (1.4) : (JMP[brain.sys2.stats.JMP ]));
它充满了错误,例如 if 语句需要标识符和右括号。在转到之前。 我似乎无法修复它,希望你们能帮我弄清楚我在做什么?
A long-long time ago I built a game in AS3. I have since grown unfamiliar with it AND lost the original .fla in a computer crash. I decompiled my .swf and sothink gave me this to work with:
_loc_7 = _loc_3 ? (JMP[_loc_4]) : (if (brain.S.mods.indexOf("B") != -1) goto 731, brain.S.HR ? (1.4) : (JMP[brain.sys2.stats.JMP]));
It is riddled with errors, like the if statement needing an identifier and a right-paren. before the goto.
I can't seem to fix it and was hoping maybe you guys could help me figure out what I was doing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几个月前我遇到了类似的问题,我尝试了 Trillix 和 Sothink,但在 AS3 中它们的工作效果不如在 AS2 中那样好。反编译后的代码变得乱码,有时很难弄清楚这些东西的含义。当然,代码中有一个逻辑,比如“_loc_7”是函数或循环中的局部变量...
如果您找到解决方案,请告诉我们,我非常想知道:D
祝您好运,
抢
I had a similar issue couple of months ago and I tried Trillix and Sothink but with AS3 they don't work very well as they do with AS2. The decompiled code becomes gibberish and it is very difficult sometimes figuring out what these things mean. Of course there is a logic in the code, like '_loc_7' is a local variable in a function or loop...
If you find the solution to this let us know, I am very keen to know :D
Good luck,
Rob