fix asset key normalization for 64-bit hack (#767)
This commit is contained in:
parent
3fa0433c98
commit
60b563267e
|
@ -57,6 +57,8 @@ namespace StardewModdingAPI.Framework.Content
|
||||||
IReflectedMethod method = reflection.GetMethod(typeof(TitleContainer), "GetCleanPath");
|
IReflectedMethod method = reflection.GetMethod(typeof(TitleContainer), "GetCleanPath");
|
||||||
this.NormalizeAssetNameForPlatform = path => method.Invoke<string>(path);
|
this.NormalizeAssetNameForPlatform = path => method.Invoke<string>(path);
|
||||||
}
|
}
|
||||||
|
else if (EarlyConstants.IsWindows64BitHack)
|
||||||
|
this.NormalizeAssetNameForPlatform = PathUtilities.NormalizePath;
|
||||||
else
|
else
|
||||||
this.NormalizeAssetNameForPlatform = key => key.Replace('\\', '/'); // based on MonoGame's ContentManager.Load<T> logic
|
this.NormalizeAssetNameForPlatform = key => key.Replace('\\', '/'); // based on MonoGame's ContentManager.Load<T> logic
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue