Commit Graph

18 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
lolbot-iichan
747ace78fc COMMON & WINTERMUTE: Use non-1252 for 125X games (PR 1698)
* WINTERMUTE: Add detection for "The Driller Incident"

"The Driller Incident" is a small freeware game for Wintermute,
avaliable in English and Russian: http://questzone.ru/enzi/files/1645

* WINTERMUTE: Add detection table for "One Helluva Day" demo

"One Helluva Day" is a point-and-click adventure demo in English / Czech
/ Russian.
Free download:
https://store.steampowered.com/app/603680/One_helluva_day/

* WINTERMUTE: Support CHARSET property for TT fonts

"// we don't need this anymore" was a mistake =)

Surely, most Wintermute games are either designed for 1252 language
(DE_DEU, EN_ANY, ES_ESP, FR_FRA, IT_ITA, PT_BRA), or don't use TrueType
fonts (5ma, deadcity, grotter1, grotter2, thekite, tib), or use
CHARSET=1 with UTF strings (dirtysplit, reversion1, reversion2, twc),
which meen this conversion is not needed for those games.

However, there are some games that explicitly states CHARSET=10 (driller
(RU_RUS), oknytt (RU_RUS), onehelluvaday (UNK_LANG when playing as
Russian)) and there are some games with CHARSET=1 with non-1252 in mind
(bookofgron (RU_RUS excepts 1251), carolreed4 (RU_RUS excepts 1251),
kulivocko (CZ_CZE excepts 1250)).

This fixes text in some games: bookofgron, carolreed4, driller, kulivocko,
oknytt, onehelluvaday.

* WINTERMUTE: Break savegame compatibility

sizeof(BaseFontTT) was changed, so let's break savegame compatibility

* COMMON: Add conversion tables for win1253 and win1257

* COMMON: Add string conversion from U32String back to Common::String

convertUtf32ToUtf8 code is based on Wintermute::ConvertUTF32toUTF8
convertFromU32String use convertUtf32ToUtf8 for UTF8 or lookup through
conversion table for single-byte encodings

* WINTERMUTE: Use Common::convert functions for non-UTF charsets

* WINTERMUTE: Fix whitespaces at detection tables

* WINTERMUTE: Add TODO comments
2019-06-30 16:45:46 +03:00
Einar Johan Trøan Sømåen
55c8b7a11a WINTERMUTE: Save the names of any language files that are loaded. (Fix bug #6651)
This way, they will be reloaded in the same order when loading a save game. Old save games will
continue to show the bug, but new savegames will be consistent. A quick fix for old save games in
the white chamber, is to launch the game with the correct language BEFORE loading the save game.

This increases the save-game-version to 1.3.1ScummVM
2014-09-03 17:47:49 +02:00
Johannes Schickel
fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Willem Jan Palenstijn
023914d121 WINTERMUTE: Disambiguate empty and NULL strings when saving
The string stored is now strlen(s)+1, with length 0 indicating NULL.

Increment savegame version for this new format.

Old savegames are fixed by assuming VAL_STRING should never be NULL.
2013-09-05 22:12:49 +02:00
Einar Johan Trøan Sømåen
f1c3869669 WINTERMUTE: Fix ScriptExtDate-saving (bump savegame-version to 1.2.1).
This also fixes int->int32 in ScriptExtDate::transfer.
2013-04-20 18:32:42 +02:00
Einar Johan Trøan Sømåen
0407906bfa WINTERMUTE: Redo the way floats are saved, break savegame compatibility with WME Lite completely.
(This also breaks compatibility with savegames from ScummVM prior to this commit, AND resets the
Savegame-version, older savegames will have differing MAGIC-numbers in their headers, and will thus
not be recognized).
2013-01-31 23:59:21 +01:00
Einar Johan Trøan Sømåen
bede97c52c WINTERMUTE: Store larger thumbnails (Bump Savegame-version to 1.2.0.0) 2013-01-22 20:58:12 +01:00
Willem Jan Palenstijn
b4090ead4d WINTERMUTE: Convert CRLF to LF 2012-09-04 22:17:23 +02:00
Einar Johan Trøan Sømåen
07c27b775c WINTERMUTE: Cleanup the header-guards. 2012-08-31 20:00:32 +02:00
Einar Johan Trøan Sømåen
d5f92497e6 WINTERMUTE: Correct some endif-comments. 2012-08-31 17:16:49 +02:00
Einar Johan Trøan Sømåen
1ad859a468 WINTERMUTE: "if(" -> "if (" 2012-07-25 21:21:55 +02:00
Einar Johan Trøan Sømåen
dde2d92c69 WINTERMUTE: Fix a savegame-regression 2012-06-27 15:15:46 +02:00
Einar Johan Trøan Sømåen
79cb18ff38 WINTERMUTE: Silence another few warnings. 2012-06-26 14:47:15 +02:00
Einar Johan Trøan Sømåen
1c26b37ef2 WINTERMUTE: Remove the DEGTORAD/RADTODEG-macros 2012-06-25 16:19:36 +02:00
Einar Johan Trøan Sømåen
bed4f81fc6 WINTERMUTE: Clean out some un-needed headers, and some FORBIDDEN_SYMBOL_EXCEPTIONs 2012-06-15 01:29:20 +02:00
Einar Johan Trøan Sømåen
ba6a2ac66e WINTERMUTE: Run Astyle on code-files to reformat. 2012-06-02 13:01:15 +02:00
Einar Johan Trøan Sømåen
997c5df430 WINTERMUTE: Add BBase and BParser, and make them compile. 2012-06-02 12:12:18 +02:00