Skip to content

Commit a70660b

Browse files
authored
Merge pull request #74 from watson-developer-cloud/feature-fix-build
* quick fix for builds for different projects running on same machine
2 parents f288b39 + 7550941 commit a70660b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Config.json.enc

0 Bytes
Binary file not shown.

Config.json.enc.orig

2.66 KB
Binary file not shown.

Scripts/Editor/Build.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ public class Build
3232
#region Build Options
3333
public static bool IsBuilding
3434
{
35-
get { return EditorPrefs.GetInt("IsBuilding") != 0; }
36-
set { EditorPrefs.SetInt("IsBuilding", value ? 1 : 0); }
35+
get { return EditorPrefs.GetInt(Application.productName + "IsBuilding") != 0; }
36+
set { EditorPrefs.SetInt(Application.productName + "IsBuilding", value ? 1 : 0); }
3737
}
3838
public static BuildTarget BuildTarget
3939
{
40-
get { return (BuildTarget)EditorPrefs.GetInt("BuildTarget"); }
41-
set { EditorPrefs.SetInt("BuildTarget", (int)value); }
40+
get { return (BuildTarget)EditorPrefs.GetInt(Application.productName + "BuildTarget"); }
41+
set { EditorPrefs.SetInt(Application.productName + "BuildTarget", (int)value); }
4242
}
4343
public static BuildOptions BuildOptions
4444
{
45-
get { return (BuildOptions)EditorPrefs.GetInt("BuildOptions"); }
46-
set { EditorPrefs.SetInt("BuildOptions", (int)value); }
45+
get { return (BuildOptions)EditorPrefs.GetInt(Application.productName + "BuildOptions"); }
46+
set { EditorPrefs.SetInt(Application.productName + "BuildOptions", (int)value); }
4747
}
4848
#endregion
4949

0 commit comments

Comments
 (0)