Skip to content

Commit

Permalink
v1.3.2, contains small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RevoLand committed Oct 22, 2016
1 parent 1533154 commit 53c9328
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 14 deletions.
Binary file modified Binaries/Steam Library Manager.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Binaries/Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.1.0|Fixes and improvements have been done, also done with Settings page for now.
1.3.2.0|Fixes and improvements
Binary file modified Extras/Screenshots/Mainform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Extras/Screenshots/gameMovement.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Extras/Screenshots/settingsPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Source/Steam Library Manager/Definitions/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void copyGameFiles(Forms.MoveGameForm currentForm, Library targetLibrary,
totalMovenFileCount++;
movenFileSize += currentFile.Length;

FileInfo newFile = new FileInfo(Path.Combine(installedLibrary.steamAppsPath.FullName, currentFile.FullName));
FileInfo newFile = new FileInfo(Path.Combine(targetLibrary.steamAppsPath.FullName, currentFile.FullName));

if (!newFile.Directory.Exists)
{
Expand Down
8 changes: 4 additions & 4 deletions Source/Steam Library Manager/Definitions/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ public void UpdateGameList()

// Foreach *.acf file found in library
//foreach (string game in Directory.EnumerateFiles(steamAppsPath.FullName, "*.acf", SearchOption.TopDirectoryOnly))
Parallel.ForEach(Directory.EnumerateFiles(steamAppsPath.FullName, "*.acf", SearchOption.TopDirectoryOnly), acfFilePath =>
Parallel.ForEach(steamAppsPath.EnumerateFiles("*.acf", SearchOption.TopDirectoryOnly), acfFilePath =>
{
// Define a new value and call KeyValue
Framework.KeyValue Key = new Framework.KeyValue();

// Read the *.acf file as text
Key.ReadFileAsText(acfFilePath);
Key.ReadFileAsText(acfFilePath.FullName);

// If key doesn't contains a child (value in acf file)
if (Key.Children.Count == 0)
return;

Functions.Games.AddNewGame(acfFilePath, Convert.ToInt32(Key["appID"].Value), !string.IsNullOrEmpty(Key["name"].Value) ? Key["name"].Value : Key["UserConfig"]["name"].Value, Key["installdir"].Value, this, Convert.ToInt64(Key["SizeOnDisk"].Value), false);
Functions.Games.AddNewGame(acfFilePath.FullName, Convert.ToInt32(Key["appID"].Value), !string.IsNullOrEmpty(Key["name"].Value) ? Key["name"].Value : Key["UserConfig"]["name"].Value, Key["installdir"].Value, this, Convert.ToInt64(Key["SizeOnDisk"].Value), false);
});

// Do a loop for each *.zip file in library
//foreach (string gameArchive in Directory.EnumerateFiles(steamAppsPath.FullName, "*.zip", SearchOption.TopDirectoryOnly))
Parallel.ForEach(Directory.EnumerateFiles(steamAppsPath.FullName, "*.zip", SearchOption.TopDirectoryOnly), gameArchive =>
{
Functions.Games.readGameDetailsFromZip(gameArchive, this);
Expand Down
7 changes: 2 additions & 5 deletions Source/Steam Library Manager/Forms/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void gameContextMenuItem_Click(object sender, RoutedEventArgs e)

private void textBox_TextChanged(object sender, TextChangedEventArgs e)
{
if (Definitions.SLM.selectedLibrary != null)
if (Definitions.SLM.selectedLibrary != null && !string.IsNullOrEmpty(searchText.Text) && searchText.Text != "Search in Library (by app Name or app ID)")
Functions.Games.UpdateMainForm(Definitions.SLM.selectedLibrary, searchText.Text);
}

Expand Down Expand Up @@ -248,10 +248,7 @@ private void checkForUpdates_Click(object sender, RoutedEventArgs e)
{
Functions.Updater.CheckForUpdates();
}
catch
{

}
catch { }
}
}
}
4 changes: 2 additions & 2 deletions Source/Steam Library Manager/Forms/MoveGameForm.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@

<Button x:Name="button" Content="Copy" Margin="10,319,10,0" VerticalAlignment="Top" Height="45" Click="button_Click"/>

<ListView x:Name="textBox" Margin="10,369,10,60" AllowDrop="False" IsTabStop="False" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
<ListView x:Name="textBox" Margin="10,369,10,15" AllowDrop="False" IsTabStop="False" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
<ListView.ItemTemplate>
<DataTemplate>
<TextBlock MaxHeight="16" Text="{Binding}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

<ProgressBar x:Name="progressReport" Margin="10,0,10,25" Height="30" VerticalAlignment="Bottom" />
<!--<ProgressBar x:Name="progressReport" Margin="10,0,10,25" Height="30" VerticalAlignment="Bottom" />-->
<Label x:Name="progressReportLabel" Margin="0,0,10,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalAlignment="Right" VerticalAlignment="Bottom" />
</Grid>
</Window>
2 changes: 2 additions & 0 deletions Source/Steam Library Manager/Forms/MoveGameForm.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public void reportFileMovement(string movenFileName, int movenFileCount, int tot
{
formLogs.Add(string.Format("[{0}/{1}] {2}\n", movenFileCount, totalFileCount, movenFileName));

/*
if (progressReportLabel.Dispatcher.CheckAccess())
{
progressReportLabel.Content = $"{Functions.fileSystem.FormatBytes(totalFileSize - movenFileSize)} left - {Functions.fileSystem.FormatBytes(movenFileSize)} / {Functions.fileSystem.FormatBytes(totalFileSize)}";
Expand Down Expand Up @@ -94,6 +95,7 @@ public void reportFileMovement(string movenFileName, int movenFileCount, int tot
textBox.ScrollIntoView(textBox.Items[textBox.Items.Count - 1]);
}, System.Windows.Threading.DispatcherPriority.Normal);
}
*/

}

Expand Down
2 changes: 1 addition & 1 deletion Source/Steam Library Manager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.2.0")]

0 comments on commit 53c9328

Please sign in to comment.