Skip to content

Commit 915369f

Browse files
committed
Fixed #6
1 parent 2f2e699 commit 915369f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

AddonBuilder/Program.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public static void HandleArmaClose()
190190

191191
static bool haveAllBuildersClosed = false;
192192
static int buildersNotLaunched = 0;
193+
static int closedBuilders = 0;
193194

194195
/// <summary>
195196
/// Handle the building of the folders to get the magical PBOs
@@ -278,13 +279,15 @@ public static void HandleBuild(string AddonBuilder, string source, string target
278279

279280
while (!haveAllBuildersClosed | buildersNotLaunched == folderCount)
280281
{
282+
Thread.Sleep(100);
281283
if (hashesToChange.Count > 0 | addedHashes > 0)
282284
{
283285
if (hashesToChange.Count > 0)
284286
{
285287
Hash[] hashes = hashesToChange.ToArray();
286288
foreach (var hash in hashes)
287289
{
290+
data["Checksums"].RemoveKey(hash.checksumName);
288291
data["Checksums"].AddKey(hash.checksumName, hash.hash);
289292
}
290293
}
@@ -313,19 +316,17 @@ public static void HandleBuild(string AddonBuilder, string source, string target
313316
Environment.Exit(1);
314317
}
315318
}
316-
else
317-
{
318-
Thread.Sleep(100);
319-
}
320319
}
321320
else
322321
{
323-
break;
322+
if (buildersNotLaunched + closedBuilders == folderCount)
323+
{
324+
break;
325+
}
324326
}
325327
}
326328
}
327329

328-
static int closedBuilders = 0;
329330
/// <summary>
330331
/// Handles the exit of each builder and when all of the builders have exited, then start up Arma 3.
331332
/// </summary>

AddonBuilder/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.4.*")]
35+
[assembly: AssemblyVersion("1.5.*")]

0 commit comments

Comments
 (0)