diff --git a/BeefLibs/corlib/src/Diagnostics/Debug.bf b/BeefLibs/corlib/src/Diagnostics/Debug.bf index fbc05536..66d8537a 100644 --- a/BeefLibs/corlib/src/Diagnostics/Debug.bf +++ b/BeefLibs/corlib/src/Diagnostics/Debug.bf @@ -44,10 +44,19 @@ namespace System.Diagnostics #endif } +#if BF_ENABLE_OBJECT_DEBUG_FLAGS + static void Write(char8* str, int strLen) + { + } + static void Write(int val) + { + } +#else [CallingConvention(.Cdecl)] static extern void Write(char8* str, int strLen); [CallingConvention(.Cdecl)] static extern void Write(int val); +#endif public static void Write(String line) { diff --git a/BeefLibs/corlib/src/Internal.bf b/BeefLibs/corlib/src/Internal.bf index fd4d1b56..efbad488 100644 --- a/BeefLibs/corlib/src/Internal.bf +++ b/BeefLibs/corlib/src/Internal.bf @@ -653,7 +653,7 @@ namespace System } [DisableChecks, DisableObjectAccessChecks] - public static void Dbg_ObjectStackInit(Object obj, ClassVData* classVData) + public static void Dbg_ObjectStackInit(Object obj, ClassVData* classVData, int size, uint8 allocFlags) { #if BF_ENABLE_OBJECT_DEBUG_FLAGS obj.[Friend]mClassVData = (.)(void*)classVData; diff --git a/BeefLibs/corlib/src/Random.bf b/BeefLibs/corlib/src/Random.bf index 641fcf5b..4937d184 100644 --- a/BeefLibs/corlib/src/Random.bf +++ b/BeefLibs/corlib/src/Random.bf @@ -39,7 +39,11 @@ namespace System private int32 inextp; private int32[] SeedArray = new int32[56] ~ delete _; +#if !BF_RUNTIME_DISABLE private static int32 sSeed = (int32)Platform.BfpSystem_GetTimeStamp(); +#else + private static int32 sSeed = 0; +#endif // // Public Constants diff --git a/BeefLibs/corlib/src/Runtime.bf b/BeefLibs/corlib/src/Runtime.bf index 42f2df7d..9582395b 100644 --- a/BeefLibs/corlib/src/Runtime.bf +++ b/BeefLibs/corlib/src/Runtime.bf @@ -746,8 +746,8 @@ namespace System return 0; } - [LinkName(.C), AlwaysInclude] - static extern void WinMain(void* module, void* prevModule, char8* args, int32 showCmd); + /*[LinkName(.C), AlwaysInclude] + static extern void WinMain(void* module, void* prevModule, char8* args, int32 showCmd);*/ [LinkName(.C), AlwaysInclude] static extern int32 main(int argc, char8** argv); diff --git a/BeefLibs/corlib/src/Type.bf b/BeefLibs/corlib/src/Type.bf index 5bb91e66..888e0184 100644 --- a/BeefLibs/corlib/src/Type.bf +++ b/BeefLibs/corlib/src/Type.bf @@ -1714,7 +1714,7 @@ namespace System.Reflection int32 stackCount = Compiler.Options.AllocStackCount; if (mAllocStackCountOverride != 0) stackCount = mAllocStackCountOverride; - obj = Internal.Dbg_ObjectAlloc([Friend]mTypeClassVData, arraySize, [Friend]mInstAlign, stackCount, 0); + obj = Internal.Dbg_ObjectAlloc([Friend]mTypeClassVData, arraySize, [Friend]mInstAlign, stackCount); #else void* mem = new [Align(16)] uint8[arraySize]* (?); obj = Internal.UnsafeCastToObject(mem);