TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ PortCommonFilesToStagingBranches()

static void Terraria.Program.PortCommonFilesToStagingBranches ( string savePath)
inlinestaticprivate

Definition at line 347 of file Program.cs.

348 {
350 {
351 return;
352 }
353 string releasePath = Path.Combine(savePath, "tModLoader");
354 string newPath = Path.Combine(savePath, SaveFolderName);
355 if (Directory.Exists(releasePath) && !Directory.Exists(newPath))
356 {
357 Directory.CreateDirectory(newPath);
358 Logging.tML.Info((object)"Cloning common files from Stable to preview and dev.");
359 if (File.Exists(Path.Combine(releasePath, "config.json")))
360 {
361 File.Copy(Path.Combine(releasePath, "config.json"), Path.Combine(newPath, "config.json"));
362 }
363 if (File.Exists(Path.Combine(releasePath, "input profiles.json")))
364 {
365 File.Copy(Path.Combine(releasePath, "input profiles.json"), Path.Combine(newPath, "input profiles.json"));
366 }
367 }
368 }
static string SaveFolderName
Definition Program.cs:78

References Terraria.ModLoader.BuildInfo.IsStable, Terraria.Program.SaveFolderName, and Terraria.ModLoader.Logging.tML.

Referenced by Terraria.Program.PortFilesMaster().

+ Here is the caller graph for this function: