diff options
| author | Thog <me@thog.eu> | 2020-03-29 23:23:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-30 08:23:05 +1100 |
| commit | 8f21db810d0e8dc5577780dee3001117084768d4 (patch) | |
| tree | 8189a32c12c3881345fd3081430f1af7f3035860 /Ryujinx.HLE/HOS/Services/Time | |
| parent | f9c859c8ba46113896f0e3be43b590a44d45692a (diff) | |
Reduce requirements for running homebrew (#1053)
* Reduce requirements for running homebrews
This commit change the following behaviours:
- TimeZoneBinary system archive isn't required until guest code call LoadTimeZoneRule.
- Fonts system archives aren't requred until a "pl:u" IPC call is made.
- Custom font support was dropped.
- TimeZoneBinary missing message is now an error and not a warning.
* Address comments
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Time')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs index ab583c1b..70e1dcb4 100644 --- a/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs +++ b/Ryujinx.HLE/HOS/Services/Time/TimeZone/TimeZoneContentManager.cs @@ -21,6 +21,8 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone { private const long TimeZoneBinaryTitleId = 0x010000000000080E; + private readonly string TimeZoneSystemTitleMissingErrorMessage = "TimeZoneBinary system title not found! TimeZone conversions will not work, provide the system archive to fix this error. (See https://github.com/Ryujinx/Ryujinx#requirements for more information)"; + private VirtualFileSystem _virtualFileSystem; private IntegrityCheckLevel _fsIntegrityCheckLevel; private ContentManager _contentManager; @@ -111,7 +113,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone { LocationNameCache = new string[] { "UTC" }; - Logger.PrintWarning(LogClass.ServiceTime, "TimeZoneBinary system title not found! TimeZone conversions will not work, provide the system archive to fix this warning. (See https://github.com/Ryujinx/Ryujinx#requirements for more informations)"); + Logger.PrintError(LogClass.ServiceTime, TimeZoneSystemTitleMissingErrorMessage); } } @@ -186,7 +188,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone timeZoneBinaryStream = null; ncaFile = null; - if (!IsLocationNameValid(locationName)) + if (!HasTimeZoneBinaryTitle() || !IsLocationNameValid(locationName)) { return ResultCode.TimeZoneNotFound; } @@ -215,7 +217,7 @@ namespace Ryujinx.HLE.HOS.Services.Time.TimeZone if (!HasTimeZoneBinaryTitle()) { - throw new InvalidSystemResourceException($"TimeZoneBinary system title not found! Please provide it. (See https://github.com/Ryujinx/Ryujinx#requirements for more informations)"); + throw new InvalidSystemResourceException(TimeZoneSystemTitleMissingErrorMessage); } ResultCode result = GetTimeZoneBinary(locationName, out Stream timeZoneBinaryStream, out LocalStorage ncaFile); |
