Changed to target .NET 4.8, bumped version number, fixed lingering temp files

This commit is contained in:
Blake 2020-03-08 12:29:55 -04:00
parent 7de76c8b39
commit 24fab83cd4
4 changed files with 35 additions and 32 deletions

View file

@ -11,9 +11,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("XCI Explorer")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("206c6c47-87b1-477f-b6e6-f7e7c1a92f8f")]
[assembly: AssemblyFileVersion("1.4.9")]
[assembly: AssemblyVersion("1.4.9")]
[assembly: AssemblyFileVersion("1.5.0")]
[assembly: AssemblyVersion("1.5.0")]

View file

@ -7,7 +7,7 @@
<OutputType>WinExe</OutputType>
<AssemblyName>XCI-Explorer</AssemblyName>
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<NuGetPackageImportStamp>

View file

@ -67,7 +67,7 @@ namespace XCI_Explorer
{
using (var client = new WebClient())
{
client.DownloadFile(Util.Base64Decode("aHR0cHM6Ly9wYXN0ZWJpbi5jb20vcmF3L3dZbUxUTkxx"), "keys.txt");
client.DownloadFile(Util.Base64Decode("aHR0cHM6Ly9wYXN0ZWJpbi5jb20vcmF3L2NWR3JQSHp6"), "keys.txt");
}
}
@ -674,10 +674,19 @@ namespace XCI_Explorer
process.Close();
}
catch { }
if (Directory.Exists("tmp"))
try
{
File.Delete("meta");
Directory.Delete("data", true);
}
catch { }
try
{
Directory.Delete("tmp", true);
}
catch { }
TB_Capacity.Text = "eShop";
@ -708,15 +717,12 @@ namespace XCI_Explorer
if (SecureName[si].EndsWith(".cnmt.nca"))
{
if (File.Exists("meta"))
try
{
File.Delete("meta");
}
if (Directory.Exists("data"))
{
Directory.Delete("data", true);
}
catch { }
using (FileStream fileStream2 = File.OpenWrite("meta"))
{
@ -779,15 +785,12 @@ namespace XCI_Explorer
if (ncaTarget.Contains(SecureName[si]))
{
if (File.Exists("meta"))
try
{
File.Delete("meta");
}
if (Directory.Exists("data"))
{
Directory.Delete("data", true);
}
catch { }
using (FileStream fileStream2 = File.OpenWrite("meta"))
{

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>