Commit aa1091d 1 parent be3a87e commit aa1091d Copy full SHA for aa1091d
File tree 4 files changed +25
-23
lines changed
4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -62,27 +62,27 @@ std::shared_ptr<File> ArchiveManager::LoadFile(uint64_t hash) {
62
62
return archive->LoadFile (hash);
63
63
}
64
64
65
- std::shared_ptr<File> ArchiveManager::LoadFileRaw (const std::string& filePath) {
66
- if (filePath == " " ) {
67
- return nullptr ;
68
- }
69
-
70
- const auto archive = mFileToArchive [CRC64 (filePath.c_str ())];
71
- if (archive == nullptr ) {
72
- return nullptr ;
73
- }
74
-
75
- return archive->LoadFileRaw (filePath);
76
- }
77
-
78
- std::shared_ptr<File> ArchiveManager::LoadFileRaw (uint64_t hash) {
79
- const auto archive = mFileToArchive [hash];
80
- if (archive == nullptr ) {
81
- return nullptr ;
82
- }
83
-
84
- return archive->LoadFileRaw (hash);
85
- }
65
+ // std::shared_ptr<File> ArchiveManager::LoadFileRaw(const std::string& filePath) {
66
+ // if (filePath == "") {
67
+ // return nullptr;
68
+ // }
69
+
70
+ // const auto archive = mFileToArchive[CRC64(filePath.c_str())];
71
+ // if (archive == nullptr) {
72
+ // return nullptr;
73
+ // }
74
+
75
+ // return archive->LoadFileRaw(filePath);
76
+ // }
77
+
78
+ // std::shared_ptr<File> ArchiveManager::LoadFileRaw(uint64_t hash) {
79
+ // const auto archive = mFileToArchive[hash];
80
+ // if (archive == nullptr) {
81
+ // return nullptr;
82
+ // }
83
+
84
+ // return archive->LoadFileRaw(hash);
85
+ // }
86
86
87
87
bool ArchiveManager::HasFile (const std::string& filePath) {
88
88
return HasFile (CRC64 (filePath.c_str ()));
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ class ArchiveManager {
21
21
bool IsArchiveLoaded ();
22
22
std::shared_ptr<File> LoadFile (const std::string& filePath);
23
23
std::shared_ptr<File> LoadFile (uint64_t hash);
24
- std::shared_ptr<File> LoadFileRaw (const std::string& filePath);
25
- std::shared_ptr<File> LoadFileRaw (uint64_t hash);
24
+ // std::shared_ptr<File> LoadFileRaw(const std::string& filePath);
25
+ // std::shared_ptr<File> LoadFileRaw(uint64_t hash);
26
26
bool HasFile (const std::string& filePath);
27
27
bool HasFile (uint64_t hash);
28
28
std::shared_ptr<std::vector<std::string>> ListFiles (const std::string& filter);
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ GameOverlay::~GameOverlay() {
16
16
}
17
17
18
18
void GameOverlay::LoadFont (const std::string& name, const std::string& path, float fontSize) {
19
+ // font resource type in gui
19
20
ImGuiIO& io = ImGui::GetIO ();
20
21
std::shared_ptr<File> font = Context::GetInstance ()->GetResourceManager ()->GetArchiveManager ()->LoadFileRaw (path);
21
22
if (font->IsLoaded ) {
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ void Gui::ImGuiBackendInit() {
230
230
}
231
231
232
232
void Gui::LoadTextureFromRawImage (const std::string& name, const std::string& path) {
233
+ // GuiTexture (put in Gui)
233
234
const auto res = Context::GetInstance ()->GetResourceManager ()->GetArchiveManager ()->LoadFileRaw (path);
234
235
235
236
if (!res) {
You can’t perform that action at this time.
0 commit comments