take care of warnings

This commit is contained in:
veclavtalica
2025-03-01 01:06:32 +03:00
parent e47b761a2c
commit 5911cbd980
5 changed files with 6 additions and 11 deletions

View File

@ -181,13 +181,10 @@ bool file_exists(const char *path) {
void textures_dump_atlases(void) {
PHYSFS_mkdir("/dump");
/* TODO: png instead of bmp */
const char string_template[] = "/dump/atlas%zd.bmp";
size_t i = 0;
for (; i < arrlenu(ctx.texture_cache.atlas_surfaces); ++i) {
char *buf = NULL;
SDL_asprintf(&buf, string_template, i);
SDL_asprintf(&buf, "/dump/atlas%zd.bmp", (ssize_t)i);
SDL_RWops *handle = PHYSFSRWOPS_openWrite(buf);