Victor_VG
Tracker Mod | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору WARP_ItSelf Забирайте я лично только рад буду - столько труда уложить всем вместе только потому, что кто не прочитал спецификации Zip и в байтах 5-6 архива записано 0x0314 т.е. требуется версия архиватора 78.8. Вот подправленный окончательный вариант патча: Цитата: Index: makefile_gcc =================================================================== --- makefile_gcc (revision 3341) +++ makefile_gcc (working copy) @@ -13,1 +13,1 @@ - DOCS = arceng.hlf arcrus.hlf arceng.lng arcrus.lng + DOCS = arceng.hlf arcrus.hlf arceng.lng arcrus.lng changelog @@ -34,1 +34,1 @@ - $(MAKE) -f makefile_gcc_fmt FMT=zip + $(MAKE) -f makefile_gcc_fmt FMT=zip + $(CP) custom.ini $(DLLDIR)/Formats Index: zip.cpp =================================================================== --- zip.cpp (revision 3341) +++ zip.cpp (working copy) @@ -463,16 +463,16 @@ - // Console PKZIP 4.0/Win32 commands - static const char *Commands[]={ - /*Extract */"pkzipc -ext -dir -over=all -nozip -mask=none -times=mod {-pass=%%P} %%A @%%LNMA", - /*Extract without paths */"pkzipc -ext -over=all -nozip -mask=none -times=mod {-pass=%%P} %%A @%%LNMA", - /*Test */"pkzipc -test=all -nozip {-pass=%%P} %%A", - /*Delete */"pkzipc -delete -nozip {-temp=%%W} %%A @%%LNMA", - /*Comment archive */"pkzipc -hea -nozip {-temp=%%W} %%A", - /*Comment files */"pkzipc -com=all -nozip {-temp=%%W} %%A", - /*Convert to SFX */"pkzipc -sfx -nozip %%A", - /*Lock archive */"", - /*Protect archive */"", - /*Recover archive */"%comspec% /c echo.|pkzipc -fix -nozip %%A", - /*Add files */"pkzipc -add -attr=all -nozip {-pass=%%P} {-temp=%%W} %%A @%%LNMA", - /*Move files */"pkzipc -add -move -attr=all -nozip {-pass=%%P} {-temp=%%W} %%A @%%LNMA", - /*Add files and folders */"pkzipc -add -attr=all -dir -nozip {-pass=%%P} {-temp=%%W} %%A @%%LNMA", - /*Move files and folders*/"pkzipc -add -move -attr=all -dir -nozip {-pass=%%P} {-temp=%%W} %%A @%%LNMA", + // Console InfoZip Zip 3.1/UnZip 6.0 Win32 commands + static const char *Commands[]={ + /*Extract */"unzip -o {-P %%P} %%A %%FMQS32768", + /*Extract without paths */"unzip -o -j {-P %%P} %%A %%FMQS32768", + /*Test */"unzip -t %%A", + /*Delete */"zip -d {-b %%W} %%A %%FMQS32768", + /*Comment archive */"zip -z {-b %%W} %%A", + /*Comment files */"zip -c -r {-b %%W} %%A %%FNMQS32768", + /*Convert to SFX */"%COMSPEC% /D /E:ON /V:ON /C SET FN=%%A& SET FN=!FN:.zip=.exe!& COPY /B /V %FARHOME%\\plugins\\multiarc\\Formats\\unzipsfx.exe + %%A !FN! && zip.exe -A !FN!", + /*Lock archive */"", + /*Protect archive */"", + /*Recover archive */"zip -FF %%A", + /*Add files */"zip -S {-b %%W} {-P %%P} {%%S} %%A %%FQS32768", + /*Move files */"zip -m -S {-b %%W} {-P %%P} {%%S} %%A %%FQS32768", + /*Add files and folders */"zip -r -S {-b %%W} {-P %%P} {%%S} %%A %%FNMQS32768", + /*Move files and folders*/"zip -m -r -S {-b %%W} {-P %%P} {%%S} %%A %%FNMQS32768", Index: zip.rc =================================================================== --- zip.rc (revision 3341) +++ zip.rc (working copy) @@ -5,1 +5,1 @@ - #define PLUGIN_MINOR 31 + #define PLUGIN_MINOR 32 | Только что всё заново перепроверил: собирается без сообщений об ошибках раз, работает два, но unzipsfx.exe должен лежать в одном каталоге с zip.fmt - привязка в пути сделана к нему. Вот вывод компилятора, ошибок и предупреждений нет: Цитата: $make -f makefile_gcc_libpcre COMMON=../common && make -f makefile_gcc_fmt FMT=zip making depends for libpcre/study.c making depends for libpcre/pcre.c making depends for libpcre/get.c compiling libpcre/get.c compiling libpcre/pcre.c compiling libpcre/study.c linking final.32.gcc/obj/libPCRE.a making depends for zip.cpp compiling zip.cpp compiling zip.rc linking final.32.gcc/Formats/zip.fmt | Заодно, в ту же копилку, патч от Ariman из Mantis#0000999 поправил - в заголовке он не указал файл к которому он относится, забирайте и этот: Цитата: Index: editor.cpp =================================================================== --- editor.cpp (revision 3341) +++ editor.cpp (working copy) @@ -3934,8 +3934,9 @@ int LeftPos=CurPtr->GetLeftPos(); int TabCurPos=CurPtr->GetTabCurPos(); - if (ObjWidth>8 && TabCurPos-LeftPos+SearchLength>ObjWidth-8) - CurPtr->SetLeftPos(TabCurPos+SearchLength-ObjWidth+8); + int nSearchLenPart = (SelectFound) ? 0 : SearchLength; + if (ObjWidth>8 && TabCurPos-LeftPos+nSearchLenPart>ObjWidth-8) + CurPtr->SetLeftPos(TabCurPos+nSearchLenPart-ObjWidth+8); if (ReplaceMode) { |
---------- Жив курилка! (Р. Ролан, "Кола Брюньон") Xeon E5 2697v2/C602/128 GB PC3-14900L/GTX 1660 Ti, Xeon E5-2697v2/C602J/128 Gb PC3-14900L/GTX 1660 Ti |
| Всего записей: 33217 | Зарегистр. 31-07-2002 | Отправлено: 19:16 06-08-2009 | Исправлено: Victor_VG, 21:27 06-08-2009 |
|