X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=22d9877b8f9c94bb8bf6a3d98f6f783b0dc5c731;hp=34a7287afeadcaa5549b3ddf1305d68d8faac0bb;hb=b25c721e3267a53d72f32b1d33561b3c962bb663;hpb=9d717c612a7756b30839103d1d6e8d89e2596393 diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 34a7287..22d9877 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -2617,10 +2617,10 @@ var config: TConfig; begin ID := 0; - g_ReadResource(EditorDir + 'data/game.wad', 'FONTS', cfgres, cfgdata, cfglen); + g_ReadResource(GameWad, 'FONTS', cfgres, cfgdata, cfglen); if cfgdata <> nil then begin - if not g_CreateTextureWAD('FONT_STD', EditorDir + 'data/game.wad:FONTS\' + texture) then + if not g_CreateTextureWAD('FONT_STD', GameWad + ':FONTS\' + texture) then e_WriteLog('ERROR ERROR ERROR', MSG_WARNING); config := TConfig.CreateMem(cfgdata, cfglen);