Просмотр исходного кода

Supporting long paths when saving or loading the extension or script file

Source commit: 87e4e61adec5e6e57517bf4ffe731710ba5aca37
Martin Prikryl 9 лет назад
Родитель
Сommit
4d2319daf3
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      source/core/Common.cpp
  2. 1 1
      source/forms/Preferences.cpp

+ 1 - 1
source/core/Common.cpp

@@ -3428,5 +3428,5 @@ UnicodeString __fastcall AssemblyNewClassInstanceEnd(TAssemblyLanguage Language,
 //---------------------------------------------------------------------------
 void __fastcall LoadScriptFromFile(UnicodeString FileName, TStrings * Lines)
 {
-  Lines->LoadFromFile(FileName, TEncoding::UTF8);
+  Lines->LoadFromFile(ApiPath(FileName), TEncoding::UTF8);
 }

+ 1 - 1
source/forms/Preferences.cpp

@@ -2534,7 +2534,7 @@ void __fastcall TPreferencesDialog::AddExtension()
         {
           Abort();
         }
-        Lines->SaveToFile(ExtensionPath);
+        Lines->SaveToFile(ApiPath(ExtensionPath));
         FAddedExtensions->Add(ExtensionPath);
       }