setting the base path

This commit is contained in:
devZoGok
2023-09-03 09:22:08 +03:00
parent 80dc5503be
commit 0854354151
+3
View File
@@ -217,6 +217,9 @@ namespace battleship{
listbox = new Listbox(pos, size, lines, maxDisplay, fontPath, closable);
break;
case UNITS:{
string path = GameManager::getSingleton()->getPath();
SOL_LUA_STATE.script("PATH = \"" + path + "\";");
SOL_LUA_STATE.script_file(path + "Scripts/unitData.lua");
bool vehicles = guiTable["vehicles"];
int numUnits = SOL_LUA_STATE["numUnits"];