From cf269641fc4d91f29e37859ee2aeb9e724a1ecc1 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sun, 1 Jun 2014 12:57:20 -0500 Subject: [PATCH] Renamed XMLReader.h/.cpp to Gamelist.h/.cpp. Since it does more than, yknow, read XML. --- CMakeLists.txt | 4 ++-- src/{XMLReader.cpp => Gamelist.cpp} | 2 +- src/Gamelist.h | 9 +++++++++ src/SystemData.cpp | 2 +- src/XMLReader.h | 13 ------------- src/guis/GuiScraperMulti.cpp | 2 +- 6 files changed, 14 insertions(+), 18 deletions(-) rename src/{XMLReader.cpp => Gamelist.cpp} (99%) create mode 100644 src/Gamelist.h delete mode 100644 src/XMLReader.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 71d987bcc..4b1a95a4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,7 +160,7 @@ set(ES_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/Util.h ${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.h ${CMAKE_CURRENT_SOURCE_DIR}/src/Window.h - ${CMAKE_CURRENT_SOURCE_DIR}/src/XMLReader.h + ${CMAKE_CURRENT_SOURCE_DIR}/src/Gamelist.h ${CMAKE_CURRENT_SOURCE_DIR}/src/components/AnimatedImageComponent.h ${CMAKE_CURRENT_SOURCE_DIR}/src/components/AsyncReqComponent.h @@ -255,7 +255,7 @@ set(ES_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/Util.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/Window.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/XMLReader.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/src/Gamelist.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/components/AnimatedImageComponent.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/components/AsyncReqComponent.cpp diff --git a/src/XMLReader.cpp b/src/Gamelist.cpp similarity index 99% rename from src/XMLReader.cpp rename to src/Gamelist.cpp index 51de84893..8eb4d5488 100644 --- a/src/XMLReader.cpp +++ b/src/Gamelist.cpp @@ -1,4 +1,4 @@ -#include "XMLReader.h" +#include "Gamelist.h" #include "SystemData.h" #include "pugiXML/pugixml.hpp" #include diff --git a/src/Gamelist.h b/src/Gamelist.h new file mode 100644 index 000000000..b681e9160 --- /dev/null +++ b/src/Gamelist.h @@ -0,0 +1,9 @@ +#pragma once + +class SystemData; + +// Loads gamelist.xml data into a SystemData. +void parseGamelist(SystemData* system); + +// Writes currently loaded metadata for a SystemData to gamelist.xml. +void updateGamelist(SystemData* system); diff --git a/src/SystemData.cpp b/src/SystemData.cpp index 0cc3b4613..72bcb5917 100644 --- a/src/SystemData.cpp +++ b/src/SystemData.cpp @@ -1,5 +1,5 @@ #include "SystemData.h" -#include "XMLReader.h" +#include "Gamelist.h" #include #include #include diff --git a/src/XMLReader.h b/src/XMLReader.h deleted file mode 100644 index ea3b4399b..000000000 --- a/src/XMLReader.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef _XMLREADER_H_ -#define _XMLREADER_H_ - -#include -class SystemData; - -//Loads gamelist.xml data into a SystemData. -void parseGamelist(SystemData* system); - -//Writes changes to SystemData back to a previously loaded gamelist.xml. -void updateGamelist(SystemData* system); - -#endif diff --git a/src/guis/GuiScraperMulti.cpp b/src/guis/GuiScraperMulti.cpp index 56bb0232b..20ef3a146 100644 --- a/src/guis/GuiScraperMulti.cpp +++ b/src/guis/GuiScraperMulti.cpp @@ -2,7 +2,7 @@ #include "../Renderer.h" #include "../Log.h" #include "../views/ViewController.h" -#include "../XMLReader.h" +#include "../Gamelist.h" #include "../components/TextComponent.h" #include "../components/ButtonComponent.h"