take care of warnings
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user