Mercurial > hg > batmud > maputils
changeset 2746:269853194835
Add checks for existence of the loc files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Mar 2024 17:32:11 +0200 |
parents | e6fa30683fed |
children | 1df0aabfba49 |
files | src/genbcxml.php |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/genbcxml.php Fri Mar 08 17:12:35 2024 +0200 +++ b/src/genbcxml.php Fri Mar 08 17:32:11 2024 +0200 @@ -23,6 +23,16 @@ require $cfg["worldConfig"]; +foreach ($continentList as $cname => $cdata) +{ + if ($cdata[CTI_HAS_MAP] && $cdata[CTI_REG_CONT]) + { + $filename = $cfg["pathLocFiles"].$cname.".loc"; + if (!file_exists($filename)) + die("Loc file '".$filename."' not found!\n"); + } +} + // Build and run command $tmp = escapeshellcmd($binMkLoc)." -v -o ".escapeshellarg($outFilename)." -G xml ";