From e9a7f43348099fe66cb23a18b7987e7f80c09e6a Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Sun, 3 Aug 2025 21:35:44 +0200 Subject: [PATCH] fix: formatting --- src/ObjCommon/Shader/ShaderCommon.cpp | 2 +- src/ObjCommon/Techset/TechsetCommon.cpp | 2 +- src/ObjCommon/Techset/TechsetCommon.h | 2 +- src/ObjLoading/Game/IW4/LightDef/LightDefLoaderIW4.cpp | 1 - src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.cpp | 2 +- src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.h | 2 +- src/ObjWriting/Game/IW3/Image/ImageDumperIW3.cpp | 1 - src/ObjWriting/Game/IW3/StringTable/StringTableDumperIW3.h | 2 +- src/ObjWriting/Game/IW4/LightDef/LightDefDumperIW4.h | 2 +- .../Game/IW4/PhysPreset/PhysPresetInfoStringDumperIW4.h | 2 +- src/ObjWriting/Game/IW4/Tracer/TracerDumperIW4.h | 2 +- src/ObjWriting/Game/IW5/Image/ImageDumperIW5.cpp | 1 - src/ObjWriting/Game/T6/RawFile/RawFileDumperT6.h | 2 +- 13 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/ObjCommon/Shader/ShaderCommon.cpp b/src/ObjCommon/Shader/ShaderCommon.cpp index e7cb5994..7dc6c7bb 100644 --- a/src/ObjCommon/Shader/ShaderCommon.cpp +++ b/src/ObjCommon/Shader/ShaderCommon.cpp @@ -13,4 +13,4 @@ namespace shader { return std::format("shader_bin/vs_{}.cso", assetName); } -} // namespace phys_constraints +} // namespace shader diff --git a/src/ObjCommon/Techset/TechsetCommon.cpp b/src/ObjCommon/Techset/TechsetCommon.cpp index 0deff7f2..f8e75ea5 100644 --- a/src/ObjCommon/Techset/TechsetCommon.cpp +++ b/src/ObjCommon/Techset/TechsetCommon.cpp @@ -13,4 +13,4 @@ namespace techset { return std::format("techsets/{}.techset", assetName); } -} // namespace phys_constraints +} // namespace techset diff --git a/src/ObjCommon/Techset/TechsetCommon.h b/src/ObjCommon/Techset/TechsetCommon.h index 61e467c0..510b9122 100644 --- a/src/ObjCommon/Techset/TechsetCommon.h +++ b/src/ObjCommon/Techset/TechsetCommon.h @@ -6,4 +6,4 @@ namespace techset { std::string GetFileNameForTechniqueName(const std::string& assetName); std::string GetFileNameForTechsetName(const std::string& assetName); -} +} // namespace techset diff --git a/src/ObjLoading/Game/IW4/LightDef/LightDefLoaderIW4.cpp b/src/ObjLoading/Game/IW4/LightDef/LightDefLoaderIW4.cpp index abf4bf0b..8c610411 100644 --- a/src/ObjLoading/Game/IW4/LightDef/LightDefLoaderIW4.cpp +++ b/src/ObjLoading/Game/IW4/LightDef/LightDefLoaderIW4.cpp @@ -7,7 +7,6 @@ #include #include - using namespace IW4; using namespace ::light_def; diff --git a/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.cpp b/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.cpp index eac377d0..2d772c67 100644 --- a/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.cpp +++ b/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.cpp @@ -1085,4 +1085,4 @@ namespace T6::sound { return std::make_unique(memory, searchPath); } -} // namespace T6 +} // namespace T6::sound diff --git a/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.h b/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.h index 6bc4a5df..c4d1af75 100644 --- a/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.h +++ b/src/ObjLoading/Game/T6/Sound/LoaderSoundBankT6.h @@ -10,4 +10,4 @@ namespace T6::sound { std::unique_ptr> CreateSoundBankLoader(MemoryManager& memory, ISearchPath& searchPath); -} // namespace T6 +} // namespace T6::sound diff --git a/src/ObjWriting/Game/IW3/Image/ImageDumperIW3.cpp b/src/ObjWriting/Game/IW3/Image/ImageDumperIW3.cpp index 0e8c9873..5459adcf 100644 --- a/src/ObjWriting/Game/IW3/Image/ImageDumperIW3.cpp +++ b/src/ObjWriting/Game/IW3/Image/ImageDumperIW3.cpp @@ -14,7 +14,6 @@ #include #include - using namespace IW3; using namespace ::image; diff --git a/src/ObjWriting/Game/IW3/StringTable/StringTableDumperIW3.h b/src/ObjWriting/Game/IW3/StringTable/StringTableDumperIW3.h index dcdbec06..c010dd89 100644 --- a/src/ObjWriting/Game/IW3/StringTable/StringTableDumperIW3.h +++ b/src/ObjWriting/Game/IW3/StringTable/StringTableDumperIW3.h @@ -11,4 +11,4 @@ namespace IW3::string_table bool ShouldDump(XAssetInfo* asset) override; void DumpAsset(AssetDumpingContext& context, XAssetInfo* asset) override; }; -} // namespace IW3 +} // namespace IW3::string_table diff --git a/src/ObjWriting/Game/IW4/LightDef/LightDefDumperIW4.h b/src/ObjWriting/Game/IW4/LightDef/LightDefDumperIW4.h index 9b8003c9..f80236df 100644 --- a/src/ObjWriting/Game/IW4/LightDef/LightDefDumperIW4.h +++ b/src/ObjWriting/Game/IW4/LightDef/LightDefDumperIW4.h @@ -11,4 +11,4 @@ namespace IW4::light_def bool ShouldDump(XAssetInfo* asset) override; void DumpAsset(AssetDumpingContext& context, XAssetInfo* asset) override; }; -} // namespace IW4 +} // namespace IW4::light_def diff --git a/src/ObjWriting/Game/IW4/PhysPreset/PhysPresetInfoStringDumperIW4.h b/src/ObjWriting/Game/IW4/PhysPreset/PhysPresetInfoStringDumperIW4.h index 98b6a366..22998751 100644 --- a/src/ObjWriting/Game/IW4/PhysPreset/PhysPresetInfoStringDumperIW4.h +++ b/src/ObjWriting/Game/IW4/PhysPreset/PhysPresetInfoStringDumperIW4.h @@ -12,4 +12,4 @@ namespace IW4::phys_preset bool ShouldDump(XAssetInfo* asset) override; void DumpAsset(AssetDumpingContext& context, XAssetInfo* asset) override; }; -} // namespace IW4 +} // namespace IW4::phys_preset diff --git a/src/ObjWriting/Game/IW4/Tracer/TracerDumperIW4.h b/src/ObjWriting/Game/IW4/Tracer/TracerDumperIW4.h index b141a586..5beb2809 100644 --- a/src/ObjWriting/Game/IW4/Tracer/TracerDumperIW4.h +++ b/src/ObjWriting/Game/IW4/Tracer/TracerDumperIW4.h @@ -12,4 +12,4 @@ namespace IW4::tracer bool ShouldDump(XAssetInfo* asset) override; void DumpAsset(AssetDumpingContext& context, XAssetInfo* asset) override; }; -} // namespace IW4 +} // namespace IW4::tracer diff --git a/src/ObjWriting/Game/IW5/Image/ImageDumperIW5.cpp b/src/ObjWriting/Game/IW5/Image/ImageDumperIW5.cpp index 5bc59c92..cbb596c1 100644 --- a/src/ObjWriting/Game/IW5/Image/ImageDumperIW5.cpp +++ b/src/ObjWriting/Game/IW5/Image/ImageDumperIW5.cpp @@ -11,7 +11,6 @@ #include #include - using namespace IW5; using namespace ::image; diff --git a/src/ObjWriting/Game/T6/RawFile/RawFileDumperT6.h b/src/ObjWriting/Game/T6/RawFile/RawFileDumperT6.h index b784a1f2..6544e974 100644 --- a/src/ObjWriting/Game/T6/RawFile/RawFileDumperT6.h +++ b/src/ObjWriting/Game/T6/RawFile/RawFileDumperT6.h @@ -11,4 +11,4 @@ namespace T6::raw_file bool ShouldDump(XAssetInfo* asset) override; void DumpAsset(AssetDumpingContext& context, XAssetInfo* asset) override; }; -} // namespace T6 +} // namespace T6::raw_file