feat(log): printStatus amb claudàtor acolorit al davant

This commit is contained in:
JailDesigner committed 2026-05-14 19:02:43 +02:00
1 parent 7a1261202c
commit b81a453b32
7 files changed
+112 -19

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ Surface::Surface(const std::string& file_path) {
palette_[i] = Rendering::OPAQUE_ALPHA | rgb[i];
}
printWithDots("Surface", getFileName(file_path), "[ LOADED ]");
printStatus("Surface", getFileName(file_path), StatusKind::SUCCESS);
}
void Surface::clear(Uint8 color) {
+1 -1
View File
@@ -101,7 +101,7 @@ auto Text::loadTextFile(const std::string& file_path) -> std::shared_ptr<File> {
}
}
printWithDots("Text File", getFileName(file_path), "[ LOADED ]");
printStatus("Text File", getFileName(file_path), StatusKind::SUCCESS);
return tf;
}
+4 -4
View File
@@ -37,13 +37,13 @@ namespace Resource {
throw std::runtime_error("Cache: cannot load animation " + file_path);
}
animations_.emplace_back(AnimationResource{.name = name, .yaml_data = std::move(bytes)});
printWithDots("Animation", getFileName(file_path), "[ LOADED ]");
printStatus("Animation", getFileName(file_path), StatusKind::SUCCESS);
}
void Cache::loadPalette(const std::string& name, const std::string& file_path) {
auto palette = PaletteLoader::loadFromFile(file_path);
palettes_.emplace_back(PaletteResource{.name = name, .palette = palette});
printWithDots("Palette", getFileName(file_path), "[ LOADED ]");
printStatus("Palette", getFileName(file_path), StatusKind::SUCCESS);
}
auto Cache::getSurface(const std::string& name) -> std::shared_ptr<Surface> {
@@ -83,7 +83,7 @@ namespace Resource {
throw std::runtime_error("Cache: Ja::loadMusic failed for " + file_path);
}
musics_.emplace_back(MusicResource{.name = name, .music = std::unique_ptr<Ja::Music, MusicDeleter>(raw)});
printWithDots("Music", getFileName(file_path), "[ LOADED ]");
printStatus("Music", getFileName(file_path), StatusKind::SUCCESS);
}
void Cache::loadSound(const std::string& name, const std::string& file_path) {
@@ -96,7 +96,7 @@ namespace Resource {
throw std::runtime_error("Cache: Ja::loadSound failed for " + file_path);
}
sounds_.emplace_back(SoundResource{.name = name, .sound = std::unique_ptr<Ja::Sound, SoundDeleter>(raw)});
printWithDots("Sound", getFileName(file_path), "[ LOADED ]");
printStatus("Sound", getFileName(file_path), StatusKind::SUCCESS);
}
auto Cache::getMusic(const std::string& name) -> Ja::Music* {