SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Index: Constructor/Operations/ExportAirfields.cs |
| 1 | + | Index: buildAirfield.cpp |
| 2 | =================================================================== | |
| 3 | - | --- Constructor/Operations/ExportAirfields.cs (revision 6378) |
| 3 | + | --- buildAirfield.cpp (revision 6383) |
| 4 | - | +++ Constructor/Operations/ExportAirfields.cs (working copy) |
| 4 | + | +++ buildAirfield.cpp (working copy) |
| 5 | - | @@ -85,7 +85,10 @@ |
| 5 | + | @@ -32,7 +32,10 @@ |
| 6 | throw "Invalid argument count"; | |
| 7 | - | var airfieldDir = appEnv.terrainConfig.AirfieldsDir.AbsoluteByRelativeTcons(); |
| 7 | + | |
| 8 | std::string name = args[0]; | |
| 9 | - | - var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra.cfg.lua"); |
| 9 | + | - std::string luaFileName = args[1]; |
| 10 | - | + var oldAirfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra.cfg.lua"); |
| 10 | + | + int lastNamePart = 1; |
| 11 | - | + var airfieldLua = System.IO.Path.Combine(airfieldDir, airfield.name + ".extra2.cfg.lua"); |
| 11 | + | + for ( ; (lastNamePart < args.size()) && (args[lastNamePart][1] != ':'); lastNamePart++) |
| 12 | - | + System.IO.File.Delete(oldAirfieldLua); |
| 12 | + | + name += args[lastNamePart]; |
| 13 | - | + System.IO.File.Delete(airfieldLua); |
| 13 | + | + std::string luaFileName = args[lastNamePart]; |
| 14 | std::string taxiwaysFileName; | |
| 15 | - | command = new Command(); |
| 15 | + | args.getOptionalString("-in-taxiways", taxiwaysFileName);
|
| 16 | - | command.EdtuCommand = "build-airfield"; |
| 16 | + | std::string taxiwaysFileNameOut; |