Skip to content

Commit

Permalink
Prerelease 4.1
Browse files Browse the repository at this point in the history
Changelog:
* Fixed issues where it would install some mods all to the AA2_Make
folder
  • Loading branch information
bbepis committed Oct 25, 2015
1 parent 08acacb commit 3cf2905
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions formMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@
using SB3Utility;

namespace AA2Install
{
/* TODO:
*
* Nothing
*
*/

{
[Serializable()] public struct Mod
{
public string Name;
Expand Down Expand Up @@ -412,27 +406,14 @@ public void inject(bool createBackup = true)

//Fetch.pp file if it exists

switch (pp[3]) //jg2[e/p]0x_...

if (tempPLAY.Contains(ppRAW))
{
case 'e':
//AA2EDIT
destination = Paths.AA2Edit;
break;
case 'p':
//AA2PLAY
destination = Paths.AA2Play;
break;
default:
//Unknown, check both folders
if (tempPLAY.Contains(pp))
{
destination = Paths.AA2Play;
}
else
{
destination = Paths.AA2Edit;
}
break;
destination = Paths.AA2Play;
}
else
{
destination = Paths.AA2Edit;
}

prgMinor.Style = ProgressBarStyle.Continuous;
Expand Down Expand Up @@ -509,6 +490,7 @@ public void inject(bool createBackup = true)
prgMinor.Value = 0;
//Archive backups
prgMinor.Value = 0;
if (!Directory.Exists(Paths.WORKING + "\\BACKUP\\")) { Directory.CreateDirectory(Paths.WORKING + "\\BACKUP\\"); }
List<string> tempBackup = new List<string>(Directory.GetDirectories(Paths.WORKING + "\\BACKUP\\"));
prgMinor.Maximum = tempBackup.Count;
foreach (string s in tempBackup)
Expand Down

0 comments on commit 3cf2905

Please sign in to comment.