mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 08:59:17 +01:00
Merge branch 'master' into net7
This commit is contained in:
commit
de31fccd76
5 changed files with 34 additions and 5 deletions
|
|
@ -370,13 +370,21 @@ internal sealed class DalamudConfiguration : IServiceType
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Save the configuration at the path it was loaded from.
|
/// Save the configuration at the path it was loaded from, at the next frame.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void QueueSave()
|
public void QueueSave()
|
||||||
{
|
{
|
||||||
this.isSaveQueued = true;
|
this.isSaveQueued = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Immediately save the configuration.
|
||||||
|
/// </summary>
|
||||||
|
public void ForceSave()
|
||||||
|
{
|
||||||
|
this.Save();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Save the file, if needed. Only needs to be done once a frame.
|
/// Save the file, if needed. Only needs to be done once a frame.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Label="Feature">
|
<PropertyGroup Label="Feature">
|
||||||
<DalamudVersion>7.3.1.0</DalamudVersion>
|
<DalamudVersion>7.3.4.0</DalamudVersion>
|
||||||
<Description>XIV Launcher addon framework</Description>
|
<Description>XIV Launcher addon framework</Description>
|
||||||
<AssemblyVersion>$(DalamudVersion)</AssemblyVersion>
|
<AssemblyVersion>$(DalamudVersion)</AssemblyVersion>
|
||||||
<Version>$(DalamudVersion)</Version>
|
<Version>$(DalamudVersion)</Version>
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,27 @@ public class SwapChainVtableResolver : BaseAddressResolver, ISwapChainAddressRes
|
||||||
// DXGISwapChain::handle_device_loss => DXGISwapChain::Present => DXGISwapChain::runtime_present
|
// DXGISwapChain::handle_device_loss => DXGISwapChain::Present => DXGISwapChain::runtime_present
|
||||||
|
|
||||||
var scanner = new SigScanner(processModule);
|
var scanner = new SigScanner(processModule);
|
||||||
|
var runtimePresentSig = "F6 C2 01 0F 85 ?? ?? ?? ??";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var p = scanner.ScanText("F6 C2 01 0F 85 ?? ?? ?? ??"); // E8 ?? ?? ?? ?? 45 0F B6 5E ??
|
var fileInfo = FileVersionInfo.GetVersionInfo(processModule.FileName);
|
||||||
|
|
||||||
|
// Looks like this sig only works for GShade 4
|
||||||
|
if (fileInfo.FileDescription?.Contains("GShade 4.") == true)
|
||||||
|
{
|
||||||
|
Log.Verbose("Hooking present for GShade 4");
|
||||||
|
runtimePresentSig = "E8 ?? ?? ?? ?? 45 0F B6 5E ??";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Log.Error(ex, "Failed to get reshade version info - falling back to default DXGISwapChain::runtime_present signature");
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var p = scanner.ScanText(runtimePresentSig);
|
||||||
Log.Information($"ReShade DLL: {processModule.FileName} with DXGISwapChain::runtime_present at {p:X}");
|
Log.Information($"ReShade DLL: {processModule.FileName} with DXGISwapChain::runtime_present at {p:X}");
|
||||||
|
|
||||||
this.Present = p;
|
this.Present = p;
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,9 @@ public class BranchSwitcherWindow : Window
|
||||||
{
|
{
|
||||||
Pick();
|
Pick();
|
||||||
|
|
||||||
|
// If we exit immediately, we need to write out the new config now
|
||||||
|
Service<DalamudConfiguration>.Get().ForceSave();
|
||||||
|
|
||||||
var appData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
var appData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||||
var xlPath = Path.Combine(appData, "XIVLauncher", "XIVLauncher.exe");
|
var xlPath = Path.Combine(appData, "XIVLauncher", "XIVLauncher.exe");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,8 @@ We are currently working from the following branches.
|
||||||
|
|
||||||
| Name | Purpose | .NET Version | Track |
|
| Name | Purpose | .NET Version | Track |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| *master* | Upgrade to .NET 6 | .NET 6.0.3 (March 2022) | Staging |
|
| *master* | Current release branch | .NET 6.0.3 (March 2022) | Release & Staging |
|
||||||
| *net5* | Current release branch | .NET 5.0.6 (May 2021) | Release |
|
| *net7* | Upgrade to .NET 7 | .NET 7.0.0 (November 2022) | net7 |
|
||||||
| *api3* | Legacy version, no longer in active use | .NET Framework 4.7.2 (April 2017) | - |
|
| *api3* | Legacy version, no longer in active use | .NET Framework 4.7.2 (April 2017) | - |
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue