Browse Source

Options clearing fix, BeefBuild path fix

Brian Fiete 5 years ago
parent
commit
83004c1184

+ 1 - 1
BeefBuild/BeefSpace.toml

@@ -1,5 +1,5 @@
 FileVersion = 1
-Projects = {BeefBuild = {Path = "."}, corlib = {Path = "../IDE\\corlib"}, Beefy2D = {Path = "../BeefLibs/Beefy2D"}, IDEHelper = {Path = "../IDEHelper"}, Debugger64 = {Path = "../Debugger64"}, BeefySysLib = {Path = "../BeefySysLib"}}
+Projects = {BeefBuild = {Path = "."}, corlib = "*", Beefy2D = {Path = "../BeefLibs/Beefy2D"}, IDEHelper = {Path = "../IDEHelper"}, Debugger64 = {Path = "../Debugger64"}, BeefySysLib = {Path = "../BeefySysLib"}}
 
 [Workspace]
 StartupProject = "BeefBuild"

+ 1 - 0
BeefySysLib/platform/linux/BFPlatform.h

@@ -5,6 +5,7 @@
 #include "LinuxCommon.h"
 
 #define BF_PLATFORM_LINUX
+#define BF_PLATFORM_POSIX
 #define BF_PLATFORM_NAME "BF_PLATFORM_LINUX"
 
 #define BF_IMPORT extern "C"

+ 2 - 1
IDE/src/IDEApp.bf

@@ -3058,7 +3058,8 @@ namespace IDE
             {
 				if (!mWorkspace.IsDebugSession)
 					success &= SaveWorkspaceUserData();
-				mSettings.Save();
+				if (mSettings.mLoadedSettings)
+					mSettings.Save();
 			}
 
 			MarkDirty();

+ 3 - 4
IDE/src/ui/PropertiesDialog.bf

@@ -1665,13 +1665,12 @@ namespace IDE.ui
 					Object target;
 					if (!targetDict.TryGetValue(propEntry.mTarget, out target))
 					{
-						Debug.FatalError();
-						//continue;
+						//Debug.FatalError();
+						continue;
 					}
 
 					String usePropName = scope:: String(propEntry.mPropertyName);
-					//String[] useOptionValues = optionValues;
-
+					
 					while (true)
 					{
 					    int dotIdx = usePropName.IndexOf('.');