mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix INI screen size issue (for good this time?)
This commit is contained in:
@ -289,17 +289,11 @@ namespace Wabbajack.Lib
|
|||||||
foreach (var file in Directory.EnumerateFiles(Path.Combine(OutputFolder, "profiles"), "*refs.ini",
|
foreach (var file in Directory.EnumerateFiles(Path.Combine(OutputFolder, "profiles"), "*refs.ini",
|
||||||
DirectoryEnumerationOptions.Recursive))
|
DirectoryEnumerationOptions.Recursive))
|
||||||
{
|
{
|
||||||
IniData data;
|
|
||||||
var parser = new FileIniDataParser(new IniDataParser(config));
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
IniData data;
|
||||||
|
var parser = new FileIniDataParser(new IniDataParser(config));
|
||||||
data = parser.ReadFile(file);
|
data = parser.ReadFile(file);
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Utils.Log($"Skipping screen size remap for {file} due to parse error.");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.Sections["Display"]["iSize W"] != null && data.Sections["Display"]["iSize H"] != null)
|
if (data.Sections["Display"]["iSize W"] != null && data.Sections["Display"]["iSize H"] != null)
|
||||||
{
|
{
|
||||||
@ -309,6 +303,13 @@ namespace Wabbajack.Lib
|
|||||||
|
|
||||||
parser.WriteFile(file, data);
|
parser.WriteFile(file, data);
|
||||||
}
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Utils.Log($"Skipping screen size remap for {file} due to parse error.");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WriteRemappedFile(RemappedInlineFile directive)
|
private void WriteRemappedFile(RemappedInlineFile directive)
|
||||||
|
Reference in New Issue
Block a user