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
20 changes: 20 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,24 @@ SpaceInEmptyBraces: Never
PointerAlignment: Left
QualifierAlignment: Custom
QualifierOrder: [inline, static, type, const, volatile]
IncludeBlocks: Regroup
IncludeCategories:
- Regex: ^"\.\./.*\.hpp"$
Priority: 0
SortPriority: 0
- Regex: ^"OpenSHC/.*func\.hpp"$
Priority: 1
SortPriority: 1
- Regex: ^"OpenSHC/Globals/.*"$
Priority: 2
SortPriority: 3
- Regex: ^"OpenSHC/.*"$
Priority: 1
SortPriority: 2
- Regex: ^".*"$
Priority: 3
SortPriority: 4
- Regex: .*
Priority: 3
SortPriority: 5
...
4 changes: 3 additions & 1 deletion src/OpenSHC/AI/AICState/setFoodBuyPlan.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "OpenSHC/AI/AICState.hpp"
#include "../AICState.func.hpp"

#include "OpenSHC/AI/AITypeA.hpp"
#include "OpenSHC/Game/Resources/ResourceType.hpp"

#include "OpenSHC/Globals/DAT_AICState.hpp"
#include "OpenSHC/Globals/DAT_GameState.hpp"

Expand Down
4 changes: 3 additions & 1 deletion src/OpenSHC/AI/AIVState/setupAIVMetadata.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "../AIVState.func.hpp"

#include "OpenSHC/AI/AICState.func.hpp"
#include "OpenSHC/AI/AIVState.hpp"

#include "OpenSHC/Globals/DAT_AICState.hpp"
#include "OpenSHC/Globals/DAT_GameState.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
4 changes: 1 addition & 3 deletions src/OpenSHC/Audio/mss/SoundSystem/endSoundStreamsUnk.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"

#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

#include "OpenSHC/Audio/MSS/enums/SHC_SoundStream.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
4 changes: 1 addition & 3 deletions src/OpenSHC/Audio/mss/SoundSystem/meth_0x424700.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.hpp"

#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

#include "OpenSHC/Audio/MSS/enums/SHC_SoundStream.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/mss/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSHC/Audio/mss/SoundSystem/setVolumeUnk.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
#include "../SoundSystem.func.hpp"

namespace OpenSHC {
namespace Audio {
Expand Down
3 changes: 1 addition & 2 deletions src/OpenSHC/Random/RNG/Constructor_RNG.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "OpenSHC/Random/RNG.func.hpp"
#include "OpenSHC/Random/RNG.hpp"
#include "../RNG.func.hpp"

namespace OpenSHC {
namespace Random {
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSHC/Random/RNG/nextRandomNumber1.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "OpenSHC/Random/RNG.hpp"
#include "../RNG.func.hpp"

namespace OpenSHC {
namespace Random {
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSHC/Random/RNG/nextRandomNumber2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#include "OpenSHC/Random/RNG.hpp"
#include "../RNG.func.hpp"

namespace OpenSHC {
namespace Random {
Expand Down
4 changes: 2 additions & 2 deletions src/OpenSHC/Random/RNG/populateRNG1040.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../RNG.func.hpp"

#include "OpenSHC/Global.func.hpp"
#include "OpenSHC/OS.func.hpp"
#include "OpenSHC/Random/RNG.func.hpp"
#include "OpenSHC/Random/RNG.hpp"

namespace OpenSHC {
namespace Random {
Expand Down
5 changes: 3 additions & 2 deletions src/OpenSHC/Random/RNG/setTimeBasedSeed.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "../RNG.func.hpp"

#include "OpenSHC/OS.func.hpp"
#include "OpenSHC/Random/RNG.func.hpp"
#include "OpenSHC/Random/RNG.hpp"

#include <time.h>

namespace OpenSHC {
Expand Down
1 change: 0 additions & 1 deletion src/core/Resolver.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#include "ucp3.h"

#include <sstream>

// TODO?: When in doubt regarding the transition to full exe: Add other logging system.
Expand Down
2 changes: 0 additions & 2 deletions src/precomp/FunctionResolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
// TODO: Maybe change naming convention to not run into these issues

#include "TypeUtility.h"

#include "ucp3.h"

#include <ios>
#include <iostream>
#include <sstream>
Expand Down