修复64位运行失败的问题
This commit is contained in:
parent
ed685cce49
commit
5843c2deb9
|
@ -51,7 +51,11 @@ public partial class App : Microsoft.UI.Xaml.Application
|
||||||
|
|
||||||
public App()
|
public App()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
if (!Directory.Exists(wj.CD))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(wj.CD);
|
||||||
|
}
|
||||||
// 注册激活事件处理程序
|
// 注册激活事件处理程序
|
||||||
Host = Microsoft.Extensions.Hosting.Host.
|
Host = Microsoft.Extensions.Hosting.Host.
|
||||||
CreateDefaultBuilder().
|
CreateDefaultBuilder().
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 206 KiB |
|
@ -12,7 +12,7 @@ public sealed partial class MainWindow : WindowEx
|
||||||
|
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
gj.SetBackTheme(this);
|
//gj.SetBackTheme(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
//AppWindow.SetIcon("Assets/tool.png");
|
//AppWindow.SetIcon("Assets/tool.png");
|
||||||
AppWindow.SetIcon(Path.Combine(AppContext.BaseDirectory, "Assets/WindowIcon.ico"));
|
AppWindow.SetIcon(Path.Combine(AppContext.BaseDirectory, "Assets/WindowIcon.ico"));
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<AppxPackageDir>D:\RustTools</AppxPackageDir>
|
<AppxPackageDir>D:\RustTools</AppxPackageDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Remove="Assets\WindowIcon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="Assets\image\image_106.svg" />
|
<None Remove="Assets\image\image_106.svg" />
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using RustTools.muqing;
|
||||||
|
|
||||||
public class IniHelper
|
public class IniHelper
|
||||||
{
|
{
|
||||||
|
@ -60,10 +61,10 @@ public class IniHelper
|
||||||
/// <exception cref="FileNotFoundException"></exception>
|
/// <exception cref="FileNotFoundException"></exception>
|
||||||
public void Load(string a)
|
public void Load(string a)
|
||||||
{
|
{
|
||||||
filePath = a;
|
filePath = Path.Combine(wj.CD,a);
|
||||||
if (!File.Exists(a))
|
if (!File.Exists(filePath))
|
||||||
{
|
{
|
||||||
File.Create(a);
|
File.Create(filePath);
|
||||||
return;
|
return;
|
||||||
//throw new FileNotFoundException("The specified file does not exist.", filePath);
|
//throw new FileNotFoundException("The specified file does not exist.", filePath);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ namespace RustTools.muqing;
|
||||||
class wj
|
class wj
|
||||||
{
|
{
|
||||||
//存储主要文件的路径
|
//存储主要文件的路径
|
||||||
public static string CD = ApplicationData.Current.LocalFolder.Path;
|
public static string CD = "C:\\RustTools";
|
||||||
//缓存路径
|
//缓存路径
|
||||||
public const string Cache = "";
|
public const string Cache = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user