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: 271
  • 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: 255
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
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: @BigOnYa...