mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Updated ResourceMgr to develop changes
This commit is contained in:
parent
aa66e01740
commit
9e851ebd93
3 changed files with 5 additions and 5 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue