Updated ResourceMgr to develop changes

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

View File

@ -186,7 +186,7 @@ namespace Ship {
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);
// File NOT already loaded...?
auto fileCacheFind = FileCache.find(FilePath);

View File

@ -32,7 +32,7 @@ namespace Ship
uint32_t GetGameVersion();
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<Ship::Resource> GetCachedFile(const char* FilePath) const;
std::shared_ptr<Resource> LoadResource(const char* FilePath);

View File

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