Check if RMXP script pack path was read from Game.ini

This commit is contained in:
Jonas Kulla 2013-09-01 16:36:11 +02:00
parent ec90458925
commit 88041a2395
2 changed files with 15 additions and 3 deletions

View file

@ -166,6 +166,12 @@ static void runRMXPScripts()
{
const QByteArray &scriptPack = gState->rtData().config.game.scripts;
if (scriptPack.isEmpty())
{
showMsg("No game scripts specified (missing Game.ini?)");
return;
}
if (!gState->fileSystem().exists(scriptPack.constData()))
{
showMsg("Unable to open '" + scriptPack + "'");