Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
(#6) Non-relative #include(s) for module headers
Browse files Browse the repository at this point in the history
Adjusted `#include`s not to depend on relative folder structure and
instead be based on module of origin, as this:

`#include "<module>/<header>.h"`

This is allowed by the fact that the `src` directory is added to the
INCLUDES search path.
  • Loading branch information
leandor committed Nov 3, 2016
1 parent 6aba1e0 commit 7213d5c
Show file tree
Hide file tree
Showing 604 changed files with 817 additions and 816 deletions.
2 changes: 1 addition & 1 deletion src/capi/CBash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
// included. CBashConfig.h is included from CBash.h, so defining it here works.
#define COMPILING_CBASH
#include "CBash.h"
#include "Collection.h"
#include "main/Collection.h"
#include "Version.h"
#include <vector>
#include <stdarg.h>
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/FNVFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
// FNVFile.cpp
#include "../Common.h"
#include "../GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"
#include "FNVFile.h"

FNVFile::FNVFile(Collection *_Parent, char * FileName, char * ModName, const uint32_t _flags):
Expand Down
10 changes: 6 additions & 4 deletions src/game/FalloutNewVegas/FNVFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
* ***** END LICENSE BLOCK ***** */
#pragma once
// FNVFile.h
#include "../Common.h"
#include "../ModFile.h"
#include "../GenericRecord.h"
#include "../GRUPRecord.h"
#include "common/Common.h"
#include "common/ModFile.h"
#include "common/GenericRecord.h"

#include "GRUPRecord.h"

#include "Records/GMSTRecord.h"
#include "Records/TXSTRecord.h"
#include "Records/MICNRecord.h"
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ACHRRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ACHRRecord.h"
#include "CELLRecord.h"

Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ACHRRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ACRERecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ACRERecord.h"
#include "CELLRecord.h"

Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ACRERecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ACTIRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ACTIRecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ACTIRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ADDNRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ADDNRecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ADDNRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ALCHRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ALCHRecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ALCHRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ALOCRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ALOCRecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ALOCRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/AMEFRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "AMEFRecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/AMEFRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/AMMORecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "AMMORecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/AMMORecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/ANIORecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\Common.h"
#include "common/Common.h"
#include "ANIORecord.h"

namespace FNV
Expand Down
4 changes: 2 additions & 2 deletions src/game/FalloutNewVegas/Records/ANIORecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*
* ***** END LICENSE BLOCK ***** */
#pragma once
#include "..\..\Common.h"
#include "..\..\GenericRecord.h"
#include "common/Common.h"
#include "common/GenericRecord.h"

namespace FNV
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ACHRRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ACHRRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ACRERecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ACRERecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ACTIRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ACTIRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ADDNRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ADDNRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ALCHRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ALCHRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ALOCRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ALOCRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/AMEFRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\AMEFRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/AMMORecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\AMMORecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ANIORecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ANIORecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ARMARecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ARMARecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ARMORecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ARMORecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/ASPCRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\ASPCRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/AVIFRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\AVIFRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/BOOKRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\BOOKRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/BPTDRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\BPTDRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/CAMSRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\CAMSRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/CCRDRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\CCRDRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/CDCKRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\CDCKRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/CELLRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\CELLRecord.h"

namespace FNV
Expand Down
2 changes: 1 addition & 1 deletion src/game/FalloutNewVegas/Records/API/CHALRecordAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "..\..\..\Common.h"
#include "common/Common.h"
#include "..\CHALRecord.h"

namespace FNV
Expand Down
Loading

0 comments on commit 7213d5c

Please sign in to comment.