Skip to content

Commit

Permalink
Renamed XMLReader.h/.cpp to Gamelist.h/.cpp.
Browse files Browse the repository at this point in the history
Since it does more than, yknow, read XML.
  • Loading branch information
Aloshi committed Jun 1, 2014
1 parent eac8a07 commit cf26964
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/XMLReader.cpp → src/Gamelist.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "XMLReader.h"
#include "Gamelist.h"
#include "SystemData.h"
#include "pugiXML/pugixml.hpp"
#include <boost/filesystem.hpp>
Expand Down
9 changes: 9 additions & 0 deletions src/Gamelist.h
Original file line number Diff line number Diff line change
@@ -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);
2 changes: 1 addition & 1 deletion src/SystemData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SystemData.h"
#include "XMLReader.h"
#include "Gamelist.h"
#include <boost/filesystem.hpp>
#include <fstream>
#include <stdlib.h>
Expand Down
13 changes: 0 additions & 13 deletions src/XMLReader.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/guis/GuiScraperMulti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cf26964

Please sign in to comment.