diff --git a/ClientCore/ProgramConstants.cs b/ClientCore/ProgramConstants.cs
index e953cfc5f..081d4f68c 100644
--- a/ClientCore/ProgramConstants.cs
+++ b/ClientCore/ProgramConstants.cs
@@ -140,6 +140,14 @@ public static string GetAILevelName(int aiLevel)
Environment.Exit(1);
};
+ ///
+ /// This method finds the "Resources" directory by traversing the directory tree upwards from the startup path.
+ ///
+ ///
+ /// This method is needed by both ClientCore and DXMainClient. However, since it is usually called at the very beginning,
+ /// where DXMainClient could not refer to ClientCore, this method is copied to both projects.
+ /// Remember to keep and consistent if you have modified its source codes.
+ ///
private static string SearchResourcesDir(string startupPath)
{
DirectoryInfo currentDir = new(startupPath);
diff --git a/DXMainClient/Program.cs b/DXMainClient/Program.cs
index f1752437f..3d50ba555 100644
--- a/DXMainClient/Program.cs
+++ b/DXMainClient/Program.cs
@@ -174,7 +174,7 @@ private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEven
}
#endif
- // SearchResourcesDir is copied from ClientCore
+ ///
private static string SearchResourcesDir(string startupPath)
{
DirectoryInfo currentDir = new(startupPath);