Skip to content

Commit

Permalink
Added ubm file association.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Brown committed May 13, 2015
1 parent c842279 commit 2719482
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions Unity Build Manager/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,22 @@ private void Form1_Shown(object sender, EventArgs e)
{
RegistryEditor regEdit = new RegistryEditor();

string filePath = (string)regEdit.ReadFromRegistry("defaultFile", "Software\\UnityBuildManager", false, "");
string[] args = Environment.GetCommandLineArgs();

if (filePath != "")
if(args.Length > 1 && File.Exists(args[1]))
{
loadUBMFile(filePath);
loadUBMFile(args[1]);
}
else
{
string filePath = (string)regEdit.ReadFromRegistry("defaultFile", "Software\\UnityBuildManager", false, "");

if (filePath != "")
{
loadUBMFile(filePath);
}
}


string unityPath = (string)regEdit.ReadFromRegistry("Location x64", "Software\\Unity Technologies\\Installer\\Unity", false, "");

Expand Down
4 changes: 2 additions & 2 deletions Unity Build Manager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
2 changes: 1 addition & 1 deletion Unity Build Manager/Unity Build Manager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4A651D5B-164C-4E14-B59E-B5DF04D6241C}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Unity_Build_Manager</RootNamespace>
<AssemblyName>Unity Build Manager</AssemblyName>
Expand Down

0 comments on commit 2719482

Please sign in to comment.