Skip to content

Commit

Permalink
Further bug fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
RevoLand committed Jul 26, 2015
1 parent 48ddd12 commit 205af67
Show file tree
Hide file tree
Showing 20 changed files with 226 additions and 59 deletions.
Binary file modified Binaries/Steam Library Manager.exe
Binary file not shown.
Binary file modified Source/Steam Library Manager.v11.suo
Binary file not shown.
7 changes: 5 additions & 2 deletions Source/Steam Library Manager/App.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Steam_Library_Manager.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Steam_Library_Manager.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<startup>
Expand All @@ -16,6 +16,9 @@
<setting name="SLM_GameSizeCalcMethod" serializeAs="String">
<value>ACF</value>
</setting>
<setting name="SLM_ArchiveSizeCalcMethod" serializeAs="String">
<value>Uncompressed</value>
</setting>
</Steam_Library_Manager.Properties.Settings>
</userSettings>
</configuration>
66 changes: 58 additions & 8 deletions Source/Steam Library Manager/Forms/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 32 additions & 9 deletions Source/Steam Library Manager/Forms/Main.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Security.AccessControl;
using System.Security.Principal;
using System.Windows.Forms;

namespace Steam_Library_Manager
Expand All @@ -22,6 +20,8 @@ public Main()
// Select game & library list as active tab
tabControl1.SelectedTab = tab_InstalledGames;

// Somehow when we set icon at designer PortableSettingsProvider gives an error
this.Icon = Steam_Library_Manager.Properties.Resources.steam_icon;
}

private void linkLabel_SteamPath_LinkClicked(object sender, MouseEventArgs e)
Expand Down Expand Up @@ -99,24 +99,47 @@ private void textBox_Search_KeyUp(object sender, KeyEventArgs e)
}
*/

private void SLM_sizeCalculationMethod_SelectedIndexChanged(object sender, EventArgs e)
private void SLM_button_GameSizeCalcHelp_Click(object sender, EventArgs e)
{
MessageBox.Show("ACF, uses the game size specified in gameid.ACF file, much faster than enumeration of game files but may not be accurate 100%\n\nEnum, enumerates all files in the game installation directory and check for file sizes so in a large game library it may take real long but 100% accurate\n\nTip: ACF is preferred, as because while copying or moving a game if any file fails while copying will cause the process to die and it will not delete any files from source dir, also you wouldn't try moving a game to full disk, would you? Well don't worry, you can try :P", "Game Size Calculation Method");
}

private void Main_FormClosing(object sender, FormClosingEventArgs e)
{
// Save user settings
Functions.Settings.Save();
}

private void button_RefreshList_Click(object sender, EventArgs e)
{
try
{
Properties.Settings.Default.SLM_GameSizeCalcMethod = (SLM_sizeCalculationMethod.SelectedItem.ToString().StartsWith("ACF")) ? "ACF" : "Enum";
Functions.SteamLibrary.UpdateGameLibraries();
Functions.Games.UpdateGamesList(Definitions.SLM.LatestSelectedGame.Library);
}
catch { }
}

private void SLM_button_GameSizeCalcHelp_Click(object sender, EventArgs e)
private void SLM_sizeCalculationMethod_SelectedIndexChanged(object sender, EventArgs e)
{
MessageBox.Show("ACF, uses the game size specified in gameid.ACF file, much faster than enumeration of game files but may not be accurate 100%\n\nEnum, enumerates all files in the game installation directory and check for file sizes so in a large game library it may take real long but 100% accurate\n\nTip: ACF is preferred, as because while copying or moving a game if any file fails while copying will cause the process to die and it will not delete any files from source dir, also you wouldn't try moving a game to full disk, would you? Well don't worry, you can try :P", "Game Size Calculation Method");
try
{
Properties.Settings.Default.SLM_GameSizeCalcMethod = (SLM_sizeCalculationMethod.SelectedIndex == 0) ? "ACF" : "Enum";

Functions.Settings.Save();
}
catch { }
}

private void Main_FormClosing(object sender, FormClosingEventArgs e)
private void SLM_archiveSizeCalcMethod_SelectedIndexChanged(object sender, EventArgs e)
{
// Save user settings
Functions.Settings.Save();
try
{
Properties.Settings.Default.SLM_ArchiveSizeCalcMethod = (SLM_archiveSizeCalcMethod.SelectedIndex == 0) ? "Uncompressed" : "Archive";

Functions.Settings.Save();
}
catch { }
}

}
Expand Down
15 changes: 14 additions & 1 deletion Source/Steam Library Manager/Forms/MoveGame.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 205af67

Please sign in to comment.