eclipse plugin: pass the data dir and the config dir...

...parameters to the game preprocessor
This commit is contained in:
Timotei Dolean 2010-07-24 16:27:46 +00:00
parent 58c114b070
commit 2fb54dd298

View file

@ -39,6 +39,12 @@ public class PreprocessorUtils
try{
List<String> arguments = new ArrayList<String>();
arguments.add("--config-dir");
arguments.add(Preferences.getString(Constants.P_WESNOTH_USER_DIR));
arguments.add("--data-dir");
arguments.add(Preferences.getString(Constants.P_WESNOTH_WORKING_DIR));
if (defines != null && !defines.isEmpty())
{
String argument = "-p=";