aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/utils
AgeCommit message (Collapse)Author
2019-11-14WINTERMUTE: Fix Missing Default Switch CasesD G Turner
These are flagged by GCC if -Wswitch-default is enabled.
2019-07-21WINTERMUTE: Support CHARSET_TURKISH at StringUtillolbot-iichan
2019-07-14WINTERMUTE: Add a warning for off-by-one errors in normalizeAngle()Filippos Karapetis
2019-07-14WINTERMUTE: Fixed normalizeAngle's output range from 0-360 to 0-359kyranet
WINTERMUTE: Enhanced BaseUtils::normalizeAngle to run the while if angle is greater than 359. When normalizing an angle, we expect the number to be between 0 and 359 (since 360 is 0), this changes the util so 360 is transformed to 0. The case for 359.8 (which this would make it -0.2) is covered by the following while loop, which will increase it back to 359.8.
2019-06-30COMMON & WINTERMUTE: Use non-1252 for 125X games (PR 1698)lolbot-iichan
* 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
2017-08-06JANITORIAL: Silence more GCC 7 warningsTorbjörn Andersson
All these fall through were marked as deliberate, so again I've only changed the comment to silence GCC.
2016-12-26WINTERMUTE: Try to "correctly" handle dir pathsTobia Tesan
I put scare quotes around "correctly" because I can't swear this is the intended behaviour of the original interpreter. I don't think accessing filenames that end with / in the .DCPs is even defined behaviour, so this is a best guess.
2016-12-26WINTERMUTE: only access -1th char of string if length > 0 in getFileNameTobia Tesan
Fixes #6594
2016-03-31WINTERMUTE: Turn AnsiString into Common::String in PathUtilTobia Tesan
AnsiString is already typedefd to Common::String
2015-11-07WINTERMUTE: C++'ify codeEugene Sandulenko
2014-08-29WINTERMUTE: Remove unused Sqr-function.Einar Johan Trøan Sømåen
2014-02-18WINTERMUTE: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-23WINTERMUTE: Switch WideString to U32String.Johannes Schickel
2013-11-08WINTERMUTE: Move the isAscii() string changing code to another functionFilippos Karapetis
2013-11-08WINTERMUTE: Allow utf8ToWide() and wideToUtf8() work with ASCII stringsFilippos Karapetis
This is needed for English versions of multilingual games, which use UTF-8 strings, but we can treat them as plain ASCII, since wide and UTF-8 strings are not yet supported in Wintermute. This allows at least the English versions of these games to run. This allows Reversion 2 and Shaban to start
2013-08-20WINTERMUTE: Replace CP1252-symbol ... with 3 full stops.Einar Johan Trøan Sømåen
2013-08-04WINTERMUTE: Fix end of namespace comments.Johannes Schickel
2013-01-26WINTERMUTE: Replace all NULLs with nullptr.Einar Johan Trøan Sømåen
2013-01-22WINTERMUTE: Silence a warning.Einar Johan Trøan Sømåen
2013-01-22WINTERMUTE: Guard ConfMan a bit better.Einar Johan Trøan Sømåen
2012-10-23WINTERMUTE: Convert ' correctly from CP1252Einar Johan Trøan Sømåen
2012-09-04WINTERMUTE: Convert CRLF to LFWillem Jan Palenstijn
2012-08-31WINTERMUTE: Use tabs in enumsEinar Johan Trøan Sømåen
2012-08-31WINTERMUTE: Cleanup the header-guards.Einar Johan Trøan Sømåen
2012-08-31WINTERMUTE: Add namespacing to the UTF-conversion codeEinar Johan Trøan Sømåen
2012-08-13WINTERMUTE: WinterMute -> WintermuteEinar Johan Trøan Sømåen
2012-08-11WINTERMUTE: Get rid of strncpy+manual termination.Einar Johan Trøan Sømåen
2012-08-07WINTERMUTE: Save the random-seed as well.Einar Johan Trøan Sømåen
2012-07-29WINTERMUTE: Remove statics and silence spam in debug console.Einar Johan Trøan Sømåen
2012-07-29WINTERMUTE: Remove unused functions from StringUtil::Einar Johan Trøan Sømåen
2012-07-29WINTERMUTE: Replace BaseRegistry with ConfManEinar Johan Trøan Sømåen
2012-07-29WINTERMUTE: Remove more unused utils.Einar Johan Trøan Sømåen
2012-07-27WINTERMUTE: Hardcode the Game.SaveDirectory return value in-engine for now.Einar Johan Trøan Sømåen
2012-07-27WINTERMUTE: Move settings-files to save-dir (gzipped xml now)Einar Johan Trøan Sømåen
2012-07-27WINTERMUTE: Remove all unneccessary #if 0 blocksEinar Johan Trøan Sømåen
2012-07-27WINTERMUTE: Fix a Clang-warningEinar Johan Trøan Sømåen
2012-07-27WINTERMUTE: Get rid of almost all LLVM GCC 4.2 warnings.Einar Johan Trøan Sømåen
2012-07-26WINTERMUTE: More variable/function renaming VarName->varNameEinar Johan Trøan Sømåen
2012-07-26WINTERMUTE: var_name -> varNameEinar Johan Trøan Sømåen
2012-07-26WINTERMUTE: Run Astyle with add-braces to break one-line statements into ↵Einar Johan Trøan Sømåen
easier-to-read-code.
2012-07-26WINTERMUTE: AStyle-formatting.Einar Johan Trøan Sømåen
2012-07-25WINTERMUTE: "delete []" -> "delete[]"Einar Johan Trøan Sømåen
2012-07-23WINTERMUTE: Remove dcgf.h from almost all includes.Einar Johan Trøan Sømåen
2012-07-23WINTERMUTE: Clean out unused utils.Einar Johan Trøan Sømåen
2012-07-22WINTERMUTE: Fix a few issues in PathUtil, mainly getFileNameWithoutExtension ↵Einar Johan Trøan Sømåen
was off by one
2012-07-21WINTERMUTE: Get rid of the C-prefix for class-definitions.Einar Johan Trøan Sømåen
2012-07-21WINTERMUTE: Rename CamelCased filenames to prefixed_under_score-filenamesEinar Johan Trøan Sømåen
This is mostly a lead-up to namespacing the Ad/Base folders, and then possibly removing the prefixes from the files, it also has the added benefit of getting rid of the odd case-typos that makes for issues on platforms that don't ignore case.
2012-07-20WINTERMUTE: Disable ansiToWide for now, as the current implementation was wrong.Einar Johan Trøan Sømåen
An odd side-effect was that the script-function SetHoverCursor in AdItem would rename it's filenames from "folder\subfolder\filename.ext" to "folder'subfolder'filename.ext"
2012-07-20WINTERMUTE: Rename PlatformSDL->platform_osystemEinar Johan Trøan Sømåen
2012-07-19WINTERMUTE: Change all folder-names to lowercase.Einar Johan Trøan Sømåen