Updated ResourceMgr to develop changes
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user