From 5307ea85b533c208a5fa9f8a7602b910d1dc7c88 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 23 Aug 2024 16:27:32 -0500 Subject: [PATCH] Have new projects use nameof(Game). --- Source/Editor/Editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Editor.cpp b/Source/Editor/Editor.cpp index 4da379fac..b9b0f1fd8 100644 --- a/Source/Editor/Editor.cpp +++ b/Source/Editor/Editor.cpp @@ -476,7 +476,7 @@ int32 Editor::LoadProduct() " base.Init();\n" "\n" " // Reference the modules for game\n" - " Modules.Add(\"Game\");\n" + " Modules.Add(nameof(Game));\n" " }\n" "}\n"), Encoding::UTF8); failed |= File::WriteAllText(projectPath / TEXT("Source/GameEditorTarget.Build.cs"),TEXT( @@ -490,7 +490,7 @@ int32 Editor::LoadProduct() " base.Init();\n" "\n" " // Reference the modules for editor\n" - " Modules.Add(\"Game\");\n" + " Modules.Add(nameof(Game));\n" " }\n" "}\n"), Encoding::UTF8); failed |= File::WriteAllText(projectPath / TEXT("Source/Game/Game.Build.cs"),TEXT(