diff --git a/Il2CppInspector.Common/Outputs/CppScaffolding.cs b/Il2CppInspector.Common/Outputs/CppScaffolding.cs index b661336..6801d66 100644 --- a/Il2CppInspector.Common/Outputs/CppScaffolding.cs +++ b/Il2CppInspector.Common/Outputs/CppScaffolding.cs @@ -40,6 +40,10 @@ namespace Il2CppInspector.Outputs writeSectionHeader("IL2CPP internal types"); writeCode(model.UnityHeaders.GetTypeHeaderText(model.WordSize)); + // Stop MSVC complaining about out-of-bounds enum values + if (model.TargetCompiler == CppCompilerType.MSVC) + writeCode("#pragma warning(disable : 4369)"); + writeCode("namespace app {"); writeLine("");