mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
character: add more logging on spritesheet loading
This commit is contained in:
parent
88ea60dd7b
commit
4d5fdcffbb
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@ SYMBOL_EXPORT void LoadSpritesheets(struct Game* game, struct Character* charact
|
||||||
PrintConsole(game, "Loading spritesheets for character %s...", character->name);
|
PrintConsole(game, "Loading spritesheets for character %s...", character->name);
|
||||||
struct Spritesheet* tmp = character->spritesheets;
|
struct Spritesheet* tmp = character->spritesheets;
|
||||||
while (tmp) {
|
while (tmp) {
|
||||||
|
PrintConsole(game, "- %s", tmp->name);
|
||||||
if ((!tmp->bitmap) && (tmp->file)) {
|
if ((!tmp->bitmap) && (tmp->file)) {
|
||||||
char filename[255] = {0};
|
char filename[255] = {0};
|
||||||
snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->file);
|
snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->file);
|
||||||
|
@ -111,6 +112,7 @@ SYMBOL_EXPORT void LoadSpritesheets(struct Game* game, struct Character* charact
|
||||||
}
|
}
|
||||||
for (int i = 0; i < tmp->frameCount; i++) {
|
for (int i = 0; i < tmp->frameCount; i++) {
|
||||||
if ((!tmp->frames[i].bitmap) && (tmp->frames[i].file)) {
|
if ((!tmp->frames[i].bitmap) && (tmp->frames[i].file)) {
|
||||||
|
PrintConsole(game, " - %s", tmp->frames[i].file);
|
||||||
char filename[255] = {0};
|
char filename[255] = {0};
|
||||||
snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->frames[i].file);
|
snprintf(filename, 255, "sprites/%s/%s", character->name, tmp->frames[i].file);
|
||||||
tmp->frames[i].bitmap = al_load_bitmap(GetDataFilePath(game, filename));
|
tmp->frames[i].bitmap = al_load_bitmap(GetDataFilePath(game, filename));
|
||||||
|
|
Loading…
Reference in a new issue