Skip to content

Commit

Permalink
skip save files (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella authored Sep 17, 2023
1 parent d8dbb3e commit 21de9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public async Task<Dictionary<string, List<string>>> DownloadAssets()
Analogue.DataJSON data = ReadDataJSON();
if(data.data.data_slots.Length > 0) {
foreach(Analogue.DataSlot slot in data.data.data_slots) {
if(slot.filename != null && !Factory.GetGlobals().Blacklist.Contains(slot.filename)) {
if(slot.filename != null && !slot.filename.EndsWith(".sav") && !Factory.GetGlobals().Blacklist.Contains(slot.filename)) {
string path = Path.Combine(UpdateDirectory, "Assets", info.metadata.platform_ids[0]);
if(slot.isCoreSpecific()) {
path = Path.Combine(path, this.identifier);
Expand Down Expand Up @@ -237,7 +237,7 @@ public async Task<Dictionary<string, List<string>>> DownloadAssets()
if(instance.instance.data_slots.Length > 0) {
string data_path = instance.instance.data_path;
foreach(Analogue.DataSlot slot in instance.instance.data_slots) {
if(!Factory.GetGlobals().Blacklist.Contains(slot.filename)) {
if(!Factory.GetGlobals().Blacklist.Contains(slot.filename) && !slot.filename.EndsWith(".sav")) {
string path = Path.Combine(UpdateDirectory, "Assets", info.metadata.platform_ids[0], "common", data_path, slot.filename);
if(File.Exists(path) && CheckCRC(path)) {
_writeMessage("Already installed: " + slot.filename);
Expand Down

0 comments on commit 21de9b1

Please sign in to comment.