Skip to content

Commit 6982e3e

Browse files
committed
bring back todos
1 parent 9182140 commit 6982e3e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/resource/archive/ArchiveManager.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ std::shared_ptr<File> ArchiveManager::LoadFile(uint64_t hash, std::shared_ptr<Re
6060
return file;
6161
}
6262

63+
//TODO remove
6364
std::shared_ptr<File> ArchiveManager::LoadFileRaw(const std::string& filePath) {
6465
if (filePath == "") {
6566
return nullptr;
@@ -78,6 +79,7 @@ std::shared_ptr<File> ArchiveManager::LoadFileRaw(uint64_t hash) {
7879
file->Parent = archive;
7980
return file;
8081
}
82+
//ENDTODO
8183

8284
bool ArchiveManager::HasFile(const std::string& filePath) {
8385
return HasFile(CRC64(filePath.c_str()));

src/resource/archive/ArchiveManager.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ class ArchiveManager {
2222
bool IsArchiveLoaded();
2323
std::shared_ptr<File> LoadFile(const std::string& filePath, std::shared_ptr<ResourceInitData> initData = nullptr);
2424
std::shared_ptr<File> LoadFile(uint64_t hash, std::shared_ptr<ResourceInitData> initData = nullptr);
25+
//TODO remove
2526
std::shared_ptr<File> LoadFileRaw(const std::string& filePath);
2627
std::shared_ptr<File> LoadFileRaw(uint64_t hash);
28+
//ENDTODO
2729
bool HasFile(const std::string& filePath);
2830
bool HasFile(uint64_t hash);
2931
std::shared_ptr<std::vector<std::string>> ListFiles(const std::string& filter);

src/window/gui/Gui.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ void Gui::ImGuiBackendInit() {
230230
}
231231

232232
void Gui::LoadTextureFromRawImage(const std::string& name, const std::string& path) {
233+
// GuiTexture (put in Gui)
233234
const auto res = Context::GetInstance()->GetResourceManager()->GetArchiveManager()->LoadFileRaw(path);
234235

235236
if (!res) {

0 commit comments

Comments
 (0)