mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-10 03:27:28 -03:00
修复几个错误
This commit is contained in:
parent
708c56acf0
commit
eecc5b931c
3 changed files with 9 additions and 6 deletions
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Web.Script.Serialization;
|
using System.Web.Script.Serialization;
|
||||||
using static Il2CppDumper.DefineConstants;
|
using static Il2CppDumper.DefineConstants;
|
||||||
|
@ -404,7 +405,7 @@ namespace Il2CppDumper
|
||||||
{
|
{
|
||||||
writer.Write("); // 0x{0:X}\n", methodPointer);
|
writer.Write("); // 0x{0:X}\n", methodPointer);
|
||||||
//Script - method
|
//Script - method
|
||||||
var name = ToEscapedString(typeName + "$$" + methodName);
|
var name = ToEscapedString(Regex.Replace(typeName, @"`\d", "") + "$$" + methodName);
|
||||||
scriptwriter.WriteLine($"SetMethod(0x{methodPointer:X}, '{name}')");
|
scriptwriter.WriteLine($"SetMethod(0x{methodPointer:X}, '{name}')");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
7
Il2CppDumper/Resource1.Designer.cs
generated
7
Il2CppDumper/Resource1.Designer.cs
generated
|
@ -75,12 +75,13 @@ namespace Il2CppDumper {
|
||||||
///def SetMethod(addr, name):
|
///def SetMethod(addr, name):
|
||||||
/// i = 0
|
/// i = 0
|
||||||
/// ret = idc.MakeNameEx(addr, name, SN_NOWARN)
|
/// ret = idc.MakeNameEx(addr, name, SN_NOWARN)
|
||||||
/// new_name = name + '_' + str(addr)
|
/// if ret == 0:
|
||||||
/// ret = idc.MakeNameEx(addr, str(new_name), SN_NOWARN)
|
/// new_name = name + '_' + str(addr)
|
||||||
|
/// ret = idc.MakeNameEx(addr, str(new_name), SN_NOWARN)
|
||||||
///
|
///
|
||||||
///def MakeFunction(start, end):
|
///def MakeFunction(start, end):
|
||||||
/// if GetFunctionAttr(start, FUNCATTR_START) == 0xFFFFFFFF:
|
/// if GetFunctionAttr(start, FUNCATTR_START) == 0xFFFFFFFF:
|
||||||
/// idc.MakeFunction(start, [字符串的其余部分被截断]"; 的本地化字符串。
|
/// idc.Mak [字符串的其余部分被截断]"; 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string ida {
|
internal static string ida {
|
||||||
get {
|
get {
|
||||||
|
|
|
@ -132,8 +132,9 @@ def SetString(addr, comm):
|
||||||
def SetMethod(addr, name):
|
def SetMethod(addr, name):
|
||||||
i = 0
|
i = 0
|
||||||
ret = idc.MakeNameEx(addr, name, SN_NOWARN)
|
ret = idc.MakeNameEx(addr, name, SN_NOWARN)
|
||||||
new_name = name + '_' + str(addr)
|
if ret == 0:
|
||||||
ret = idc.MakeNameEx(addr, str(new_name), SN_NOWARN)
|
new_name = name + '_' + str(addr)
|
||||||
|
ret = idc.MakeNameEx(addr, str(new_name), SN_NOWARN)
|
||||||
|
|
||||||
def MakeFunction(start, end):
|
def MakeFunction(start, end):
|
||||||
if GetFunctionAttr(start, FUNCATTR_START) == 0xFFFFFFFF:
|
if GetFunctionAttr(start, FUNCATTR_START) == 0xFFFFFFFF:
|
||||||
|
|
Loading…
Reference in a new issue