@@ -45,7 +45,8 @@ bool ResourceManager::DidLoadSuccessfully() {
45
45
return mArchiveManager != nullptr && mArchiveManager ->IsArchiveLoaded ();
46
46
}
47
47
48
- std::shared_ptr<File> ResourceManager::LoadFileProcess (const std::string& filePath, std::shared_ptr<ResourceInitData> initData) {
48
+ std::shared_ptr<File> ResourceManager::LoadFileProcess (const std::string& filePath,
49
+ std::shared_ptr<ResourceInitData> initData) {
49
50
auto file = mArchiveManager ->LoadFile (filePath, initData);
50
51
if (file != nullptr ) {
51
52
SPDLOG_TRACE (" Loaded File {} on ResourceManager" , file->InitData ->Path );
@@ -55,7 +56,8 @@ std::shared_ptr<File> ResourceManager::LoadFileProcess(const std::string& filePa
55
56
return file;
56
57
}
57
58
58
- std::shared_ptr<IResource> ResourceManager::LoadResourceProcess (const std::string& filePath, bool loadExact, std::shared_ptr<ResourceInitData> initData) {
59
+ std::shared_ptr<IResource> ResourceManager::LoadResourceProcess (const std::string& filePath, bool loadExact,
60
+ std::shared_ptr<ResourceInitData> initData) {
59
61
// Check for and remove the OTR signature
60
62
if (OtrSignatureCheck (filePath.c_str ())) {
61
63
const auto newFilePath = filePath.substr (7 );
@@ -136,8 +138,9 @@ std::shared_ptr<IResource> ResourceManager::LoadResourceProcess(const std::strin
136
138
return resource;
137
139
}
138
140
139
- std::shared_future<std::shared_ptr<IResource>> ResourceManager::LoadResourceAsync (const std::string& filePath,
140
- bool loadExact, bool priority, std::shared_ptr<ResourceInitData> initData) {
141
+ std::shared_future<std::shared_ptr<IResource>>
142
+ ResourceManager::LoadResourceAsync (const std::string& filePath, bool loadExact, bool priority,
143
+ std::shared_ptr<ResourceInitData> initData) {
141
144
// Check for and remove the OTR signature
142
145
if (OtrSignatureCheck (filePath.c_str ())) {
143
146
auto newFilePath = filePath.substr (7 );
@@ -161,7 +164,8 @@ std::shared_future<std::shared_ptr<IResource>> ResourceManager::LoadResourceAsyn
161
164
}
162
165
}
163
166
164
- std::shared_ptr<IResource> ResourceManager::LoadResource (const std::string& filePath, bool loadExact, std::shared_ptr<ResourceInitData> initData) {
167
+ std::shared_ptr<IResource> ResourceManager::LoadResource (const std::string& filePath, bool loadExact,
168
+ std::shared_ptr<ResourceInitData> initData) {
165
169
auto resource = LoadResourceAsync (filePath, loadExact, true , initData).get ();
166
170
if (resource == nullptr ) {
167
171
SPDLOG_ERROR (" Failed to load resource file at path {}" , filePath);
0 commit comments