1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Changed ProgramStart/ProgramEnd to ensure StaticInits get called

This commit is contained in:
Brian Fiete 2019-10-17 05:31:57 -07:00
parent 07b993d824
commit 7882632e93
6 changed files with 19 additions and 19 deletions

View file

@ -118,9 +118,6 @@ namespace IDE.Debugger
[StdCall,CLink]
static extern void Debugger_Delete();
[StdCall,CLink]
static extern void Debugger_ProgramDone();
[StdCall,CLink]
static extern int32 Debugger_GetAddrSize();
@ -398,11 +395,6 @@ namespace IDE.Debugger
Debugger_LoadDebugVisualizers(fileName);
}
public static void ProgramDone()
{
Debugger_ProgramDone();
}
public void FullReportMemory()
{
Debugger_FullReportMemory();

View file

@ -498,12 +498,19 @@ namespace IDE
}
}
[StdCall,CLink]
static extern void IDEHelper_ProgramStart();
[StdCall,CLink]
static extern void IDEHelper_ProgramDone();
public this()
{
sApp = this;
gApp = this;
mMainThread = Thread.CurrentThread;
IDEHelper_ProgramStart();
#if !CLI
mDebugger = new DebugManager();
mVerb = .OpenOrNew;

View file

@ -52,7 +52,7 @@ namespace A0
{
static ~this()
{
IDE.Debugger.DebugManager.ProgramDone();
IDE.IDEApp.[Friend]IDEHelper_ProgramDone();
#if BF_PLATFORM_WINDOWS
if (IDE.IDEApp.sExitTest)