From: Holger Schemel Date: Sat, 24 Feb 2024 12:53:20 +0000 (+0100) Subject: replaced glib function calls to g_stat() and g_path_get_basename() X-Git-Tag: 4.4.0.0-test-1~292 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a413902ed6f29c148a778b83f595198341c00fda;p=rocksndiamonds.git replaced glib function calls to g_stat() and g_path_get_basename() --- diff --git a/src/game_bd/bd_caveset.c b/src/game_bd/bd_caveset.c index d04b54c7..36b82a5e 100644 --- a/src/game_bd/bd_caveset.c +++ b/src/game_bd/bd_caveset.c @@ -476,13 +476,13 @@ static void brc_import(guint8 *data) } } -static void caveset_name_set_from_filename(const char *filename) +static void caveset_name_set_from_filename(char *filename) { char *name; char *c; /* make up a caveset name from the filename. */ - name = g_path_get_basename(filename); + name = getBaseName(filename); gd_strcpy(gd_caveset_data->name, name); free(name); @@ -511,7 +511,7 @@ boolean gd_caveset_load_from_file(char *filename) List *new_caveset; struct stat st; - if (g_stat(filename, &st) != 0) + if (stat(filename, &st) != 0) { Warn("cannot stat() file");