From 2f2f04c76bca1f4bfd31142ee94f2be0254e00f9 Mon Sep 17 00:00:00 2001
From: Misa <infoteddyatgitgud@cock.li>
Date: Wed, 3 Jun 2020 17:39:21 -0700
Subject: [PATCH] Convert custom quicksave loading attempt to TinyXML2

Seems a bit wasteful to do the whole "parse the XML document thing"
instead of a simple file check. It doesn't even fail if the XML document
is invalid, but whatever.
---
 desktop_version/src/Input.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp
index 536770f3..216c953d 100644
--- a/desktop_version/src/Input.cpp
+++ b/desktop_version/src/Input.cpp
@@ -4,6 +4,7 @@
 #include "MakeAndPlay.h"
 
 #include "tinyxml.h"
+#include "tinyxml2.h"
 
 #include "FileSystemUtils.h"
 
@@ -228,8 +229,8 @@ void menuactionpress()
             game.customlevelfilename=ed.ListOfMetaData[game.playcustomlevel].filename;
 
             std::string name = "saves/" + ed.ListOfMetaData[game.playcustomlevel].filename.substr(7) + ".vvv";
-            TiXmlDocument doc;
-            if (!FILESYSTEM_loadTiXmlDocument(name.c_str(), &doc)){
+            tinyxml2::XMLDocument doc;
+            if (!FILESYSTEM_loadTiXml2Document(name.c_str(), doc)){
                 game.mainmenu = 22;
                 graphics.fademode = 2;
             }else{