summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ecf69fd)
raw | patch | inline | side by side (parent: ecf69fd)
author | Stas'M <x86corez@gmail.com> | |
Sun, 27 Jan 2019 15:11:02 +0000 (18:11 +0300) | ||
committer | Stas'M <x86corez@gmail.com> | |
Sun, 27 Jan 2019 15:11:02 +0000 (18:11 +0300) |
src/editor/f_packmap.pas | patch | blob | history | |
src/editor/f_savemap.pas | patch | blob | history | |
src/editor/f_selectmap.pas | patch | blob | history | |
src/editor/g_resources.pas | patch | blob | history |
index 00e3dc0372b3984515df0b1068ee1fb9d6de1763..e2551bae7ad58b17eec4aa4026c0dd5cd17e2b5f 100644 (file)
--- a/src/editor/f_packmap.pas
+++ b/src/editor/f_packmap.pas
procedure TPackMapForm.bPackClick(Sender: TObject);
var
- WadFile: String;
mr: TMapReader_1;
mw: TMapWriter_1;
data: Pointer;
index 14336d9e3581cffa64f538bcdebd7cfe9d227d74..6d9b947f2427633045c4e37a057b7b30a1f62add 100644 (file)
--- a/src/editor/f_savemap.pas
+++ b/src/editor/f_savemap.pas
begin
for i := 0 to list.Count - 1 do
begin
- g_ReadResource(FileName, list.Files[i].path, list.Files[i].name, data, len);
+ g_ReadResource(FileName, win2utf(list.Files[i].path), win2utf(list.Files[i].name), data, len);
if len >= 3 then
begin
index 2d4882dedef40fe543cea07b5fa6808315ad0f53..7474330705f0c70b96027895375359b9a5cffbed 100644 (file)
for i := 0 to list.Count - 1 do
begin
- g_ReadResource(FileName, list.Files[i].path, list.Files[i].name, data, len);
+ g_ReadResource(FileName, win2utf(list.Files[i].path), win2utf(list.Files[i].name), data, len);
if len >= 3 then
begin
index 0e383c3a565d8317103f87a0170500f4945f7eff..cc8e0a8ef717d655553178b73256c88abbe8bf81 100644 (file)
var f: TWADEditor_1;
begin
res := 1; (* error *)
- wad := utf2win(wad);
section := utf2win(NoTrailing(section));
name := utf2win(name);
ASSERT(name <> '');
path := NoTrailing(list.Files[i].path);
if (path <> section) or (list.Files[i].name <> name) then
begin
- g_ReadResource(wad, path, list.Files[i].name, data0, len0);
+ g_ReadResource(wad, win2utf(path), win2utf(list.Files[i].name), data0, len0);
ASSERT(data0 <> nil);
if path = '' then
path := list.Files[i].name
path := NoTrailing(list.Files[i].path);
if (path <> section) or (list.Files[i].name <> name) then
begin
- g_ReadResource(wad, path, list.Files[i].name, data0, len0);
+ g_ReadResource(wad, win2utf(path), win2utf(list.Files[i].name), data0, len0);
ASSERT(data0 <> nil);
if path = '' then
path := list.Files[i].name