From 4ef940b1f388f0aa610ef07aea68e88b751f1a95 Mon Sep 17 00:00:00 2001 From: parax0 Date: Wed, 29 Jul 2015 10:39:20 -0400 Subject: [PATCH] Removed wiki table generation code (oops) --- Resource/factory/CTemplateLoader.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Resource/factory/CTemplateLoader.cpp b/Resource/factory/CTemplateLoader.cpp index 8fb4c962..32521a71 100644 --- a/Resource/factory/CTemplateLoader.cpp +++ b/Resource/factory/CTemplateLoader.cpp @@ -395,7 +395,6 @@ bool CTemplateLoader::ParseAttribExtra(tinyxml2::XMLElement *pElem, CAttribTempl void CTemplateLoader::LoadMasterTemplate(tinyxml2::XMLDocument *pDoc) { tinyxml2::XMLNode *pNode = pDoc->FirstChild()->NextSibling()->FirstChild(); - FILE *f = fopen("a.txt", "w"); while (pNode) { @@ -463,13 +462,6 @@ void CTemplateLoader::LoadMasterTemplate(tinyxml2::XMLDocument *pDoc) { mpMaster->mTemplates[ID] = pTemp; Cat.AddTemplate(pTemp); - - std::string ID = "| " + CFourCC(pTemp->ObjectID()).ToString() + "\n"; - std::string Name = "| [[" + pTemp->TemplateName() + " (Metroid Prime 2)|" + pTemp->TemplateName() + "]]\n"; - fprintf(f, ID.c_str()); - fprintf(f, Name.c_str()); - fprintf(f, "| \n"); - fprintf(f, "|-\n"); } } @@ -500,12 +492,6 @@ void CTemplateLoader::LoadMasterTemplate(tinyxml2::XMLDocument *pDoc) std::string StateName = pState->Attribute("name"); mpMaster->mStates[StateID] = StateName; pState = pState->NextSiblingElement("state"); - - std::string ID = "| " + StrID + "\n"; - std::string Name = "| " + StateName + "\n"; - fprintf(f, ID.c_str()); - fprintf(f, Name.c_str()); - fprintf(f, "|-\n"); } } @@ -527,19 +513,11 @@ void CTemplateLoader::LoadMasterTemplate(tinyxml2::XMLDocument *pDoc) std::string MessageName = pMessage->Attribute("name"); mpMaster->mMessages[MessageID] = MessageName; pMessage = pMessage->NextSiblingElement("message"); - - std::string ID = "| " + StrID + "\n"; - std::string Name = "| " + MessageName + "\n"; - fprintf(f, ID.c_str()); - fprintf(f, Name.c_str()); - fprintf(f, "|-\n"); } } pNode = pNode->NextSibling(); } - - fclose(f); } void CTemplateLoader::LoadPropertyList(tinyxml2::XMLDocument *pDoc, const std::string& ListName)