# HG changeset patch # User Matti Hamalainen # Date 1709911931 -7200 # Node ID 2698531948352a3e1070c4bdbb82cf82a93e15d1 # Parent e6fa30683fed1fcbeb2139026d93763ae61f1ef3 Add checks for existence of the loc files. diff -r e6fa30683fed -r 269853194835 src/genbcxml.php --- 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 ";