mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2025-12-10 13:30:26 +05:00
AppModel/C++: Fix regression in handling of C# primitive pointer types
This commit is contained in:
@@ -85,6 +85,8 @@ namespace Il2CppInspector.Reflection
|
||||
}
|
||||
|
||||
public static string ToCIdentifier(this string str) {
|
||||
// replace * with Ptr
|
||||
str = str.Replace("*", "Ptr");
|
||||
// replace illegal characters
|
||||
str = Regex.Replace(str, "[^a-zA-Z0-9_]", "_");
|
||||
// ensure identifier starts with a letter or _ (and is non-empty)
|
||||
|
||||
Reference in New Issue
Block a user