Fixed windows carsim toggle.
This commit is contained in:
parent
a046aa0c62
commit
f408813e72
|
@ -26,13 +26,17 @@ public class Carla : ModuleRules
|
|||
string ConfigDir = Path.GetFullPath(Path.Combine(CarlaPluginPath, "../../../../Config/"));
|
||||
string CarSimConfigFile = Path.Combine(ConfigDir, "CarSimConfig.ini");
|
||||
string[] text = System.IO.File.ReadAllLines(CarSimConfigFile);
|
||||
Console.WriteLine("----------------------------------------------");
|
||||
foreach (string line in text)
|
||||
{
|
||||
Console.WriteLine(line);
|
||||
if (line == "CarSim ON")
|
||||
if (line.Contains("CarSim ON"))
|
||||
{
|
||||
Console.WriteLine("Enabling carsim-----------");
|
||||
UsingCarSim = true;
|
||||
PublicDefinitions.Add("WITH_CARSIM");
|
||||
PrivateDefinitions.Add("WITH_CARSIM");
|
||||
Definitions.Add("WITH_CARSIM");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import: server
|
|||
@"${CARLA_BUILD_TOOLS_FOLDER}/Import.py" $(ARGS)
|
||||
|
||||
CarlaUE4Editor: LibCarla
|
||||
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --build
|
||||
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --build $(ARGS)
|
||||
|
||||
launch: CarlaUE4Editor
|
||||
@"${CARLA_BUILD_TOOLS_FOLDER}/BuildCarlaUE4.bat" --launch
|
||||
|
|
Loading…
Reference in New Issue