mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Bypass optimised existing check in SkinManager
(due to custom hashing function)
This commit is contained in:
@ -309,6 +309,12 @@ namespace osu.Game.Database
|
||||
Logger.Log($"{prefix} {message}", LoggingTarget.Database);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether the implementation overrides <see cref="ComputeHash"/> with a custom implementation.
|
||||
/// Custom has implementations must bypass the early exit in the import flow (see <see cref="computeHashFast"/> usage).
|
||||
/// </summary>
|
||||
protected virtual bool HasCustomHashFunction => false;
|
||||
|
||||
/// <summary>
|
||||
/// Create a SHA-2 hash from the provided archive based on file content of all files matching <see cref="HashableFileTypes"/>.
|
||||
/// </summary>
|
||||
@ -365,7 +371,7 @@ namespace osu.Game.Database
|
||||
|
||||
delayEvents();
|
||||
|
||||
if (archive != null)
|
||||
if (archive != null && !HasCustomHashFunction)
|
||||
{
|
||||
// fast bail to improve large import performance.
|
||||
item.Hash = computeHashFast(archive);
|
||||
|
Reference in New Issue
Block a user