@@ -147,14 +147,14 @@ public void ExportMod(string templateName, bool silentPackaging = false)
147147 // export of Steam version
148148 if ( Directory . Exists ( template . SteamPath ) )
149149 {
150- // vygeneruje bat soubor s příkazy pro export
150+ // generate bat
151151 pd . UpdateStatus ( "dialog_PackagingSteam" ) ;
152152 Assembly assembly = Assembly . GetExecutingAssembly ( ) ;
153153 StreamReader reader = new StreamReader ( assembly . GetManifestResourceStream ( "AdvancedETS2Packer.templateExportBat.txt" ) ) ;
154154 string bat = reader . ReadToEnd ( ) ;
155- bat = bat . Replace ( "%cache%" , Environment . CurrentDirectory + "\\ _cache\\ data \\ " ) ;
156- bat = bat . Replace ( "%7z %" , Properties . Settings . Default . SevenZip_path ) ;
157- bat = bat . Replace ( "%export%" , template . SteamPath + "\\ " + template . ZipName + "_s.zip " ) ;
155+ bat = bat . Replace ( "%cache%" , Environment . CurrentDirectory + "\\ _cache\\ " ) ;
156+ bat = bat . Replace ( "%packer %" , Properties . Settings . Default . SCSArchiverPath ) ;
157+ bat = bat . Replace ( "%export%" , template . SteamPath + "\\ " + template . ZipName + "_s.scs " ) ;
158158 bat = bat . Replace ( "%modname%" , template . Name ) ;
159159 bat = bat . Replace ( "%steam%" , "" ) ;
160160 bat = bat . Replace ( "%logpath%" , Environment . CurrentDirectory + "\\ log_Steam.txt" ) ;
@@ -187,9 +187,9 @@ public void ExportMod(string templateName, bool silentPackaging = false)
187187 Assembly assembly = Assembly . GetExecutingAssembly ( ) ;
188188 StreamReader reader = new StreamReader ( assembly . GetManifestResourceStream ( "AdvancedETS2Packer.templateExportBat.txt" ) ) ;
189189 string bat = reader . ReadToEnd ( ) ;
190- bat = bat . Replace ( "%cache%" , Environment . CurrentDirectory + "\\ _cache\\ data \\ " ) ;
191- bat = bat . Replace ( "%7z %" , Properties . Settings . Default . SevenZip_path ) ;
192- bat = bat . Replace ( "%export%" , template . NonSteamPath + "\\ " + template . ZipName + ".zip " ) ;
190+ bat = bat . Replace ( "%cache%" , Environment . CurrentDirectory + "\\ _cache\\ " ) ;
191+ bat = bat . Replace ( "%packer %" , Properties . Settings . Default . SCSArchiverPath ) ;
192+ bat = bat . Replace ( "%export%" , template . NonSteamPath + "\\ " + template . ZipName + ".scs " ) ;
193193 bat = bat . Replace ( "%modname%" , template . Name ) ;
194194 bat = bat . Replace ( "%steam%" , "non " ) ;
195195 bat = bat . Replace ( "%logpath%" , Environment . CurrentDirectory + "\\ log_nonSteam.txt" ) ;
@@ -210,7 +210,7 @@ public void ExportMod(string templateName, bool silentPackaging = false)
210210
211211 // close "Packing..." dialog
212212 if ( pd . Visible ) {
213- pd . Invoke ( ( MethodInvoker ) delegate
213+ pd . Invoke ( ( System . Windows . Forms . MethodInvoker ) delegate
214214 {
215215 pd . Close ( ) ;
216216 } ) ;
0 commit comments