move bits around in MapConverter
This commit is contained in:
@@ -9,15 +9,31 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using OpenRA.FileFormats;
|
||||
using OpenRA.FileFormats;
|
||||
using OpenRA;
|
||||
using System.IO;
|
||||
|
||||
namespace MapConverter
|
||||
{
|
||||
class MainClass
|
||||
{
|
||||
public static void Main (string[] args)
|
||||
{
|
||||
new MapConverter(args);
|
||||
{
|
||||
if (args.Length != 3)
|
||||
{
|
||||
Console.WriteLine("usage: MapConverter mod[,mod]* input-map.ini output-map.yaml");
|
||||
return;
|
||||
}
|
||||
|
||||
var mods = args[0].Split(',');
|
||||
var inputFile = args[1];
|
||||
var outputPath = args[2];
|
||||
|
||||
Game.InitializeEngineWithMods(mods);
|
||||
var map = MapConverter.Import(inputFile);
|
||||
|
||||
Directory.CreateDirectory(outputPath);
|
||||
map.Save(outputPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user