Presets

If you want to import settings from another application into CWSRestart, you can use presets. Presets are XML files, with the following structure:

<?xml version="1.0" encoding="utf-8" ?>
<!-- This is a sample preset file that can be used to set settings in CWSRestart -->
<Preset Name="CubeWorldMITM">
  <Server Port="12345" Location="C:\Test\Server.exe" Process="Server" DoNotRedirectOutput="false" BypassSendQuit="false">
    <Checks>
      <Check Name="Internet" Enabled="True" />
      <Check Name="LAN" Enabled="false" />
      <Check Name="Loopback" Enabled="True" />
    </Checks>
  </Server>
  <AdditionalProcesses>
    <Process Process="Notepad" />
    <Process Process="Calc" />
  </AdditionalProcesses>
</Preset>

Only the Preset element with the Name attribute is required, everything else is optional. Presets can either be sent to CWSRestart via the Client.SendPreset(string filename, bool deleteFile) method from CWSProtocol. If you want to import presets manually you can paste them into the presets folder in your CWSRestart directory. Loaded presets will be moved to the imported folder.