tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.BackupIO.World Class Reference

Responsible for archiving world backups More...

+ Collaboration diagram for Terraria.ModLoader.BackupIO.World:

Static Public Attributes

static readonly string WorldBackupDir = Path.Combine(WorldDir, "Backups")
 
static readonly string WorldDir = Path.Combine(Main.SavePath, "Worlds")
 

Static Private Member Functions

static void WriteArchive (ZipFile zip, bool isCloudSave, string path)
 

Detailed Description

Responsible for archiving world backups

Definition at line 115 of file BackupIO.cs.

Member Function Documentation

◆ WriteArchive()

static void Terraria.ModLoader.BackupIO.World.WriteArchive ( ZipFile  zip,
bool  isCloudSave,
string  path 
)
staticprivate

Definition at line 123 of file BackupIO.cs.

123 {
124 if (FileUtilities.Exists(path, isCloudSave)) zip.AddZipEntry(path, isCloudSave);
125 path = Path.ChangeExtension(path, ".twld");
126 if (FileUtilities.Exists(path, isCloudSave)) zip.AddZipEntry(path, isCloudSave);
127 }

Member Data Documentation

◆ WorldBackupDir

readonly string Terraria.ModLoader.BackupIO.World.WorldBackupDir = Path.Combine(WorldDir, "Backups")
static

Definition at line 118 of file BackupIO.cs.

◆ WorldDir

readonly string Terraria.ModLoader.BackupIO.World.WorldDir = Path.Combine(Main.SavePath, "Worlds")
static

Definition at line 117 of file BackupIO.cs.