feat(log): printStatus amb claudàtor acolorit al davant
This commit is contained in:
1 parent
7a1261202c
commit
b81a453b32
7 files changed
+112
-19
No files matched your search
@@ -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* {
|
||||
|
||||
Reference in new issue
Block a user