Browse Source

修复编辑器在覆盖保存配置时保存的问题

大爷 2 years ago
parent
commit
d20374c138
2 changed files with 7 additions and 14 deletions
  1. 3 2
      GameEditor/Editor.cs
  2. 4 12
      GameEditor/GameEditor.csproj

+ 3 - 2
GameEditor/Editor.cs

@@ -1518,8 +1518,9 @@ namespace CommonAIEditor
                 return;
             }
 
-            File.Copy("./resBuilder/out/bin/e1.bin", Path.Combine(sPath, "e1.bin"));
-            File.Copy("./resBuilder/out/bin/ex.bin", Path.Combine(sPath, "ex.bin"));
+
+            File.Copy("./resBuilder/out/bin/e1.bin", Path.Combine(sPath, "e1.bin"), true);
+            File.Copy("./resBuilder/out/bin/ex.bin", Path.Combine(sPath, "ex.bin"), true);
         }
     }
 }

+ 4 - 12
GameEditor/GameEditor.csproj

@@ -398,30 +398,22 @@
       <Project>{d2a14196-3c00-4e3b-b716-fb168d32e343}</Project>
       <Name>CommonAIServer.Connector</Name>
     </ProjectReference>
-    <ProjectReference Include="..\Common\CommonAIServer\CommonAIServer.csproj">
-      <Project>{31a89f1e-f7d5-4f64-a1b6-67cb7aba4a18}</Project>
-      <Name>CommonAIServer</Name>
-    </ProjectReference>
-    <ProjectReference Include="..\Common\CommonAI\CommonAI.csproj">
+    <ProjectReference Include="..\Common\CommonAI\CommonAI_C.csproj">
       <Project>{0d86d14e-c45e-400a-8f50-ff7bde63b35a}</Project>
-      <Name>CommonAI</Name>
+      <Name>CommonAI_C</Name>
     </ProjectReference>
     <ProjectReference Include="..\Common\CommonFroms\CommonFroms.csproj">
       <Project>{f3594e30-da84-4538-baa3-0959b86aa879}</Project>
       <Name>CommonFroms</Name>
     </ProjectReference>
-    <ProjectReference Include="..\Common\CommonLang\CommonLang.csproj">
+    <ProjectReference Include="..\Common\CommonLang\CommonLang_C.csproj">
       <Project>{1835e71d-0b6c-463d-b538-e68891e4dacb}</Project>
-      <Name>CommonLang</Name>
+      <Name>CommonLang_C</Name>
     </ProjectReference>
     <ProjectReference Include="..\Common\CommonServer\CommonServer.csproj">
       <Project>{71cc36a4-6899-4bb8-8968-682dba861d98}</Project>
       <Name>CommonServer</Name>
     </ProjectReference>
-    <ProjectReference Include="..\Common\GameEditorPluginServer\GameEditorPluginServer.csproj">
-      <Project>{dc5b7f3a-aaf4-47f8-abe5-820fb93016cc}</Project>
-      <Name>GameEditorPluginServer</Name>
-    </ProjectReference>
     <ProjectReference Include="..\Common\GameEditorPlugin\GameEditorPlugin.csproj">
       <Project>{539fa0de-4ef2-4035-832d-9e8614e92a48}</Project>
       <Name>GameEditorPlugin</Name>