Updated ResourceMgr to develop changes

This commit is contained in:
Kevin Alexis Contreras 2022-06-13 10:17:48 -05:00
commit 9e851ebd93
3 changed files with 5 additions and 5 deletions

View file

@ -186,7 +186,7 @@ namespace Ship {
gameVersion = newGameVersion; gameVersion = newGameVersion;
} }
std::shared_ptr<File> ResourceMgr::LoadFileAsync(std::string FilePath) { std::shared_ptr<File> ResourceMgr::LoadFileAsync(const std::string& FilePath) {
const std::lock_guard<std::mutex> Lock(FileLoadMutex); const std::lock_guard<std::mutex> Lock(FileLoadMutex);
// File NOT already loaded...? // File NOT already loaded...?
auto fileCacheFind = FileCache.find(FilePath); auto fileCacheFind = FileCache.find(FilePath);

View file

@ -32,7 +32,7 @@ namespace Ship
uint32_t GetGameVersion(); uint32_t GetGameVersion();
void SetGameVersion(uint32_t newGameVersion); void SetGameVersion(uint32_t newGameVersion);
std::shared_ptr<File> LoadFileAsync(std::string FilePath); std::shared_ptr<File> LoadFileAsync(const std::string& FilePath);
std::shared_ptr<File> LoadFile(const std::string& FilePath); std::shared_ptr<File> LoadFile(const std::string& FilePath);
std::shared_ptr<Ship::Resource> GetCachedFile(const char* FilePath) const; std::shared_ptr<Ship::Resource> GetCachedFile(const char* FilePath) const;
std::shared_ptr<Resource> LoadResource(const char* FilePath); std::shared_ptr<Resource> LoadResource(const char* FilePath);

View file

@ -3768,12 +3768,12 @@
<ItemGroup> <ItemGroup>
<Image Include="SHIPOFHARKINIAN.ico" /> <Image Include="SHIPOFHARKINIAN.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="include\macro.inc" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="Resource.rc"> <ResourceCompile Include="Resource.rc">
<Filter>Resource Files</Filter> <Filter>Resource Files</Filter>
</ResourceCompile> </ResourceCompile>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="include\macro.inc" />
</ItemGroup>
</Project> </Project>