-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1991399
commit e6b4848
Showing
36 changed files
with
1,742 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$projdir = "C:\Users\Fragtality\source\repos\FenixQuartz" | ||
$instBinDir = $projdir + "\Installer\bin\Release\app.publish" | ||
$version = "v1.2.0" | ||
|
||
#Create Lock | ||
cd $projdir | ||
if (-not (Test-Path -Path "build.lck")) { | ||
"lock" | Out-File -File "build.lck" | ||
} | ||
else { | ||
exit 0 | ||
} | ||
|
||
cd "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64" | ||
#WT2GSX | ||
Write-Host "Building FenixQuartz" | ||
.\msbuild.exe ($projdir + "\FenixQuartz.sln") /t:FenixQuartz:rebuild /p:Configuration="Release" /p:BuildProjectReferences=false | Out-Null | ||
|
||
#Installer | ||
Write-Host "Building Installer" | ||
.\msbuild.exe ($projdir + "\FenixQuartz.sln") /t:Installer:rebuild /p:Configuration="Release" /p:BuildProjectReferences=false | Out-Null | ||
|
||
Copy-Item -Path ($instBinDir + "\Installer.exe") -Destination ($projdir + "\Releases\FenixQuartz-Installer-" + $version + ".exe") -Force | ||
|
||
#Remove lock | ||
cd $projdir | ||
if ((Test-Path -Path "build.lck")) { | ||
Remove-Item -Path "build.lck" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Xml; | ||
|
||
namespace FenixQuartz | ||
{ | ||
public class ConfigurationFile | ||
{ | ||
private Dictionary<string, string> appSettings = new(); | ||
private XmlDocument xmlDoc = new(); | ||
|
||
public string this[string key] | ||
{ | ||
get => GetSetting(key); | ||
set => SetSetting(key, value); | ||
} | ||
|
||
public void LoadConfiguration() | ||
{ | ||
xmlDoc = new(); | ||
xmlDoc.LoadXml(File.ReadAllText(App.ConfigFilePath)); | ||
|
||
XmlNode xmlSettings = xmlDoc.ChildNodes[1]; | ||
appSettings.Clear(); | ||
foreach(XmlNode child in xmlSettings.ChildNodes) | ||
appSettings.Add(child.Attributes["key"].Value, child.Attributes["value"].Value); | ||
} | ||
|
||
public void SaveConfiguration() | ||
{ | ||
foreach (XmlNode child in xmlDoc.ChildNodes[1]) | ||
child.Attributes["value"].Value = appSettings[child.Attributes["key"].Value]; | ||
|
||
xmlDoc.Save(App.ConfigFilePath); | ||
} | ||
|
||
public string GetSetting(string key, string defaultValue = "") | ||
{ | ||
if (appSettings.ContainsKey(key)) | ||
return appSettings[key]; | ||
else | ||
{ | ||
XmlNode newNode = xmlDoc.CreateElement("add"); | ||
|
||
XmlAttribute attribute = xmlDoc.CreateAttribute("key"); | ||
attribute.Value = key; | ||
newNode.Attributes.Append(attribute); | ||
|
||
attribute = xmlDoc.CreateAttribute("value"); | ||
attribute.Value = defaultValue; | ||
newNode.Attributes.Append(attribute); | ||
|
||
xmlDoc.ChildNodes[1].AppendChild(newNode); | ||
appSettings.Add(key, defaultValue); | ||
SaveConfiguration(); | ||
|
||
return defaultValue; | ||
} | ||
} | ||
|
||
public void SetSetting(string key, string value) | ||
{ | ||
if (appSettings.ContainsKey(key)) | ||
{ | ||
appSettings[key] = value; | ||
SaveConfiguration(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<appSettings> | ||
<add key="debugGUI" value="true" /> | ||
<add key="FenixExecutable" value="FenixSystem" /> | ||
<add key="logFilePath" value="FenixQuartz.log" /> | ||
<add key="logLevel" value="Debug" /> | ||
<add key="waitForConnect" value="true" /> | ||
<add key="offsetBase" value="0x5408" /> | ||
<add key="rawValues" value="true" /> | ||
<add key="useLvars" value="true" /> | ||
<add key="updateIntervall" value="100" /> | ||
<add key="altScaleDelim" value=" "/> | ||
<add key="addFcuMode" value="true"/> | ||
<add key="ooMode" value="false"/> | ||
<add key="lvarPrefix" value="FNX2PLD_"/> | ||
<add key="ignoreBatteries" value="false"/> | ||
<add key="perfCaptainSide" value="true"/> | ||
<add key="perfButtonHold" value="1000"/> | ||
</appSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<appSettings> | ||
<add key="debugGUI" value="true" /> | ||
<add key="FenixExecutable" value="FenixSystem" /> | ||
<add key="logFilePath" value="FenixQuartz.log" /> | ||
<add key="logLevel" value="Debug" /> | ||
<add key="waitForConnect" value="true" /> | ||
<add key="offsetBase" value="0x5408" /> | ||
<add key="rawValues" value="true" /> | ||
<add key="useLvars" value="false" /> | ||
<add key="updateIntervall" value="100" /> | ||
<add key="altScaleDelim" value=" "/> | ||
<add key="addFcuMode" value="true"/> | ||
<add key="ooMode" value="false"/> | ||
<add key="lvarPrefix" value="FNX2PLD_"/> | ||
<add key="ignoreBatteries" value="false"/> | ||
<add key="perfCaptainSide" value="true"/> | ||
<add key="perfButtonHold" value="1000"/> | ||
</appSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<appSettings> | ||
<add key="debugGUI" value="true" /> | ||
<add key="FenixExecutable" value="FenixSystem" /> | ||
<add key="logFilePath" value="FenixQuartz.log" /> | ||
<add key="logLevel" value="Debug" /> | ||
<add key="waitForConnect" value="true" /> | ||
<add key="offsetBase" value="0x5408" /> | ||
<add key="rawValues" value="false" /> | ||
<add key="useLvars" value="false" /> | ||
<add key="updateIntervall" value="100" /> | ||
<add key="altScaleDelim" value=" "/> | ||
<add key="addFcuMode" value="true"/> | ||
<add key="ooMode" value="false"/> | ||
<add key="lvarPrefix" value="FNX2PLD_"/> | ||
<add key="ignoreBatteries" value="false"/> | ||
<add key="perfCaptainSide" value="true"/> | ||
<add key="perfButtonHold" value="1000"/> | ||
</appSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Application x:Class="Installer.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Installer" | ||
StartupUri="InstallerWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Windows; | ||
|
||
namespace Installer | ||
{ | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<appSettings> | ||
<add key="debugGUI" value="true" /> | ||
<add key="FenixExecutable" value="FenixSystem" /> | ||
<add key="logFilePath" value="FenixQuartz.log" /> | ||
<add key="logLevel" value="Debug" /> | ||
<add key="waitForConnect" value="true" /> | ||
<add key="offsetBase" value="0x5408" /> | ||
<add key="rawValues" value="true" /> | ||
<add key="useLvars" value="true" /> | ||
<add key="updateIntervall" value="100" /> | ||
<add key="altScaleDelim" value=" "/> | ||
<add key="addFcuMode" value="true"/> | ||
<add key="ooMode" value="false"/> | ||
<add key="lvarPrefix" value="FNX2PLD_"/> | ||
<add key="ignoreBatteries" value="false"/> | ||
<add key="perfCaptainSide" value="true"/> | ||
<add key="perfButtonHold" value="1000"/> | ||
</appSettings> |
Oops, something went wrong.