diff --git a/.idea/.idea.Discord Cache Viewer/.idea/codeStyles/codeStyleConfig.xml b/.idea/.idea.Discord Cache Viewer/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..7ad1bf1
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/contentModel.xml b/.idea/.idea.Discord Cache Viewer/.idea/contentModel.xml
new file mode 100644
index 0000000..b54d8e5
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/contentModel.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/discord.xml b/.idea/.idea.Discord Cache Viewer/.idea/discord.xml
new file mode 100644
index 0000000..cd711a0
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/discord.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/encodings.xml b/.idea/.idea.Discord Cache Viewer/.idea/encodings.xml
new file mode 100644
index 0000000..df87cf9
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/indexLayout.xml b/.idea/.idea.Discord Cache Viewer/.idea/indexLayout.xml
new file mode 100644
index 0000000..27ba142
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/indexLayout.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/modules.xml b/.idea/.idea.Discord Cache Viewer/.idea/modules.xml
new file mode 100644
index 0000000..cd3653c
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/projectSettingsUpdater.xml b/.idea/.idea.Discord Cache Viewer/.idea/projectSettingsUpdater.xml
new file mode 100644
index 0000000..4bb9f4d
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/projectSettingsUpdater.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/.idea/workspace.xml b/.idea/.idea.Discord Cache Viewer/.idea/workspace.xml
new file mode 100644
index 0000000..0cc1104
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/.idea/workspace.xml
@@ -0,0 +1,162 @@
+
+
+
+ Discord Cache Viewer/Discord Cache Viewer.csproj
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1614672870803
+
+
+ 1614672870803
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/.idea.Discord Cache Viewer/riderModule.iml b/.idea/.idea.Discord Cache Viewer/riderModule.iml
new file mode 100644
index 0000000..1a4e0d9
--- /dev/null
+++ b/.idea/.idea.Discord Cache Viewer/riderModule.iml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Discord Cache Viewer.sln b/Discord Cache Viewer.sln
new file mode 100644
index 0000000..17a0fcc
--- /dev/null
+++ b/Discord Cache Viewer.sln
@@ -0,0 +1,16 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Discord Cache Viewer", "Discord Cache Viewer\Discord Cache Viewer.csproj", "{24E24498-B464-47B2-988A-04E85A8DC39B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {24E24498-B464-47B2-988A-04E85A8DC39B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {24E24498-B464-47B2-988A-04E85A8DC39B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {24E24498-B464-47B2-988A-04E85A8DC39B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {24E24498-B464-47B2-988A-04E85A8DC39B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/Discord Cache Viewer/Discord Cache Viewer.csproj b/Discord Cache Viewer/Discord Cache Viewer.csproj
new file mode 100644
index 0000000..c0c6eff
--- /dev/null
+++ b/Discord Cache Viewer/Discord Cache Viewer.csproj
@@ -0,0 +1,54 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {24E24498-B464-47B2-988A-04E85A8DC39B}
+ Exe
+ Properties
+ Discord_Cache_Viewer
+ Discord_Cache_Viewer
+ v4.8
+ 512
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Discord Cache Viewer/Program.cs b/Discord Cache Viewer/Program.cs
new file mode 100644
index 0000000..cae1634
--- /dev/null
+++ b/Discord Cache Viewer/Program.cs
@@ -0,0 +1,41 @@
+using System;
+using System.IO;
+using System.Threading.Tasks;
+
+namespace Discord_Cache_Viewer
+{
+ internal struct Program
+ {
+ ///
+ /// Startup function.
+ ///
+ public static async Task Main()
+ {
+ Console.WriteLine("Please enter the Discord cache path");
+ begin_processing(Console.ReadLine());
+ Console.WriteLine("Processed all files, closing in 10 seconds");
+ await Task.Delay(10000);
+ GC.Collect();
+ Environment.Exit(0);
+ }
+
+ ///
+ /// Begin checking and processing files.
+ ///
+ /// The cache folder path.
+ private static void begin_processing(string path)
+ {
+ var files = Directory.GetFiles(path);
+ const string header = "PNG", extension = ".png";
+ const ushort index = 0;
+ for (short i = 0; i < files.Length; i++) // UShort has a greater max length than a signed Short.
+ {
+ var filePath = files[i];
+ // We only have to read the first line and check if it has the PNG header.
+ if (File.ReadAllLines(filePath)[index].Contains(header))
+ Console.WriteLine($"{filePath} - Added .png extension");
+ File.Move(filePath, filePath + extension);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Discord Cache Viewer/Properties/AssemblyInfo.cs b/Discord Cache Viewer/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..dbde275
--- /dev/null
+++ b/Discord Cache Viewer/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Discord_Cache_Viewer")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Discord_Cache_Viewer")]
+[assembly: AssemblyCopyright("Copyright © 2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("24E24498-B464-47B2-988A-04E85A8DC39B")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
diff --git a/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.exe b/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.exe
new file mode 100644
index 0000000..11e4131
Binary files /dev/null and b/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.exe differ
diff --git a/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.pdb b/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.pdb
new file mode 100644
index 0000000..7e2f541
Binary files /dev/null and b/Discord Cache Viewer/bin/Debug/Discord_Cache_Viewer.pdb differ
diff --git a/Discord Cache Viewer/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/Discord Cache Viewer/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
new file mode 100644
index 0000000..15efebf
--- /dev/null
+++ b/Discord Cache Viewer/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
diff --git a/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.CoreCompileInputs.cache b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..ae4ea0c
--- /dev/null
+++ b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+7925e88818bc084f3579599de11480a21869339f
diff --git a/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.FileListAbsolute.txt b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..82472b0
--- /dev/null
+++ b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csproj.FileListAbsolute.txt
@@ -0,0 +1,6 @@
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\bin\Debug\Discord_Cache_Viewer.exe
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\bin\Debug\Discord_Cache_Viewer.pdb
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\obj\Debug\Discord Cache Viewer.csprojAssemblyReference.cache
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\obj\Debug\Discord Cache Viewer.csproj.CoreCompileInputs.cache
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\obj\Debug\Discord_Cache_Viewer.exe
+C:\Users\01tie001\RiderProjects\Discord Cache Viewer\Discord Cache Viewer\obj\Debug\Discord_Cache_Viewer.pdb
diff --git a/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csprojAssemblyReference.cache b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csprojAssemblyReference.cache
new file mode 100644
index 0000000..60b8745
Binary files /dev/null and b/Discord Cache Viewer/obj/Debug/Discord Cache Viewer.csprojAssemblyReference.cache differ
diff --git a/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.exe b/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.exe
new file mode 100644
index 0000000..11e4131
Binary files /dev/null and b/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.exe differ
diff --git a/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.pdb b/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.pdb
new file mode 100644
index 0000000..7e2f541
Binary files /dev/null and b/Discord Cache Viewer/obj/Debug/Discord_Cache_Viewer.pdb differ