Don't set screen sizes in NGC installs

This commit is contained in:
Halgari 2022-09-30 23:31:20 -06:00
parent 9c4f7afa06
commit 4aecae98fe
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@
* Optimize the modlist optimizer so runs a bit faster * Optimize the modlist optimizer so runs a bit faster
* Rework the file hash cache so it doesn't block the UI thread * Rework the file hash cache so it doesn't block the UI thread
* Errors when downloading modlists no longer cause the app to crash * Errors when downloading modlists no longer cause the app to crash
* Only parse and edit screen sizes in INI files when installing MO2 lists
#### Version - 3.0.1.7 - 9/27/2022 #### Version - 3.0.1.7 - 9/27/2022
* HOTFIX: fix "Could not find part of path" bug related to the profiles folder * HOTFIX: fix "Could not find part of path" bug related to the profiles folder

View File

@ -338,6 +338,9 @@ public class StandardInstaller : AInstaller<StandardInstaller>
private void SetScreenSizeInPrefs() private void SetScreenSizeInPrefs()
{ {
var profilesPath = _configuration.Install.Combine("profiles"); var profilesPath = _configuration.Install.Combine("profiles");
// Don't remap files for Native Game Compiler games
if (!profilesPath.DirectoryExists()) return;
if (_configuration.SystemParameters == null) if (_configuration.SystemParameters == null)
_logger.LogWarning("No SystemParameters set, ignoring ini settings for system parameters"); _logger.LogWarning("No SystemParameters set, ignoring ini settings for system parameters");