Skip to content

Commit 9078354

Browse files
committed
fix: Changed replay storage location to cause all users to check for uploads again
1 parent 31b8263 commit 9078354

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Heroesprofile.Uploader.Windows/App.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private void Application_Startup(object sender, StartupEventArgs e)
102102
RestoreSettings();
103103
}
104104
SetupTrayIcon();
105-
Manager = new Manager(new ReplayStorage($@"{SettingsDir}\replays.xml"));
105+
Manager = new Manager(new ReplayStorage($@"{SettingsDir}\replays_v2.xml"));
106106
// Enable collection modification from any thread
107107
BindingOperations.EnableCollectionSynchronization(Manager.Files, _lock);
108108

Heroesprofile.Uploader.Windows/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public static void Main(string[] args)
3636
}
3737

3838
// Move files from old locations
39-
if (File.Exists($@"{App.AppDir}\..\replays.xml") && !File.Exists($@"{App.SettingsDir}\replays.xml")) {
40-
File.Move($@"{App.AppDir}\..\replays.xml", $@"{App.SettingsDir}\replays.xml");
39+
if (File.Exists($@"{App.AppDir}\..\replays_v2.xml") && !File.Exists($@"{App.SettingsDir}\replays_v2.xml")) {
40+
File.Move($@"{App.AppDir}\..\replays.replays_v2", $@"{App.SettingsDir}\replays_v2.xml");
4141
}
4242
if (File.Exists($@"{App.AppDir}\..\last.config") && !File.Exists($@"{App.SettingsDir}\last.config")) {
4343
File.Move($@"{App.AppDir}\..\last.config", $@"{App.SettingsDir}\last.config");

Heroesprofile.Uploader.Windows/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252
// You can specify all the values or you can default the Build and Revision Numbers
5353
// by using the '*' as shown below:
5454
// [assembly: AssemblyVersion("1.0.*")]
55-
[assembly: AssemblyVersion("1.0.4")]
56-
[assembly: AssemblyFileVersion("1.0.4")]
55+
[assembly: AssemblyVersion("1.0.5")]
56+
[assembly: AssemblyFileVersion("1.0.5")]
5757
[assembly: AssemblyInformationalVersion("1.0.0")]

0 commit comments

Comments
 (0)