Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions CClmReader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CClmReader.h"
#include "CMemoryStreamReader.h"
Expand Down Expand Up @@ -41,7 +40,6 @@ HRESULT __stdcall CClmReader::QueryInterface(REFIID riid, void** ppv)
}



// ArchiveReader
// *************

Expand Down Expand Up @@ -142,8 +140,6 @@ HRESULT CClmReader::OpenStreamRead(BSTR fileName, StreamReader **stream)
}




// Class specific
// **************

Expand Down
1 change: 1 addition & 0 deletions CClmReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
2 changes: 0 additions & 2 deletions CClmWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CClmWriter.h"

Expand Down Expand Up @@ -39,7 +38,6 @@ HRESULT __stdcall CClmWriter::QueryInterface(REFIID riid, void** ppv)
}



// ArchiveWriter
// *************

Expand Down
1 change: 1 addition & 0 deletions CClmWriter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
4 changes: 0 additions & 4 deletions CFileStreamReader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CFileStreamReader.h"

Expand Down Expand Up @@ -41,7 +40,6 @@ HRESULT __stdcall CFileStreamReader::QueryInterface(REFIID riid, void** ppv)
}



// StreamReader
// ************

Expand Down Expand Up @@ -106,8 +104,6 @@ HRESULT CFileStreamReader::Seek(int offset)
}




// Class specific
// **************

Expand Down
1 change: 1 addition & 0 deletions CFileStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
3 changes: 0 additions & 3 deletions CFileStreamWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CFileStreamWriter.h"

Expand Down Expand Up @@ -39,8 +38,6 @@ HRESULT __stdcall CFileStreamWriter::QueryInterface(REFIID riid, void** ppv)
}




CFileStreamWriter::CFileStreamWriter(BSTR fileName) : m_cRef(1)
{
// Initialize class variables
Expand Down
1 change: 1 addition & 0 deletions CFileStreamWriter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
9 changes: 0 additions & 9 deletions CMapFile.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


#include "stdafx.h"
#include "CMapFile.h"
#include "GlobalFunctions.h"
Expand Down Expand Up @@ -166,7 +164,6 @@ HRESULT CMapFile::Draw(int destDC, int sourcePixelX, int sourcePixelY, int pixel
}



// MapFile functions
// *****************

Expand All @@ -179,7 +176,6 @@ HRESULT CMapFile::get_AroundTheWorld(int *bAroundTheWorld)
}



HRESULT CMapFile::get_TileData(
/* [in] */ int tileX,
/* [in] */ int tileY,
Expand Down Expand Up @@ -1118,9 +1114,6 @@ HRESULT CMapFile::SaveMap(StreamWriter *stream, enum MapLoadSaveFormat saveFlags
}





// ISupportErrorInfo
// *****************

Expand All @@ -1133,11 +1126,9 @@ HRESULT CMapFile::InterfaceSupportsErrorInfo(REFIID riid)
}



// Constructors/Destructor
// ***********************


CMapFile::CMapFile(TileSetSource *tileSetSource, int width, int height) :
m_cRef(1)
{
Expand Down
3 changes: 2 additions & 1 deletion CMapFile.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "OP2Editor.h"
#include "CTileGroup.h"
//#include "CTileSetManager.h"
#include "CTileSetManager.h"


class CMapFile : public MapFile, public ISupportErrorInfo
Expand Down
2 changes: 0 additions & 2 deletions CMemoryStreamReader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CMemoryStreamReader.h"

Expand Down Expand Up @@ -41,7 +40,6 @@ HRESULT __stdcall CMemoryStreamReader::QueryInterface(REFIID riid, void** ppv)
}



// StreamReader
// ************

Expand Down
1 change: 1 addition & 0 deletions CMemoryStreamReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
16 changes: 0 additions & 16 deletions CResourceManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CResourceManager.h"
#include "CFileStreamReader.h"
Expand Down Expand Up @@ -46,9 +45,6 @@ HRESULT __stdcall CResourceManager::QueryInterface(REFIID riid, void** ppv)
}





CResourceManager::CResourceManager(BSTR gamePath) : m_cRef(1)
{
// Initilize linked list of archives in search path
Expand Down Expand Up @@ -103,7 +99,6 @@ CResourceManager::~CResourceManager()
}



HRESULT CResourceManager::get_RootPath(BSTR *path)
{
SysReAllocString(path, this->path);
Expand Down Expand Up @@ -141,9 +136,6 @@ HRESULT CResourceManager::put_RootPath(BSTR newPath)
}





HRESULT CResourceManager::OpenStreamRead(
/* [in] */ BSTR fileName,
/* [retval][out] */ StreamReader **stream)
Expand Down Expand Up @@ -265,8 +257,6 @@ HRESULT CResourceManager::OpenStreamWrite(
}




HRESULT CResourceManager::LoadMapFile(BSTR fileName, enum MapLoadSaveFormat loadFlags, MapFile **mapFile)
{
StreamReader *inStream;
Expand Down Expand Up @@ -341,8 +331,6 @@ HRESULT CResourceManager::CreateNewMap(int width, int height, MapFile** newMap)
}




HRESULT CResourceManager::LoadTileSetFile(BSTR fileName, TileSet **tileSet)
{
StreamReader *inStream;
Expand Down Expand Up @@ -417,8 +405,6 @@ HRESULT CResourceManager::CreateTileSet(int numTiles, int bitDepth, int width, T
}




HRESULT CResourceManager::LoadVolFile(BSTR fileName, int bAttachToStream, ArchiveReader **volReader)
{
StreamReader *inStream;
Expand Down Expand Up @@ -639,8 +625,6 @@ HRESULT CResourceManager::ClearSearchPath()
}




// ISupportErrorInfo
// *****************

Expand Down
1 change: 1 addition & 0 deletions CResourceManager.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"
#include "CTileSetSource.h"
Expand Down
3 changes: 0 additions & 3 deletions CResourceManagerFactory.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

#include "stdafx.h"
#include "CResourceManagerFactory.h"
#include "CResourceManager.h"



ULONG CResourceManagerFactory::AddRef()
{
return ++m_cRef;
Expand Down Expand Up @@ -34,7 +32,6 @@ HRESULT CResourceManagerFactory::QueryInterface(REFIID riid, void** ppv)
}



HRESULT CResourceManagerFactory::CreateInstance(IUnknown *pUnknownOuter,
REFIID riid, void** ppv)
{
Expand Down
1 change: 1 addition & 0 deletions CResourceManagerFactory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

extern int g_cLocks;

Expand Down
2 changes: 0 additions & 2 deletions CTileGroup.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CTileGroup.h"
#include "GlobalFunctions.h"
Expand Down Expand Up @@ -138,7 +137,6 @@ HRESULT CTileGroup::Draw(int destDC, int sourcePixelX, int sourcePixelY, int pix
}



// Class specific
// **************

Expand Down
2 changes: 1 addition & 1 deletion CTileGroup.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#pragma once

#include "OP2Editor.h"
#include "CTileSetManager.h"
Expand Down
3 changes: 0 additions & 3 deletions CTileSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ HRESULT CTileSet::put_PaletteEntry(int index, int palEntry)
}



HRESULT CTileSet::SetNumTiles(int newNumTiles)
{
HBITMAP newTileSet;
Expand Down Expand Up @@ -217,11 +216,9 @@ HRESULT CTileSet::SaveTileSet(StreamWriter *stream, enum TileSetSaveFormat saveF
}



// Private functions
// *****************


// Constructors
// ************

Expand Down
1 change: 1 addition & 0 deletions CTileSet.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
2 changes: 1 addition & 1 deletion CTileSetManager.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

#include "stdafx.h"
#include "OP2Editor.h"
#include "CTileSetManager.h"
#include "GlobalFunctions.h"


extern int g_cLocks;


Expand Down
1 change: 1 addition & 0 deletions CTileSetManager.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once


class CTileSetManager : public TileSetManager, public ISupportErrorInfo
Expand Down
3 changes: 0 additions & 3 deletions CTileSetSource.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CTileSetSource.h"

Expand Down Expand Up @@ -36,8 +35,6 @@ HRESULT __stdcall CTileSetSource::QueryInterface(REFIID riid, void** ppv)
}




CTileSetSource::CTileSetSource(IResourceManager *resourceManager) : m_cRef(1)
{
head = NULL; // Initialize linked list of loaded files to empty
Expand Down
2 changes: 2 additions & 0 deletions CTileSetSource.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#pragma once

#include "OP2Editor.h"
#include "CTileSet.h"


class CTileSetSource : public TileSetSource
{
public:
Expand Down
2 changes: 0 additions & 2 deletions CVolReader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CVolReader.h"
#include "CMemoryStreamReader.h"
Expand Down Expand Up @@ -38,7 +37,6 @@ HRESULT __stdcall CVolReader::QueryInterface(REFIID riid, void** ppv)
}



// ArchiveReader
// *************

Expand Down
1 change: 1 addition & 0 deletions CVolReader.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
2 changes: 0 additions & 2 deletions CVolWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "stdafx.h"
#include "CVolWriter.h"

Expand Down Expand Up @@ -36,7 +35,6 @@ HRESULT __stdcall CVolWriter::QueryInterface(REFIID riid, void** ppv)
}



// ArchiveWriter
// *************

Expand Down
1 change: 1 addition & 0 deletions CVolWriter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once

#include "OP2Editor.h"

Expand Down
2 changes: 0 additions & 2 deletions GlobalFunctions.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

#include "stdafx.h"
#include "GlobalFunctions.h"



void PostErrorMsg(WCHAR *errorMsg)
{
// Provide rich error information
Expand Down
3 changes: 1 addition & 2 deletions GlobalFunctions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


#pragma once


void PostErrorMsg(WCHAR *errorMsg);
Expand Down
Loading