Merge branch 'Menotdan-linux-plugin-fix'

This commit is contained in:
Wojtek Figat
2024-02-27 17:15:21 +01:00
2 changed files with 7 additions and 5 deletions

View File

@@ -198,6 +198,12 @@ void ContentService::Dispose()
Graphics::DisposeDevice();
}
IAssetFactory::Collection& IAssetFactory::Get()
{
static Collection Factories(1024);
return Factories;
}
AssetsCache* Content::GetRegistry()
{
return &Cache;

View File

@@ -20,11 +20,7 @@ public:
/// <summary>
/// Gets the all registered assets factories. Key is asset typename, value is the factory object.
/// </summary>
static Collection& Get()
{
static Collection Factories(1024);
return Factories;
}
static Collection& Get();
public:
/// <summary>