mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix MXAO and fix whitespace
Co-Authored-By: Extravi <98912029+Extravi@users.noreply.github.com>
This commit is contained in:
parent
e8e56b9669
commit
35a621ad29
@ -40,8 +40,6 @@ namespace Bloxstrap.Helpers.Integrations
|
|||||||
// this is a list of selectable shaders to download
|
// this is a list of selectable shaders to download
|
||||||
private static readonly List<ReShadeShaderConfig> Shaders = new()
|
private static readonly List<ReShadeShaderConfig> Shaders = new()
|
||||||
{
|
{
|
||||||
new ReShadeShaderConfig { Name = "Stock", DownloadLocation = "https://github.com/crosire/reshade-shaders/archive/refs/heads/master.zip" },
|
|
||||||
|
|
||||||
// shaders required for extravi's presets:
|
// shaders required for extravi's presets:
|
||||||
new ReShadeShaderConfig { Name = "AstrayFX", DownloadLocation = "https://github.com/BlueSkyDefender/AstrayFX/archive/refs/heads/master.zip" },
|
new ReShadeShaderConfig { Name = "AstrayFX", DownloadLocation = "https://github.com/BlueSkyDefender/AstrayFX/archive/refs/heads/master.zip" },
|
||||||
new ReShadeShaderConfig { Name = "Brussell", DownloadLocation = "https://github.com/brussell1/Shaders/archive/refs/heads/master.zip" },
|
new ReShadeShaderConfig { Name = "Brussell", DownloadLocation = "https://github.com/brussell1/Shaders/archive/refs/heads/master.zip" },
|
||||||
@ -55,14 +53,27 @@ namespace Bloxstrap.Helpers.Integrations
|
|||||||
|
|
||||||
// these ones needs some additional configuration
|
// these ones needs some additional configuration
|
||||||
|
|
||||||
|
new ReShadeShaderConfig
|
||||||
|
{
|
||||||
|
Name = "Stock",
|
||||||
|
DownloadLocation = "https://github.com/crosire/reshade-shaders/archive/refs/heads/master.zip",
|
||||||
|
ExcludedFiles = new List<string>()
|
||||||
|
{
|
||||||
|
// overriden by stormshade
|
||||||
|
"Shaders/MXAO.fx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
new ReShadeShaderConfig
|
new ReShadeShaderConfig
|
||||||
{
|
{
|
||||||
Name = "AlucardDH",
|
Name = "AlucardDH",
|
||||||
DownloadLocation = "https://github.com/AlucardDH/dh-reshade-shaders/archive/refs/heads/master.zip",
|
DownloadLocation = "https://github.com/AlucardDH/dh-reshade-shaders/archive/refs/heads/master.zip",
|
||||||
ExcludedFiles = new List<string>()
|
ExcludedFiles = new List<string>()
|
||||||
{
|
{
|
||||||
// compiler error
|
// compiler errors
|
||||||
"Shaders/dh_rtgi.fx"
|
// dh_Lain only errors when performance mode is disabled, but it's not used by any presets anyway
|
||||||
|
"Shaders/dh_rtgi.fx",
|
||||||
|
"Shaders/dh_Lain.fx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -83,7 +94,7 @@ namespace Bloxstrap.Helpers.Integrations
|
|||||||
"Shaders/FXAA.fx",
|
"Shaders/FXAA.fx",
|
||||||
"Shaders/FXAA.fxh",
|
"Shaders/FXAA.fxh",
|
||||||
"Shaders/LumaSharpen.fx",
|
"Shaders/LumaSharpen.fx",
|
||||||
"Shaders/MXAO.fx",
|
//"Shaders/MXAO.fx",
|
||||||
"Shaders/ReShade.fxh",
|
"Shaders/ReShade.fxh",
|
||||||
"Shaders/Vibrance.fx",
|
"Shaders/Vibrance.fx",
|
||||||
"Shaders/Vignette.fx"
|
"Shaders/Vignette.fx"
|
||||||
@ -235,6 +246,7 @@ namespace Bloxstrap.Helpers.Integrations
|
|||||||
if (entry.FullName.EndsWith('/') || !entry.FullName.Contains(config.BaseFolder))
|
if (entry.FullName.EndsWith('/') || !entry.FullName.Contains(config.BaseFolder))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// github branch zips have a root folder of the name of the branch, so let's just remove that
|
||||||
string fullPath = entry.FullName.Substring(entry.FullName.IndexOf(config.BaseFolder) + config.BaseFolder.Length);
|
string fullPath = entry.FullName.Substring(entry.FullName.IndexOf(config.BaseFolder) + config.BaseFolder.Length);
|
||||||
|
|
||||||
// skip file if it's not in the Shaders or Textures folder
|
// skip file if it's not in the Shaders or Textures folder
|
||||||
@ -432,6 +444,7 @@ namespace Bloxstrap.Helpers.Integrations
|
|||||||
Directory.Delete(ShadersFolder, true);
|
Directory.Delete(ShadersFolder, true);
|
||||||
Directory.Delete(TexturesFolder, true);
|
Directory.Delete(TexturesFolder, true);
|
||||||
App.State.Prop.ExtraviReShadePresetsVersion = "";
|
App.State.Prop.ExtraviReShadePresetsVersion = "";
|
||||||
|
App.Logger.WriteLine("[ReShade::CheckModifications] Upgrading to ReShade 5.7.0 - redownloading all shaders!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user