修复本体 net8 process启动问题

This commit is contained in:
ZouJin 2024-03-10 02:15:46 +08:00
parent 85dbfa9616
commit adce61de53
3 changed files with 15 additions and 23 deletions

View File

@ -5,7 +5,7 @@
xmlns:local="clr-namespace:VPet_Simulator.Core" mc:Ignorable="d" Height="500" Width="500"
MouseDoubleClick="UserControl_MouseDoubleClick">
<UserControl.Resources>
<ResourceDictionary Source="Theme.xaml" />
<ResourceDictionary Source="Theme.xaml" d:IsDataSource="True"/>
</UserControl.Resources>
<Border x:Name="BorderMain" Background="{DynamicResource Primary}" BorderBrush="{DynamicResource DARKPrimaryDark}" BorderThickness="5"
VerticalAlignment="Bottom" Padding="10" Margin="5" CornerRadius="5" MouseEnter="Border_MouseEnter"

View File

@ -421,7 +421,19 @@ namespace VPet_Simulator.Windows
{
try
{
Process.Start(content);
try
{
Process.Start(content);
}
catch
{
var psi = new ProcessStartInfo
{
FileName = content,
UseShellExecute = true
};
Process.Start(psi);
}
}
catch (Exception e)
{
@ -1179,7 +1191,7 @@ namespace VPet_Simulator.Windows
//加载游戏设置
if (new FileInfo(ExtensionValue.BaseDirectory + @$"\Setting{PrefixSave}.lps").Exists)
{
Set = new Setting(this,File.ReadAllText(ExtensionValue.BaseDirectory + @$"\Setting{PrefixSave}.lps"));
Set = new Setting(this, File.ReadAllText(ExtensionValue.BaseDirectory + @$"\Setting{PrefixSave}.lps"));
}
else
Set = new Setting(this, "Setting#VPET:|\n");

View File

@ -1,20 +0,0 @@
vup#默认虚拟主播风格:|image#vup:|
Primary#FF81d4fa:|
PrimaryLight#FFA3E2FF:|
PrimaryLighter#FFC1EBFF:|
PrimaryDark#FF5CBEEA:|
PrimaryDarker#FF3CA9DB:|
PrimaryText#FF000000:|
Secondary#FF90caf9:|
SecondaryLight#FFADD7F9:|
SecondaryLighter#FFCBE4F9:|
SecondaryDark#FF6BB1E9:|
SecondaryDarker#FF4999DA:|
SecondaryText#FF000000:|
DARKPrimary#FF039be5:|
DARKPrimaryLight#FF1FA9EC:|
DARKPrimaryLighter#FF3DB8F4:|
DARKPrimaryDark#FF0290D5:|
DARKPrimaryDarker#FF0286C6:|
DARKPrimaryText#FFffffff:|
ShadowColor#90CAF9:|