Homebrew RELEASE Switch Backup Manager 1.0

Does version 1.1.0 works for you when adding nsp?

  • Yes

    Votes: 14 93.3%
  • No

    Votes: 1 6.7%

  • Total voters
    15
  • Poll closed .

Greg956

Well-Known Member
Newcomer
Joined
Dec 18, 2017
Messages
89
Trophies
0
Age
28
XP
239
Country
Russia
Hello! Several games are cant be trimmed.
Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.UnauthorizedAccessException: Отказано в доступе по пути "F:\Switch games\Yokus Island Express (World).xci".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
в Switch_Backup_Manager.Util.TrimXCIFile(FileData file)
в Switch_Backup_Manager.Util.TrimXCIFiles(Dictionary`2 files, String source)
в Switch_Backup_Manager.FrmMain.OperationTrimSelectedLocalFiles()
в Switch_Backup_Manager.FrmMain.trimFilesToolStripMenuItem_Click(Object sender, EventArgs e)
в System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
в System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
в System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
в System.Windows.Forms.ToolStrip.WndProc(Message& m)
в System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2671.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Switch Backup Manager
Версия сборки: 1.0.0.0
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Windows.Forms
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2670.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
Версия сборки: 2.9.1.28080
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Xml.Linq
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
mscorlib.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.
1.png
 

GibaBR

Well-Known Member
OP
Newcomer
Joined
Jul 2, 2018
Messages
89
Trophies
0
Age
114
XP
475
Country
Brazil
v 1.0.2

  • Split files support added
  • Some code refactoring
  • Changed values on column "Trimmed" to Yes or No instead of True or False

--------------------- MERGED ---------------------------

Please, try again with version 1.0.2.
If it still not working, please open an issue so I can get track of errors


Hello! Several games are cant be trimmed.
Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.UnauthorizedAccessException: Отказано в доступе по пути "F:\Switch games\Yokus Island Express (World).xci".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
в Switch_Backup_Manager.Util.TrimXCIFile(FileData file)
в Switch_Backup_Manager.Util.TrimXCIFiles(Dictionary`2 files, String source)
в Switch_Backup_Manager.FrmMain.OperationTrimSelectedLocalFiles()
в Switch_Backup_Manager.FrmMain.trimFilesToolStripMenuItem_Click(Object sender, EventArgs e)
в System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
в System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
в System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
в System.Windows.Forms.ToolStrip.WndProc(Message& m)
в System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2671.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Switch Backup Manager
Версия сборки: 1.0.0.0
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Windows.Forms
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2670.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
Версия сборки: 2.9.1.28080
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Xml.Linq
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
mscorlib.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.
View attachment 135592
 
  • Like
Reactions: lordelan

c80

Banned!
Banned
Joined
Jun 1, 2018
Messages
270
Trophies
0
Age
44
XP
194
Country
Germany
@GibaBR

I've seen that the program does not download and unzip hactool. I added that:

Code:
            //TODO: Download hactool.zip and extract files
            //Searches for hactool.exe.
            if (!File.Exists(HACTOOL_FILE))
            {
                //MessageBox.Show(HACTOOL_FILE+" is missing. Please, download it at "+HACTOOL_DOWNLOAD_SITE);
                if (MessageBox.Show(HACTOOL_FILE + " is missing.\nDo you want to automatically download it now?", "Switch Backup Manager", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    using (var client = new WebClient())
                    {
                        var zipPath = Path.GetTempFileName();
                        client.DownloadFile(HACTOOL_DOWNLOAD_SITE, zipPath);
                        ZipFile.ExtractToDirectory(zipPath, Environment.CurrentDirectory);
                        File.Delete(zipPath);
                    }
                }
                Environment.Exit(0);
            }
 
Last edited by c80,
  • Like
Reactions: GibaBR

c80

Banned!
Banned
Joined
Jun 1, 2018
Messages
270
Trophies
0
Age
44
XP
194
Country
Germany
@GibaBR
I've seen that all the sizes are wrong. In Util.cs line 747 it is
Code:
string[] array_fs = new string[5] { "B", "KB", "MB", "GB", "TB" };
but it has to be
Code:
string[] array_fs = new string[5] { "B", "KiB", "MiB", "GiB", "TiB" };
As you can see in line 755, num_fs is devided by 1024, not by 1000
 

Greg956

Well-Known Member
Newcomer
Joined
Dec 18, 2017
Messages
89
Trophies
0
Age
28
XP
239
Country
Russia
Well, the issue is the same with the same games, strange thing...
I dont registered on Github, so cant open an issue.
Here is the code:
Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.

************** Текст исключения **************
System.UnauthorizedAccessException: Отказано в доступе по пути "F:\Switch games\Splatoon 2 (Europe).xci".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
в Switch_Backup_Manager.Util.TrimXCIFile(FileData file)
в Switch_Backup_Manager.Util.TrimXCIFiles(Dictionary`2 files, String source)
в Switch_Backup_Manager.FrmMain.OperationTrimSelectedLocalFiles()
в Switch_Backup_Manager.FrmMain.trimFilesToolStripMenuItem_Click(Object sender, EventArgs e)
в System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
в System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
в System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
в System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в System.Windows.Forms.ScrollableControl.WndProc(Message& m)
в System.Windows.Forms.ToolStrip.WndProc(Message& m)
в System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Загруженные сборки **************
mscorlib
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2671.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Switch Backup Manager
Версия сборки: 1.0.0.0
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Windows.Forms
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2634.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2670.0 built by: NET471REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
Версия сборки: 2.9.1.28080
Версия Win32: 1.0.0.0
CodeBase: file:///D:/switcch/Backup%20Manager/Switch%20Backup%20Manager.exe
----------------------------------------
System.Xml.Linq
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
mscorlib.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.

[\Spoiler]
 

uzi

Well-Known Member
Member
Joined
Mar 21, 2006
Messages
100
Trophies
1
XP
308
Country
my game database is over 200 and when i add folder, it goes thru the games adding them, then at one of the games it stops adding and the list doesnt show anything added

no errors no nothing just said done
 

c80

Banned!
Banned
Joined
Jun 1, 2018
Messages
270
Trophies
0
Age
44
XP
194
Country
Germany
my game database is over 200 and when i add folder, it goes thru the games adding them, then at one of the games it stops adding and the list doesnt show anything added

no errors no nothing just said done
add a try-catch-statement and continue if an error occurs

edit: try changing
Code:
        /// <summary>
        /// Add all XCI files found on given path to a Dictionary of FileData <TitleID, FileData>
        /// </summary>
        /// <param name="path"></param>
        public static Dictionary<string, FileData> AddFilesFromFolder(string path)
        {
            Dictionary<string, FileData> dictionary = new Dictionary<string, FileData>();
            if (Directory.Exists(path) && path.Trim() != "")
            {
                List<string> files = Util.GetXCIsInFolder(path);
                int filesCount = files.Count();
                int i = 0;
                foreach (string file in files)
                {
                    FileData data = Util.GetFileData(file);
                    FrmMain.progressCurrentfile = data.FilePath;
                    dictionary.Add(data.TitleID, data);

                    i++;
                    FrmMain.progressPercent = (int)(i * 100) / filesCount;
                }               
            }
            return dictionary;
        }

to

Code:
        /// <summary>
        /// Add all XCI files found on given path to a Dictionary of FileData <TitleID, FileData>
        /// </summary>
        /// <param name="path"></param>
        public static Dictionary<string, FileData> AddFilesFromFolder(string path)
        {
            Dictionary<string, FileData> dictionary = new Dictionary<string, FileData>();
            if (Directory.Exists(path) && path.Trim() != "")
            {
                List<string> files = Util.GetXCIsInFolder(path);
                int filesCount = files.Count();
                int i = 0;
                foreach (string file in files)
                {
                    try
                    {
                        FileData data = Util.GetFileData(file);
                        FrmMain.progressCurrentfile = data.FilePath;
                        dictionary.Add(data.TitleID, data);

                        i++;
                        FrmMain.progressPercent = (int)(i * 100) / filesCount;
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show($"Message:\n{ex.Message}\n\nStackTrace:\n{ex.StackTrace}");
                    }

                }               
            }
            return dictionary;
        }

I'm not sure if this is the code that throws an error, but if I'm right, that should give you more information and it should add those games to the list that are ok.
 
Last edited by c80,
  • Like
Reactions: lordelan

uzi

Well-Known Member
Member
Joined
Mar 21, 2006
Messages
100
Trophies
1
XP
308
Country
Maybe it's a bad dump of the game
nah ive test ran all the games and get clean scene releases / propers only
then do the trimming my self / organize

new sonic mania plus doesnt like explorers or orgnizer
 

Attachments

  • Screen Shot 2018-07-13 at 2.59.45 PM.png
    Screen Shot 2018-07-13 at 2.59.45 PM.png
    5.7 KB · Views: 269
  • Screen Shot 2018-07-13 at 3.04.13 PM.png
    Screen Shot 2018-07-13 at 3.04.13 PM.png
    3.3 KB · Views: 254
Last edited by uzi,

c80

Banned!
Banned
Joined
Jun 1, 2018
Messages
270
Trophies
0
Age
44
XP
194
Country
Germany
The dictionary uses the titel id as key. The first error message says that there is already an entry with the same id. A dictionary can only have a key once. Check if you have a game twice and if so, remove it from the folder.
 
  • Like
Reactions: uzi

uzi

Well-Known Member
Member
Joined
Mar 21, 2006
Messages
100
Trophies
1
XP
308
Country
The dictionary uses the titel id as key. The first error message says that there is already an entry with the same id. A dictionary can only have a key once. Check if you have a game twice and if so, remove it from the folder.
yup that was 161 - naruto.
fixed

2 games not on the list and i know 1 is the new sonic mania plus
 
  • Like
Reactions: c80

Nuja

Active Member
Newcomer
Joined
Apr 22, 2007
Messages
34
Trophies
0
XP
61
Country
France
Hi,
Your app looks nice but got a problem preventing me from using it: most of my backups are trimmed and cut into parts and when I scan my sdcard it starts to check the files then stop and display nothing (like I didnt launch the sdcard scan).
My backups have been split with xci-cutter (slow method).

thanks for your work and app :)
 

uzi

Well-Known Member
Member
Joined
Mar 21, 2006
Messages
100
Trophies
1
XP
308
Country
Hi,
Your app looks nice but got a problem preventing me from using it: most of my backups are trimmed and cut into parts and when I scan my sdcard it starts to check the files then stop and display nothing (like I didnt launch the sdcard scan).
My backups have been split with xci-cutter (slow method).

thanks for your work and app :)


try this and report back
In util.cs but if you cannot build... take this file: https://gbatemp.net/attachments/switch-backup-manager-zip.135635/
 
  • Like
Reactions: c80

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: what are you currently playing?