enable case-insensitive file paths by default for Android/Linux players

This commit is contained in:
Jesse Plamondon-Willard 2022-05-07 23:26:34 -04:00
parent ecdda9b077
commit e286e5591b
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
3 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,8 @@
# Release notes # Release notes
## Upcoming release ## Upcoming release
* For players: * For players:
* Enabled case-insensitive file paths by default for Android and Linux players.
_This was temporarily disabled in SMAPI 3.14.1. This is no longer enabled by default for macOS and Windows players._
* Improved performance of case-insensitive file paths. * Improved performance of case-insensitive file paths.
* For mod authors: * For mod authors:
* Dynamic content packs created via `helper.ContentPacks.CreateTemporary` or `CreateFake` are now listed in the log file. * Dynamic content packs created via `helper.ContentPacks.CreateTemporary` or `CreateFake` are now listed in the log file.

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using StardewModdingAPI.Internal.ConsoleWriting; using StardewModdingAPI.Internal.ConsoleWriting;
using StardewModdingAPI.Toolkit.Utilities;
namespace StardewModdingAPI.Framework.Models namespace StardewModdingAPI.Framework.Models
{ {
@ -22,7 +23,7 @@ namespace StardewModdingAPI.Framework.Models
[nameof(VerboseLogging)] = false, [nameof(VerboseLogging)] = false,
[nameof(LogNetworkTraffic)] = false, [nameof(LogNetworkTraffic)] = false,
[nameof(RewriteMods)] = true, [nameof(RewriteMods)] = true,
[nameof(UsePintail)] = true, [nameof(UsePintail)] = Constants.Platform is Platform.Android or Platform.Linux,
[nameof(UseCaseInsensitivePaths)] = false [nameof(UseCaseInsensitivePaths)] = false
}; };

View File

@ -41,9 +41,10 @@ copy all the settings, or you may cause bugs due to overridden changes in future
/** /**
* Whether to make SMAPI file APIs case-insensitive, even on Linux. * Whether to make SMAPI file APIs case-insensitive, even on Linux.
* This is experimental, and the initial implementation may impact load times. *
* When this is commented out, it'll be true on Android or Linux, and false otherwise.
*/ */
"UseCaseInsensitivePaths": false, "UseCaseInsensitivePaths": null,
/** /**
* Whether to use the experimental Pintail API proxying library, instead of the original * Whether to use the experimental Pintail API proxying library, instead of the original