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

Improved Win32 debugging

This commit is contained in:
Brian Fiete 2019-11-30 13:28:40 -08:00
parent cbae124dd5
commit ad9075d1aa
11 changed files with 86 additions and 39 deletions

View file

@ -1816,6 +1816,9 @@ namespace IDE
bool SaveWorkspace()
{
if (mWorkspace.mNeedsCreate)
mWorkspace.mNeedsCreate = false;
if (!mWorkspace.IsSingleFileWorkspace)
{
#if !CLI
@ -9376,6 +9379,11 @@ namespace IDE
public void AutoGenerateStartupCode(Project project)
{
// We have to save this to ensure any new project is actually created. Maybe overkill,
// but best to stay conservative since this path won't be heavily tested
if (!SaveAll())
return;
String namespaceName = scope .();
String className = scope .();
String startupStr = project.mBeefGlobalOptions.mStartupObject;
@ -9411,6 +9419,8 @@ namespace IDE
String srcPath = scope .();
project.mRootFolder.GetFullImportPath(srcPath);
Directory.CreateDirectory(srcPath).IgnoreError();
srcPath.Append(Path.DirectorySeparatorChar);
srcPath.Append("Program.bf");