DWED first alpha (Announce)
> > I noticed, that this "does not work", when I'm outside the DWED.EXE
> folder,
> > i.e., I configured my DOS PATH variable like SET
> > PATH=\DWED;%PATH%.
> >
> > "does not work" means, that it looks like DWED does nothing, when I
> press
> > F5. No error message. Nothing.
>
> Thanks!
> (I think, i saw this bug and fix few days ago - dont load .cfg from current
> dir - only main from install-dir)
I already used the latest version, but it still doesn't work for me. Not in FreeDOS. Not in Windows XP.
function load_config(var ctx : TEditorContext; fname : string):boolean;
var f : word;
i : integer;
str : string;
key, value : string;
begin
f := lfn.lopen_r(fname);
if f <> 0 then begin
while not lfn.leof(f) do begin
lfn.lreadln(f, str);
split(str, key, value);
process_param(ctx, key, value);
end;
lfn.lclose(f);
end;
load_config := i <> 0;
end;
Where do you set i
in your function?
This one looks better to me:
function load_config(var ctx : TEditorContext; fname : string):boolean;
var f : word;
str : string;
key, value : string;
begin
f := lfn.lopen_r(fname);
if f <> 0 then begin
while not lfn.leof(f) do begin
lfn.lreadln(f, str);
split(str, key, value);
process_param(ctx, key, value);
end;
lfn.lclose(f);
end;
load_config := f <> 0;
end;
---
Forum admin
Complete thread:
- DWED first alpha - DosWorld, 10.11.2020, 04:40 (Announce)
- DWED first alpha - Laaca, 10.11.2020, 11:50
- DWED first alpha - DosWorld, 10.11.2020, 16:03
- DWED first alpha - tom, 24.09.2022, 19:24
- DWED first alpha - rr, 10.11.2020, 11:53
- DWED first alpha - DosWorld, 10.11.2020, 15:18
- DWED first alpha - Laaca, 10.11.2020, 22:27
- DWED first alpha - Rugxulo, 10.11.2020, 22:34
- DWED first alpha - rr, 12.11.2020, 23:16
- DWED first alpha - DosWorld, 13.11.2020, 03:58
- DWED first alpha - RayeR, 13.11.2020, 18:12
- DWED first alpha - rr, 14.11.2020, 19:42
- DWED first alpha - DosWorld, 15.11.2020, 04:11
- DWED first alpha - rr, 15.11.2020, 19:20
- DWED first alpha - DosWorld, 15.11.2020, 04:11
- DWED first alpha - DosWorld, 13.11.2020, 03:58
- DWED first alpha - rr, 14.11.2020, 21:10
- DWED first alpha - DosWorld, 14.11.2020, 22:42
- DWED first alpha - rr, 15.11.2020, 19:41
- DWED first alpha - DosWorld, 15.11.2020, 20:17
- DWED first alpha - Laaca, 15.11.2020, 21:05
- DWED first alpha - DosWorld, 15.11.2020, 22:33
- DWED first alpha - Laaca, 16.11.2020, 18:37
- DWED first alpha - DosWorld, 16.11.2020, 19:44
- DWED first alpha - Laaca, 17.11.2020, 08:51
- DWED first alpha - DosWorld, 16.11.2020, 19:44
- DWED first alpha - rr, 16.11.2020, 23:02
- DWED first alpha - Laaca, 16.11.2020, 18:37
- DWED first alpha - DosWorld, 15.11.2020, 22:33
- DWED first alpha - rr, 16.11.2020, 23:04
- DWED first alpha - DosWorld, 17.11.2020, 15:28
- DWED first alpha - rr, 17.11.2020, 23:16
- DWED first alpha - DosWorld, 18.11.2020, 10:18
- DWED first alpha - rr, 18.11.2020, 21:44
- DWED first alpha - DosWorld, 19.11.2020, 01:42
- DWED first alpha - DosWorld, 27.11.2020, 13:08
- DWED first alpha - tom, 27.11.2020, 17:05
- DWED first alpha - DosWorld, 28.11.2020, 07:48
- DWED first alpha - ecm, 28.11.2020, 09:09
- DWED first alpha - bretjohn, 28.11.2020, 20:24
- DWED first alpha - DosWorld, 28.11.2020, 07:48
- DWED first alpha - tom, 27.11.2020, 17:05
- DWED first alpha - DosWorld, 27.11.2020, 13:08
- DWED first alpha - DosWorld, 19.11.2020, 01:42
- DWED first alpha - rr, 18.11.2020, 21:44
- DWED first alpha - DosWorld, 18.11.2020, 10:18
- DWED first alpha - rr, 17.11.2020, 23:16
- DWED first alpha - DosWorld, 17.11.2020, 15:28
- DWED first alpha - Laaca, 15.11.2020, 21:05
- DWED first alpha - DosWorld, 15.11.2020, 20:17
- DWED first alpha - rr, 15.11.2020, 19:41
- DWED first alpha - DosWorld, 14.11.2020, 22:42
- DWED first alpha - Laaca, 10.11.2020, 22:27
- DWED first alpha - DosWorld, 10.11.2020, 15:18
- DWED first alpha - Rugxulo, 10.11.2020, 21:22
- DWED first alpha - DosWorld, 10.11.2020, 22:18
- DWED first alpha - Rugxulo, 10.11.2020, 22:31
- DWED first alpha - DosWorld, 10.11.2020, 22:18
- DWED first alpha - glennmcc, 10.11.2020, 22:27
- DWED first alpha - DosWorld, 11.11.2020, 12:36
- DWED first alpha - RayeR, 12.11.2020, 00:27
- DWED first alpha - DosWorld, 12.11.2020, 02:36
- DWED first alpha - rr, 12.11.2020, 14:46
- DWED first alpha - tom, 24.09.2022, 19:37
- DWED first alpha - DosWorld, 12.11.2020, 02:36
- DWED first alpha - DosWorld, 14.11.2020, 02:41
- DWED first alpha - DosWorld, 16.11.2020, 04:23
- DWED first alpha - DosWorld, 16.11.2020, 17:16
- DWED first alpha - rr, 16.11.2020, 23:08
- DWED first alpha - rr, 06.12.2020, 17:25
- DWED first alpha - DosWorld, 07.12.2020, 03:46
- DWED first alpha - rr, 08.12.2020, 23:17
- DWED first alpha - DosWorld, 12.12.2020, 12:57
- DWED first alpha - rr, 12.12.2020, 20:37
- DWED first alpha - DosWorld, 13.12.2020, 02:15
- DWED first alpha - rr, 12.12.2020, 20:37
- DWED first alpha - DosWorld, 12.12.2020, 12:57
- DWED first alpha - rr, 08.12.2020, 23:17
- DWED first alpha - DosWorld, 07.12.2020, 03:46
- DWED first alpha - rr, 06.12.2020, 17:25
- DWED first alpha - DosWorld, 16.11.2020, 04:23
- DWED first alpha - RayeR, 12.11.2020, 00:27
- DWED first alpha - DosWorld, 12.01.2022, 03:13
- DWED first alpha - DosWorld, 14.01.2022, 00:40
- DWED first alpha - DosWorld, 17.01.2022, 17:17
- DWED first alpha - DosWorld, 23.09.2022, 13:56
- DWED first alpha - DosWorld, 01.10.2022, 01:33
- DWED first alpha - Zyzzle, 02.10.2022, 04:11
- DWED first alpha - DosWorld, 02.10.2022, 20:26
- DWED first alpha - Zyzzle, 02.10.2022, 04:11
- DWED first alpha - DosWorld, 01.10.2022, 01:33
- DWED first alpha - DosWorld, 23.09.2022, 13:56
- DWED first alpha - DosWorld, 05.04.2024, 12:19
- DWED first alpha - boeckmann, 05.04.2024, 13:01
- DWED first alpha - DosWorld, 05.04.2024, 13:05
- DWED first alpha - boeckmann, 05.04.2024, 13:01
- DWED first alpha - Laaca, 10.11.2020, 11:50