Skip to content

Commit

Permalink
Minor fixes: max slot number is now 14 and the debug mode could not b…
Browse files Browse the repository at this point in the history
…e compiled.
  • Loading branch information
perdevcoc authored and perdevcoc committed Jul 13, 2015
1 parent 7b7e2fb commit 250efdd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CoCEd/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void Initialize()
static AmfFile AutoLoad(FlashDirectory[] directories)
{
var file = directories[0].Files[0];
VM.Instance.Load(file.FilePath, createBackup: true);
VM.Instance.Load(file.FilePath, SerializationFormat.Slot, createBackup: true);
return file;
}

Expand Down
4 changes: 2 additions & 2 deletions CoCEd/Common/UpdatableCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ object ICollection.SyncRoot

public sealed class UpdatableCollection<T> : UpdatableCollection<T, T>
{
public UpdatableCollection(IEnumerable<T> source)
: base(source, x => x)
public UpdatableCollection(IEnumerable<T> initialItems)
: base(initialItems, x => x)
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion CoCEd/Model/FileManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static class FileManager

const int MaxBackupFiles = 10;
public const int SaveSlotsLowerBound = 1;
public const int SaveSlotsUpperBound = 9;
public const int SaveSlotsUpperBound = 14;

public static string PathWithMissingPermissions { get; private set; }

Expand Down
4 changes: 3 additions & 1 deletion CoCEd/ViewModel/VM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ public void UpdateAppTitle()
if (SaveRequired) title += "\u202F*";
if (IsRevampMod) title += " [Revamp-Mod]";
title += " | " + AppTitle;
Application.Current.MainWindow.Title = title; // Databinding does not work for this

if (Application.Current.MainWindow != null) // May be null on autoload.
Application.Current.MainWindow.Title = title; // Databinding does not work for this
}

public void NotifySaveRequiredChanged(bool saveRequired = true)
Expand Down

0 comments on commit 250efdd

Please sign in to comment.