Skip to content

Commit 6acfea4

Browse files
committed
Fix includes for unity build, and merge prs from origin
1 parent 7719665 commit 6acfea4

File tree

80 files changed

+495
-430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+495
-430
lines changed

.gitignore

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Visual Studio 2015 user specific files
2+
.vs/
3+
4+
# Rider C++
5+
.idea/
6+
Plugins/Developer/RiderLink/
7+
8+
# Visual Studio 2015 database file
9+
*.VC.db
10+
11+
# Compiled Object files
12+
*.slo
13+
*.lo
14+
*.o
15+
*.obj
16+
17+
# Precompiled Headers
18+
*.gch
19+
*.pch
20+
21+
# Compiled Dynamic libraries
22+
*.so
23+
*.dylib
24+
*.dll
25+
26+
# Fortran module files
27+
*.mod
28+
29+
# Compiled Static libraries
30+
*.lai
31+
*.la
32+
*.a
33+
*.lib
34+
35+
# Executables
36+
*.exe
37+
*.out
38+
*.app
39+
*.ipa
40+
41+
# These project files can be generated by the engine
42+
*.xcodeproj
43+
*.xcworkspace
44+
*.sln
45+
*.suo
46+
*.opensdf
47+
*.sdf
48+
*.VC.db
49+
*.VC.opendb
50+
51+
# Precompiled Assets
52+
SourceArt/**/*.png
53+
SourceArt/**/*.tga
54+
55+
# Binary Files
56+
Binaries/*
57+
Plugins/*/Binaries/*
58+
59+
# Builds
60+
Build/*
61+
62+
# Whitelist PakBlacklist-<BuildConfiguration>.txt files
63+
!Build/*/
64+
Build/*/**
65+
!Build/*/PakBlacklist*.txt
66+
67+
# Don't ignore icon files in Build
68+
!Build/**/*.ico
69+
70+
# Built data for maps
71+
*_BuiltData.uasset
72+
73+
# Configuration files generated by the Editor
74+
Saved/*
75+
76+
# Compiled source files for the engine to use
77+
Intermediate/*
78+
Plugins/*/Intermediate/*
79+
80+
# Cache files for the editor to use
81+
DerivedDataCache/*
82+
*.DotSettings*
83+
*DotSettings*

Linter.uplugin

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@
1010
"DocsURL": "http://discord.gamemak.in",
1111
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/ca0639af6339476da86fa3bcf15de8ec",
1212
"SupportURL": "http://discord.gamemak.in",
13-
"EngineVersion": "4.26.0",
1413
"CanContainContent": true,
15-
"Installed": true,
14+
"Installed": false,
15+
"EnabledByDefault": true,
1616
"Modules": [
1717
{
1818
"Name": "Linter",
1919
"Type": "Editor",
2020
"LoadingPhase": "PreDefault",
2121
"WhitelistPlatforms": [
2222
"Win64",
23-
"Win32",
2423
"Mac",
2524
"Linux"
2625
],
@@ -35,7 +34,6 @@
3534
"LoadingPhase": "PreDefault",
3635
"WhitelistPlatforms": [
3736
"Win64",
38-
"Win32",
3937
"Mac",
4038
"Linux"
4139
],
@@ -50,7 +48,6 @@
5048
"LoadingPhase": "PreDefault",
5149
"WhitelistPlatforms": [
5250
"Win64",
53-
"Win32",
5451
"Mac",
5552
"Linux"
5653
],

Source/GamemakinLinter/GamemakinLinter.Build.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ public class GamemakinLinter : ModuleRules
66
{
77
public GamemakinLinter(ReadOnlyTargetRules Target) : base(Target)
88
{
9-
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
10-
9+
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
10+
bUseUnity = false;
11+
1112
PublicDependencyModuleNames.AddRange(
1213
new string[]
1314
{
@@ -17,13 +18,13 @@ public GamemakinLinter(ReadOnlyTargetRules Target) : base(Target)
1718
"Linter"
1819
}
1920
);
20-
21-
21+
22+
2223
PrivateDependencyModuleNames.AddRange(
2324
new string[]
2425
{
2526

2627
}
2728
);
2829
}
29-
}
30+
}

Source/GamemakinLinter/Public/GamemakinLinter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2019-2020 Gamemakin LLC. All Rights Reserved.
22
#pragma once
33

4-
#include "Modules/ModuleManager.h"
5-
64
DECLARE_LOG_CATEGORY_EXTERN(LogGamemakinLinter, Verbose, All);
75

86
class GAMEMAKINLINTER_API FGamemakinLinterModule : public IModuleInterface

Source/Linter/Linter.Build.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ public class Linter : ModuleRules
66
{
77
public Linter(ReadOnlyTargetRules Target) : base(Target)
88
{
9-
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
10-
9+
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
10+
bUseUnity = false;
11+
1112
PublicDependencyModuleNames.AddRange(
1213
new string[]
1314
{
1415
"Core",
1516
}
1617
);
17-
18-
18+
19+
1920
PrivateDependencyModuleNames.AddRange(
2021
new string[]
2122
{
@@ -36,7 +37,7 @@ public Linter(ReadOnlyTargetRules Target) : base(Target)
3637
"DesktopPlatform",
3738
"Json",
3839
"UATHelper"
39-
// ... add private dependencies that you statically link with here ...
40+
// ... add private dependencies that you statically link with here ...
4041
}
4142
);
4243

@@ -47,4 +48,4 @@ public Linter(ReadOnlyTargetRules Target) : base(Target)
4748
#endif
4849

4950
}
50-
}
51+
}

Source/Linter/Private/BatchRenameTool/BatchRenameTool.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "Framework/Notifications/NotificationManager.h"
1616
#include "Logging/MessageLog.h"
1717
#include "Logging/TokenizedMessage.h"
18+
#include "Widgets/Layout/SSeparator.h"
1819

1920
#define LOCTEXT_NAMESPACE "LinterBatchRenamer"
2021

@@ -32,7 +33,7 @@ FDlgBatchRenameTool::FDlgBatchRenameTool(const TArray<FAssetData> Assets)
3233
.AutoCenter(EAutoCenter::PreferredWorkArea)
3334
.ClientSize(FVector2D(350, 165));
3435

35-
TSharedPtr<SBorder> DialogWrapper =
36+
const TSharedPtr<SBorder> DialogWrapper =
3637
SNew(SBorder)
3738
.BorderImage(FEditorStyle::GetBrush("ToolPanel.GroupBorder"))
3839
.Padding(4.0f)
@@ -48,9 +49,9 @@ FDlgBatchRenameTool::EResult FDlgBatchRenameTool::ShowModal()
4849
{
4950
//Show Dialog
5051
GEditor->EditorAddModalWindow(DialogWindow.ToSharedRef());
51-
EResult UserResponse = (EResult)DialogWidget->GetUserResponse();
52+
const EResult UserResponse = (EResult)DialogWidget->GetUserResponse();
5253

53-
if (UserResponse == EResult::Confirm)
54+
if (UserResponse == Confirm)
5455
{
5556
Prefix = DialogWidget->PrefixTextBox->GetText().ToString();
5657
Suffix = DialogWidget->SuffixTextBox->GetText().ToString();
@@ -63,10 +64,10 @@ FDlgBatchRenameTool::EResult FDlgBatchRenameTool::ShowModal()
6364
// If no information is given, treat as canceled
6465
if (Prefix.IsEmpty() && Suffix.IsEmpty() && Find.IsEmpty())
6566
{
66-
return EResult::Cancel;
67+
return Cancel;
6768
}
6869

69-
FAssetToolsModule& AssetToolsModule = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools");
70+
const FAssetToolsModule& AssetToolsModule = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools");
7071
TArray<FAssetRenameData> AssetsAndNames;
7172

7273
for (auto AssetIt = SelectedAssets.CreateConstIterator(); AssetIt; ++AssetIt)
@@ -317,4 +318,4 @@ FDlgBatchRenameTool::EResult SDlgBatchRenameTool::GetUserResponse() const
317318
return UserResponse;
318319
}
319320

320-
#undef LOCTEXT_NAMESPACE
321+
#undef LOCTEXT_NAMESPACE

Source/Linter/Private/LintRule.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#include "Materials/Material.h"
66
#include "Kismet2/BlueprintEditorUtils.h"
77
#include "Engine/Blueprint.h"
8-
#include "AssetData.h"
98
#include "Modules/ModuleManager.h"
10-
#include "IAssetRegistry.h"
119
#include "IAssetTools.h"
1210
#include "AssetRegistryModule.h"
1311

@@ -58,18 +56,18 @@ FName ULintRule::GetRuleBasedObjectVariantName_Implementation(UObject* ObjectToL
5856
}
5957

6058
{
61-
UMaterialInterface* MI = Cast<UMaterialInterface>(ObjectToLint);
59+
const UMaterialInterface* MI = Cast<UMaterialInterface>(ObjectToLint);
6260
if (MI != nullptr)
6361
{
64-
#if ENGINE_MINOR_VERSION >= 25
62+
#if ENGINE_MINOR_VERSION >= 25 || ENGINE_MAJOR_VERSION >= 5
6563
TMicRecursionGuard RecursionGuard;
6664
#else
6765
UMaterialInterface::TMicRecursionGuard RecursionGuard;
6866
#endif
6967
const UMaterial* Material = MI->GetMaterial_Concurrent(RecursionGuard);
7068
if (Material != nullptr)
7169
{
72-
if (Material->MaterialDomain == EMaterialDomain::MD_PostProcess)
70+
if (Material->MaterialDomain == MD_PostProcess)
7371
{
7472
return "PostProcess";
7573
}
@@ -78,10 +76,10 @@ FName ULintRule::GetRuleBasedObjectVariantName_Implementation(UObject* ObjectToL
7876
}
7977

8078
{
81-
UBlueprint* Blueprint = Cast<UBlueprint>(ObjectToLint);
79+
const UBlueprint* Blueprint = Cast<UBlueprint>(ObjectToLint);
8280
if (Blueprint != nullptr)
8381
{
84-
if (Blueprint->BlueprintType == EBlueprintType::BPTYPE_MacroLibrary)
82+
if (Blueprint->BlueprintType == BPTYPE_MacroLibrary)
8583
{
8684
return "MacroLibrary";
8785
}
@@ -132,7 +130,7 @@ TArray<TSharedPtr<FLintRuleViolation>> FLintRuleViolation::AllRuleViolationsWith
132130
// This should really be done when the structs are first created
133131
TArray<TSharedPtr<FLintRuleViolation>> SharedViolations;
134132
TArray<FLintRuleViolation> Violations = AllRuleViolationsWithViolator(RuleViolationCollection, SearchViolator);
135-
for (FLintRuleViolation Violation : Violations)
133+
for (const FLintRuleViolation Violation : Violations)
136134
{
137135
SharedViolations.Push(TSharedPtr<FLintRuleViolation>(new FLintRuleViolation(Violation)));
138136
}
@@ -237,7 +235,7 @@ TMultiMap<const ULintRule*, TSharedPtr<FLintRuleViolation>> FLintRuleViolation::
237235

238236
bool FLintRuleViolation::PopulateAssetData()
239237
{
240-
IAssetRegistry& AssetRegistry = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry").Get();
238+
const IAssetRegistry& AssetRegistry = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry").Get();
241239
TArray<FAssetRenameData> AssetRenameData;
242240

243241
if (Violator.IsValid())
@@ -247,4 +245,4 @@ bool FLintRuleViolation::PopulateAssetData()
247245
}
248246

249247
return false;
250-
}
248+
}

0 commit comments

Comments
 (0)