Skip to content

Commit 2faaa33

Browse files
committed
log out
1 parent c1fc934 commit 2faaa33

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/CustomTableWriter.cs renamed to CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/CustomTable.cs

File renamed without changes.

CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/EntityUtils.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@ private static void LoadCustomNames(string filepath)
9595
{
9696
_custom = (EntityNameTable)CustomTable.ReadTable(filepath, CustomEndTables.ENTITY_NAMES);
9797
if (_custom == null) _custom = new EntityNameTable();
98+
Console.WriteLine("Loaded " + _custom.names.Count + " custom entity names!");
9899
}
99100

100101
/* Write non-vanilla entity names to the CommandsPAK */
101102
private static void SaveCustomNames(string filepath)
102103
{
103104
CustomTable.WriteTable(filepath, CustomEndTables.ENTITY_NAMES, _custom);
105+
Console.WriteLine("Saved " + _custom.names.Count + " custom entity names!");
104106
}
105107

106108
/* Applies all default parameter data to a Function entity (DESTRUCTIVE!) */

CathodeLib/Scripts/CATHODE/CommandsPAK/Helpers/ShortGuidUtils.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using CATHODE.Scripting.Internal;
22
using CathodeLib;
33
using System;
4+
using System.Diagnostics;
45
using System.IO;
56
using System.Security.Cryptography;
67
using System.Text;
@@ -118,12 +119,14 @@ private static void LoadCustomNames(string filepath)
118119
{
119120
_custom = (GuidNameTable)CustomTable.ReadTable(filepath, CustomEndTables.SHORT_GUIDS);
120121
if (_custom == null) _custom = new GuidNameTable();
122+
Console.WriteLine("Loaded " + _custom.cache.Count + " custom ShortGuids!");
121123
}
122124

123125
/* Write non-vanilla entity names to the CommandsPAK */
124126
private static void SaveCustomNames(string filepath)
125127
{
126128
CustomTable.WriteTable(filepath, CustomEndTables.SHORT_GUIDS, _custom);
129+
Console.WriteLine("Saved " + _custom.cache.Count + " custom ShortGuids!");
127130
}
128131
}
129132
}

0 commit comments

Comments
 (0)