Skip to content

Commit 03bddb4

Browse files
committed
[FlashpointManager] Fix oversights
1 parent e8fb2e9 commit 03bddb4

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

FlashpointManager/src/Forms/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private void BrowseButton_Click(object sender, EventArgs e)
2424
{
2525
if (isFlashpoint || node.Name != "component") return;
2626

27-
if (File.Exists(Path.Combine(pathDialog.FileName, "Components", new Component(node).ID + ".txt")))
27+
if (File.Exists(Path.Combine(pathDialog.FileName, "Components", new Component(node).ID)))
2828
{
2929
isFlashpoint = true;
3030
}

FlashpointManager/src/Program.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ static void Main(string[] args)
6464
}
6565
}
6666

67-
bool updateConfig = false;
68-
6967
// Download and parse component list
7068
while (true)
7169
{
@@ -144,13 +142,11 @@ static void Main(string[] args)
144142
}
145143

146144
FPM.SourcePath = pathDialog.FileName;
147-
updateConfig = true;
148-
}
149145

150-
// Write new values to configuration file if needed
151-
if (updateConfig && !FPM.WriteConfig(FPM.SourcePath, FPM.RepoXml))
152-
{
153-
Environment.Exit(1);
146+
if (!FPM.WriteConfig(FPM.SourcePath, FPM.RepoXml))
147+
{
148+
Environment.Exit(1);
149+
}
154150
}
155151

156152
if (args.Length > 0)

0 commit comments

Comments
 (0)