@@ -9,6 +9,8 @@ class Tags {
99public:
1010 // Constructor to initialize the tag-to-string and string-to-tag maps
1111 Tags () {
12+ log::debug (" Initializing Tags..." );
13+
1214 // Populate the maps directly (no hashing needed)
1315 m_tagMap = {
1416 {" gd-CreatorLayer" , 0 },
@@ -59,6 +61,8 @@ class Tags {
5961 {" uproxide.textures-TextureWorkshopLayer" , 45 }
6062 };
6163
64+ log::debug (" Tag map populated with {} entries." , m_tagMap.size ());
65+
6266 // Populate the string-to-tag map
6367 m_stringMap = {
6468 {0 , " gd-CreatorLayer" },
@@ -108,13 +112,16 @@ class Tags {
108112 {44 , " thesillydoggo.newgrounds_explorer-NewgroundsBrowserLayer" },
109113 {45 , " uproxide.textures-TextureWorkshopLayer" }
110114 };
115+
116+ log::debug (" String map populated with {} entries." , m_stringMap.size ());
111117 }
112118
113119 // Convert a string to a corresponding tag (integer)
114120 int getTagFromString (const std::string& name) {
115121 log::debug (" Getting tag from string: {}" , name);
116122 auto it = m_tagMap.find (name);
117123 if (it != m_tagMap.end ()) {
124+ log::debug (" Found tag: {}" , it->second );
118125 return it->second ;
119126 }
120127 log::error (" Unknown tag: {}" , name);
@@ -126,6 +133,7 @@ class Tags {
126133 log::debug (" Getting string from tag: {}" , tag);
127134 auto it = m_stringMap.find (tag);
128135 if (it != m_stringMap.end ()) {
136+ log::debug (" Found string: {}" , it->second );
129137 return it->second ;
130138 }
131139 log::error (" Unknown tag: {}" , tag);
0 commit comments