X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_savemap.pas;h=e57fb791d4887b01b223c56fbdf76f60f597a429;hb=4cd27745126226e5e57a02f4c2a44ccbab16bbac;hp=f89ee7366f2a7105e6502bc93f37ecb91463a608;hpb=3dc2fe6b3d29cd54425db8f590e922f2dce50e99;p=d2df-editor.git diff --git a/src/editor/f_savemap.pas b/src/editor/f_savemap.pas index f89ee73..e57fb79 100644 --- a/src/editor/f_savemap.pas +++ b/src/editor/f_savemap.pas @@ -6,7 +6,7 @@ interface uses LCLIntf, LCLType, LMessages, SysUtils, Variants, Classes, - Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; + Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, utils; type TSaveMapForm = class (TForm) @@ -69,9 +69,9 @@ begin for a := 0 to lbMapList.Count-1 do if eMapName.Text = lbMapList.Items[a] then begin - ok := MessageBox(0, PChar(Format(_lc[I_MSG_MAP_EXISTS], + ok := Application.MessageBox(PChar(Format(MsgMsgMapExists, [eMapName.Text])), - PChar(_lc[I_MSG_SAVE_MAP]), + PChar(MsgMsgSaveMap), MB_ICONQUESTION or MB_YESNO or MB_DEFBUTTON1) = mrYes; if not ok then Exit; @@ -100,7 +100,7 @@ begin WAD := TWADEditor_1.Create(); WAD.ReadFile(FileName); - ResList := WAD.GetResourcesList(''); + ResList := WAD.GetResourcesList(''); if ResList <> nil then for a := 0 to High(ResList) do @@ -110,10 +110,10 @@ begin CopyMemory(@Sign[0], Data, 3); FreeMem(Data); - + if Sign = MAP_SIGNATURE then begin - nm := ResList[a]; + nm := win2utf(ResList[a]); lbMapList.Items.Add(nm); if placeName then