(method: Il2Cpp.Method)
| 445 | } |
| 446 | |
| 447 | function formatMethod(method: Il2Cpp.Method): string { |
| 448 | try { |
| 449 | const klass = method.class; |
| 450 | const className = klass.fullName || `${klass.namespace ?? ""}.${klass.name}`.replace(/^\./, ""); |
| 451 | const parameters = method.parameters.map(parameter => parameter.type.name).join(", "); |
| 452 | return `${className}::${method.name}(${parameters})`; |
| 453 | } catch (_error) { |
| 454 | try { |
| 455 | return method.name; |
| 456 | } catch (__error) { |
| 457 | return "<unknown il2cpp method>"; |
| 458 | } |
| 459 | } |
| 460 | } |