Clean up includes in DiscIO as much as possible.

Also turned a long iterator declaration in VolumeDirectory.cpp to using auto in order to shorten it.
This commit is contained in:
Lioncash 2013-10-18 03:32:56 -04:00
parent 82fd579506
commit 207547b425
12 changed files with 19 additions and 27 deletions

View File

@ -2,14 +2,13 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "Common.h"
#include "FileUtil.h"
#include "CDUtils.h"
#include "Blob.h"
#include "CompressedBlob.h"
#include "FileBlob.h"
#include "CDUtils.h"
#include "CISOBlob.h"
#include "CompressedBlob.h"
#include "DriveBlob.h"
#include "FileBlob.h"
#include "FileUtil.h"
#include "WbfsBlob.h"
namespace DiscIO

View File

@ -15,7 +15,7 @@
// detect whether the file is a compressed blob, or just a big hunk of data, or a drive, and
// automatically do the right thing.
#include "Common.h"
#include "CommonTypes.h"
namespace DiscIO
{

View File

@ -9,7 +9,6 @@
#include <unistd.h>
#endif
#include "Common.h"
#include "CompressedBlob.h"
#include "DiscScrubber.h"
#include "FileUtil.h"

View File

@ -13,7 +13,7 @@ namespace DiscIO
namespace DiscScrubber
{
#define CLUSTER_SIZE 0x8000
#define CLUSTER_SIZE 0x8000
u8* m_FreeTable = NULL;
u64 m_FileSize;

View File

@ -14,7 +14,7 @@
#ifndef DISC_SCRUBBER_H
#define DISC_SCRUBBER_H
#include "Common.h"
#include "CommonTypes.h"
#include "Blob.h"

View File

@ -36,8 +36,8 @@ DriveReader::DriveReader(const char *drive)
// removal while reading from it.
pmrLockCDROM.PreventMediaRemoval = TRUE;
DeviceIoControl(hDisc, IOCTL_CDROM_MEDIA_REMOVAL,
&pmrLockCDROM, sizeof(pmrLockCDROM), NULL,
0, &dwNotUsed, NULL);
&pmrLockCDROM, sizeof(pmrLockCDROM), NULL,
0, &dwNotUsed, NULL);
#endif
#else
SectorReader::SetSectorSize(2048);

View File

@ -2,8 +2,6 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "Common.h"
#include "FileHandlerARC.h"
#include "StringUtil.h"
#include "Blob.h"

View File

@ -8,7 +8,7 @@
#include <string>
#include <vector>
#include "Common.h"
#include "CommonTypes.h"
#include "Filesystem.h"
namespace DiscIO

View File

@ -2,11 +2,10 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "Common.h"
#include "MathUtil.h"
#include "CommonPaths.h"
#include "VolumeDirectory.h"
#include "FileBlob.h"
#include "MathUtil.h"
#include "VolumeDirectory.h"
namespace DiscIO
{
@ -484,8 +483,7 @@ static u32 ComputeNameSize(const File::FSTEntry& parentEntry)
{
u32 nameSize = 0;
const std::vector<File::FSTEntry>& children = parentEntry.children;
for (std::vector<File::FSTEntry>::const_iterator it = children.begin();
it != children.end(); ++it)
for (auto it = children.cbegin(); it != children.cend(); ++it)
{
const File::FSTEntry& entry = *it;
if (entry.isDirectory)

View File

@ -5,11 +5,11 @@
#ifndef _VOLUME_DIRECTORY
#define _VOLUME_DIRECTORY
#include "Volume.h"
#include "Common.h"
#include "FileUtil.h"
#include <string>
#include <map>
#include <string>
#include "FileUtil.h"
#include "Volume.h"
//
// --- this volume type is used for reading files directly from the hard drive ---

View File

@ -2,8 +2,6 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "stdafx.h"
#include "VolumeGC.h"
#include "StringUtil.h"
#include "FileMonitor.h"

View File

@ -9,7 +9,7 @@
#include <vector>
#include <map>
#include "Common.h"
#include "CommonTypes.h"
#include "Blob.h"
#include "Volume.h"