From a413902ed6f29c148a778b83f595198341c00fda Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 24 Feb 2024 13:53:20 +0100 Subject: [PATCH] replaced glib function calls to g_stat() and g_path_get_basename() --- src/game_bd/bd_caveset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.34.1