rewrite config, options, work with path

This commit is contained in:
Ondřej Novák 2025-01-31 12:46:48 +01:00
parent 4a0c7d4fd0
commit 77f1700902
30 changed files with 466 additions and 532 deletions

View file

@ -374,11 +374,13 @@ char *get_next_title(signed char control,char *filename)
switch(control)
{
case 1:
path = local_strdup(build_pathname(2, gpathtable[SR_MAP],filename));
path = build_pathname(2, gpathtable[SR_MAP],filename);
path = local_strdup(path);
titles=enc_open(path);
if (titles==NULL)
{
const char *path2 = local_strdup(build_pathname(2, gpathtable[SR_DATA],filename));
const char *path2 = build_pathname(2, gpathtable[SR_DATA],filename);
path2 = local_strdup(path2);
titles=enc_open(path2);
if (titles==NULL)
{