Fix check-files ordering headers by folder count for different libs
This commit is contained in:
parent
494a83e817
commit
efa2a30934
|
|
@ -10,7 +10,6 @@
|
|||
#include <NazaraUtils/MemoryPool.hpp>
|
||||
#include <NazaraUtils/StackVector.hpp>
|
||||
#include <Jolt/Jolt.h>
|
||||
#include <tsl/ordered_set.h>
|
||||
#include <Jolt/Core/TempAllocator.h>
|
||||
#include <Jolt/Physics/PhysicsSettings.h>
|
||||
#include <Jolt/Physics/PhysicsStepListener.h>
|
||||
|
|
@ -22,6 +21,7 @@
|
|||
#include <Jolt/Physics/Collision/RayCast.h>
|
||||
#include <Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h>
|
||||
#include <Jolt/Physics/Collision/Shape/SphereShape.h>
|
||||
#include <tsl/ordered_set.h>
|
||||
#include <cassert>
|
||||
#include <Nazara/JoltPhysics3D/Debug.hpp>
|
||||
|
||||
|
|
|
|||
|
|
@ -519,10 +519,18 @@ on_run(function ()
|
|||
|
||||
local function compareFunc(a, b)
|
||||
if a.order == b.order then
|
||||
local moduleA = a.path:match("^Nazara/(.-)/")
|
||||
local moduleB = b.path:match("^Nazara/(.-)/")
|
||||
if moduleA ~= moduleB then
|
||||
return moduleA < moduleB
|
||||
local folderA = a.path:match("^(.-)/")
|
||||
local folderB = b.path:match("^(.-)/")
|
||||
if folderA and folderB then
|
||||
if folderA ~= folderB then
|
||||
return folderA < folderB
|
||||
end
|
||||
|
||||
local moduleA = a.path:match("^Nazara/(.-)/")
|
||||
local moduleB = b.path:match("^Nazara/(.-)/")
|
||||
if moduleA ~= moduleB then
|
||||
return moduleA < moduleB
|
||||
end
|
||||
end
|
||||
|
||||
local _, folderCountA = a.path:gsub("/", "")
|
||||
|
|
|
|||
Loading…
Reference in New Issue