Commit Graph

2428 Commits

Author SHA1 Message Date
Roland van Laar
0e0aef0201 DEVTOOLS: COMPANION: add macbinary mode
`dumper-companion.py mac [--punycode] directory` will recursively look
for resourceforks and encode them inplace as macbinary.

When `--punycode` is enabled it will encode filenames in punycode.

This is a MacOS only feature.
2021-08-09 15:54:05 +02:00
Roland van Laar
66568ca700 DEVTOOLS: COMPANION: Improve helptext
Make it clear that punyencoding of stdin is supported.
2021-08-09 15:54:05 +02:00
Roland van Laar
4d00111acf DEVTOOLS: COMPANION: hfs dump use existing dir
Don't complain when the directory to write to already exists.
2021-08-09 15:54:05 +02:00
Roland van Laar
8ddb3aec3a DEVTOOLS: COMPANION: remove superfluous statement 2021-08-09 15:54:05 +02:00
Roland van Laar
c586311c26 DEVTOOLS: COMPANION: add development info helptext 2021-08-09 15:54:05 +02:00
Roland van Laar
6e5d7c2395 DEVTOOLS: COMPANION: bring escape inline
Original dumper-companion.pl script encoded \x81 to \x81\x79\x81.
- added test to check for correct behavior
- refactored escape string to handle this special case
2021-08-09 00:22:18 +02:00
Roland van Laar
a1a31748e8 DEVTOOLS: COMPANION: change escape char
\x81 is used to encode escaped chars. This change brings it in line with
the dumpercompanion.pl.
2021-08-09 00:09:52 +02:00
Roland van Laar
0f46b30654 DEVTOOLS: COMPANION: punyencode strings
Adds the `str` subcommand:

./dumper-companion.py str STRING
    punyencode the string STRING
./dumper-companion.py str --stdin
    punyencode stdin

The HFS iso dumper is moved into it's own subcommand:

./dumper-companion.py iso -e encoding input_iso output_dir
2021-08-08 23:42:01 +02:00
Eugene Sandulenko
8892902c8f
DEVTOOLS: COMPANION: Keep the original filename encoding in MacBinary 2021-08-06 13:29:06 +02:00
Max Horn
2f1f8f502e DEVTOOLS: move credits from devtools/credits.pl to engines
This employs a "lazy" approach: the "format" for the credits stays
exactly as it was, i.e., perl code. Of course one may want to change
this to another format (e.g. YAML, JSON, XML; or also shell script or
AWK, like `configure.engine` uses). But I deliberately kept it simple,
to get a minimal change that is easy to verify. Any further changes to
e.g. the format can be layered atop this.
2021-08-05 00:01:46 +02:00
Roland van Laar
064a266a22 DEVTOOLS: COMPANION: remove debug statements 2021-08-04 16:54:06 +02:00
Roland van Laar
38ee5037e5 DEVTOOLS: COMPANION: create python version
It reads an hfs formatted iso and extracts its contents. The output
follows two rules:
- A file is saved as macbinary when it has a resource fork and
- filenames with non-ascii chars are converted into a punycode variant.

An initial verson of this python script was created by: @eientei on
discord.
2021-08-04 16:02:21 +02:00
Orgad Shaneh
0b2ae9fa5e DEVTOOLS: Replace ugly SDL/MinGW hack with a cleaner hack
Instead of having main=SDL_main defined by pkg-config/sdl2-config --cflags
and undefining it everywhere, strip it in its origin.
2021-08-03 07:35:15 +03:00
D G Turner
5e0aeffb58 DEVTOOLS: Fix create_xeen Compilation 2021-08-03 04:15:36 +01:00
Orgad Shaneh
f084d29e9a DEVTOOLS: Fix create_xeen compilation without C++11 2021-08-02 23:12:57 +03:00
Eugene Sandulenko
d71bc64e83
DEVTOOLS: XEEN: Fix warnings 2021-08-02 18:34:36 +02:00
Eugene Sandulenko
11ed99bd62
DEVTOOLS: XEEN: Fix compilation on some platforms 2021-08-02 18:34:36 +02:00
Orgad Shaneh
99773ee204 DEVTOOLS: Fix create_project compilation on Windows with UNICODE defined 2021-08-02 17:47:29 +02:00
Maxim Kovalenko
0b038463ff XEEN: RU Fixed item materials 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
4ea20488cc XEEN: RU create_xeen removed const in int return 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
805f55f1cd XEEN: RU Fixed some localized strings. Fixed intro subtitles.
Fixed optimizer issues
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
21c727b2c7 XEEN: RU Fixed names according to conventions 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
b655cfc03e XEEN: RU Moving translated hotkeys to resources.
Hotkeys changed in locations, CoX Menu.
Margin fix
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
2da836da6c XEEN: RU Moving translated hotkeys to resources.
Hotkeys changed in party, quests, quick_fight, spells dialogs and bank location.
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
3bba21845d XEEN: RU Moving translated hotkeys to resources.
Hotkeys changed in items dialogs.
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
b16ab4382e XEEN: RU Moving translated hotkeys to resources.
Hotkeys changed in char_info, control_panel, create_char, difficulty dialogs.
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
587031a2e5 XEEN: RU Further sharpening
change hotkeys in dialogs_create_char, dialogs_difficulty
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
9f80f452e4 XEEN: RU Translated all constants.h strings for Clouds. Ready for test. 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
325eb338fe XEEN: RU Further sharpening
Added 'Born' gender form and plural form for food
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
d3624575a7 XEEN: RU Working on gender and plural forms 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
84ad41f685 XEEN: RU Further sharpening ru translation 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
d18f2bb219 XEEN: RU Split language constants
Further sharpening ru translation
2021-08-02 17:35:18 +02:00
Maxim Kovalenko
516f8d8824 XEEN: RU Combine multiple language constants in one ccs file 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
cfcf36383f XEEN: RU Added plural forms for "days" 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
f25b9c9c58 XEEN: RU Move plural forms to constants 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
66097d4e39 XEEN: RU Added plural forms for "days" in char info 2021-08-02 17:35:18 +02:00
Maxim Kovalenko
dcf3bb19b5 XEEN: RU Translated constants.cpp 2021-08-02 17:35:18 +02:00
Eugene Sandulenko
ab99047387
COMMON: COMPANION: Avoid diuble encoding of UTF8 symbols 2021-08-01 18:31:26 +02:00
Eugene Sandulenko
09dfabf6c5
DEVTOOLS: COMPANION: Escape more shell characters 2021-08-01 14:51:04 +02:00
Eugene Sandulenko
1f40958a65
COMMON: Punycode more invalid characters in filenames 2021-08-01 10:44:24 +02:00
Eugene Sandulenko
5288422e26
DEVTOOLS: COMPANION: Escape more characters for shell commands 2021-08-01 10:35:27 +02:00
Orgad Shaneh
d0545cb65a CI: Enable fribidi
Some of the issues in vcpkg are already resolved.
2021-08-01 08:30:19 +01:00
Eugene Sandulenko
353d0aa758
DEVTOOLS: COMPANION: Improve verbose debug output 2021-07-31 18:56:35 +02:00
Eugene Sandulenko
33566c0847
DEVTOOLS: COMPANION: Fix processing '*' in the source file names 2021-07-31 18:22:55 +02:00
Eugene Sandulenko
d0eba82607
DEVTOOLS: COMPANION: Avoid concurrency in HFSUTILS execution 2021-07-31 18:06:55 +02:00
Eugene Sandulenko
8f72b4aec8
DEVTOOLS: COMPANION: Bail out on unsuccessful hcopy 2021-07-31 17:31:23 +02:00
Eugene Sandulenko
8ce0327544
DEVTOOLS: COMPANION: Do not hide hmount output in verbose mode 2021-07-31 17:24:08 +02:00
Eugene Sandulenko
66f7bc786e
DEVTOOLS: COMPANION: Fix spelling error 2021-07-31 17:12:49 +02:00
Eugene Sandulenko
8cd546c119
DEVTOOLS: COMPANION: Fix processing files newer than a year 2021-07-31 17:10:08 +02:00
Eugene Sandulenko
130270e9cc
COMMON: Puny-encode '*', '[', ']' in file names 2021-07-31 17:04:13 +02:00