add initial support for required forward references in il2cpp types, also fix issues with type names clashing with il2cpp api types

This commit is contained in:
LukeFZ
2025-07-25 21:20:04 +02:00
parent 771eb8eb52
commit 6ddbf7ecae
4 changed files with 741 additions and 617 deletions

View File

@@ -5,9 +5,6 @@
All rights reserved.
*/
using System;
using System.Collections.Generic;
namespace Il2CppInspector.Cpp
{
/// <summary>
@@ -65,9 +62,9 @@ namespace Il2CppInspector.Cpp
// Uniquely name an object within the parent namespace
public string GetName(T t) {
// If we've named this particular object before, just return that name
string name;
if (names.TryGetValue(t, out name))
if (names.TryGetValue(t, out var name))
return name;
// Obtain the mangled name for the object
name = keyFunc(t);
// Check if the mangled name has been given to another object - if it has,