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

◆ KillMeForGood()

void Terraria.Player.KillMeForGood ( )
inline

Definition at line 37599 of file Player.cs.

37600 {
37601 PlayerFileData activePlayerFileData = Main.ActivePlayerFileData;
37602 if (!activePlayerFileData.ServerSideCharacter)
37603 {
37604 bool isCloudSave = activePlayerFileData.IsCloudSave;
37605 if (FileUtilities.Exists(Main.playerPathName, isCloudSave))
37606 {
37607 FileUtilities.Delete(Main.playerPathName, isCloudSave);
37608 }
37609 if (FileUtilities.Exists(Main.playerPathName + ".bak", isCloudSave))
37610 {
37611 FileUtilities.Delete(Main.playerPathName + ".bak", isCloudSave);
37612 }
37613 string moddedPlayerPathName = Path.ChangeExtension(Main.playerPathName, ".tplr");
37615 {
37617 }
37619 {
37621 }
37622 Main.ActivePlayerFileData = new PlayerFileData();
37623 }
37624 }
static bool Exists(string path, bool cloud)
static void Delete(string path, bool cloud, bool forceDeleteFile=false)

References Terraria.Main.ActivePlayerFileData, Terraria.Utilities.FileUtilities.Delete(), Terraria.Utilities.FileUtilities.Exists(), and Terraria.Main.playerPathName.

Referenced by Terraria.Player.KillMe().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: