mirror of
https://github.com/riperiperi/FSOMonoGame.git
synced 2025-01-22 16:21:46 -05:00
Merge pull request #2303 from azchohfi/reloadAssetLinkFix
Reload asset link fix
This commit is contained in:
commit
46ee45ddd1
1 changed files with 5 additions and 0 deletions
|
@ -563,6 +563,11 @@ namespace Microsoft.Xna.Framework.Content
|
|||
{
|
||||
foreach (var asset in LoadedAssets)
|
||||
{
|
||||
// This never executes as asset.Key is never null. This just forces the
|
||||
// linker to include the ReloadAsset function when AOT compiled.
|
||||
if (asset.Key == null)
|
||||
ReloadAsset(asset.Key, Convert.ChangeType(asset.Value, asset.Value.GetType()));
|
||||
|
||||
#if WINDOWS_STOREAPP
|
||||
var methodInfo = typeof(ContentManager).GetType().GetTypeInfo().GetDeclaredMethod("ReloadAsset");
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue