This commit is contained in:
Frank Harris 2026-06-07 19:15:52 -05:00
parent 8f5ad2984a
commit 6cf58ae408
3 changed files with 17 additions and 3 deletions

View file

@ -23,8 +23,9 @@
use warnings;
use strict;
use Cwd; # Fast way to get the current directory
use lib getcwd();
use Cwd qw(getcwd); # Fast way to get the current directory
use FindBin qw($Bin);
use lib $Bin;
use Frontier::Daemon::OGP::Forking; # Forking XML-RPC server
use File::Copy; # Simple file copy functions
use File::Copy::Recursive

View file

@ -29,6 +29,19 @@ if not exist "%WD%OGP\ogp_agent.pl" (
exit /b 1
)
if not exist "%WD%OGP\Cfg\Config.pm" (
echo Creating default Cfg\Config.pm from Config.pm.default...
copy /Y "%WD%OGP\Cfg\Config.pm.default" "%WD%OGP\Cfg\Config.pm" >nul
)
if not exist "%WD%OGP\Cfg\Preferences.pm" (
echo Creating default Cfg\Preferences.pm from Preferences.pm.default...
copy /Y "%WD%OGP\Cfg\Preferences.pm.default" "%WD%OGP\Cfg\Preferences.pm" >nul
)
if not exist "%WD%OGP\Cfg\bash_prefs.cfg" (
echo Creating default Cfg\bash_prefs.cfg from bash_prefs.cfg.default...
copy /Y "%WD%OGP\Cfg\bash_prefs.cfg.default" "%WD%OGP\Cfg\bash_prefs.cfg" >nul
)
REM Verify gameserver user exists
net user %AGENT_USER%
if errorlevel 1 (