mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-24 08:04:55 -04:00
rewrite config, options, work with path
This commit is contained in:
parent
4a0c7d4fd0
commit
77f1700902
30 changed files with 466 additions and 532 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue