Renamed XMLReader.h/.cpp to Gamelist.h/.cpp.

Since it does more than, yknow, read XML.
This commit is contained in:
Aloshi 2014-06-01 12:57:20 -05:00
parent eac8a07794
commit cf269641fc
6 changed files with 14 additions and 18 deletions

View file

@ -160,7 +160,7 @@ set(ES_HEADERS
${CMAKE_CURRENT_SOURCE_DIR}/src/Util.h ${CMAKE_CURRENT_SOURCE_DIR}/src/Util.h
${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.h ${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.h
${CMAKE_CURRENT_SOURCE_DIR}/src/Window.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/AnimatedImageComponent.h
${CMAKE_CURRENT_SOURCE_DIR}/src/components/AsyncReqComponent.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/Util.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/Window.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/AnimatedImageComponent.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/components/AsyncReqComponent.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/components/AsyncReqComponent.cpp

View file

@ -1,4 +1,4 @@
#include "XMLReader.h" #include "Gamelist.h"
#include "SystemData.h" #include "SystemData.h"
#include "pugiXML/pugixml.hpp" #include "pugiXML/pugixml.hpp"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>

9
src/Gamelist.h Normal file
View file

@ -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);

View file

@ -1,5 +1,5 @@
#include "SystemData.h" #include "SystemData.h"
#include "XMLReader.h" #include "Gamelist.h"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <fstream> #include <fstream>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,13 +0,0 @@
#ifndef _XMLREADER_H_
#define _XMLREADER_H_
#include <string>
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

View file

@ -2,7 +2,7 @@
#include "../Renderer.h" #include "../Renderer.h"
#include "../Log.h" #include "../Log.h"
#include "../views/ViewController.h" #include "../views/ViewController.h"
#include "../XMLReader.h" #include "../Gamelist.h"
#include "../components/TextComponent.h" #include "../components/TextComponent.h"
#include "../components/ButtonComponent.h" #include "../components/ButtonComponent.h"