Commit Graph
4144 Commits
Author SHA1 Message Date
Jaromir Wysoglad 39e74b027e TTS: Add part of linux TTS 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad f78fc85f3a TTS: Create a TTS skeleton 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad b0c8b368a9 COMMON: Don't include iconv.h in common/encoding.h
Move #include<iconv.h> from common/encoding.h to
common/encoding.cpp and change the methods accordingly.

This resulted in not saving the iconvHandle if using the
"non-static" version of conversion, but it simplified the code
and hopefuly resolved issues with forbidden symbols on some
platforms.
2019-08-25 13:46:16 +03:00
Jaromir Wysoglad 96fef16693 COMMON: Don't include config.h before scummsys.h
Thil should fix the ds build. For some reason
I thought the forbidden.h wouldn't allow me to
include the iconv.h, so I tryed to include it
before the forbidden.h (it seems like I didn't
have to do that.)
2019-08-25 03:14:24 +01:00
Jaromir Wysoglad fcbf59f5ba COMMON: Convert endianity when needed in Encoding. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 0c74a7f27e COMMON: Fix typos 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad f8ac40af7c COMMON: Encoding refactoring 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 05df774905 COMMON: Add OSystem::convertEncoding documentation 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad b20922942c COMMON: Add missing documentation. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 96270d4bf2 JANITORIAL: Remove debuging code. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad a0564bc564 COMMON: Resolve endianity in Encoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 613613568c COMMON: Rename methods in Common::Encoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 24d35df476 COMMON: Refactor convertIconv 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 9fa09eeefe COMMON: Check for return values in Encoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 5043dec13c COMMON: Add propper Encoding setters 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 73fa9d921f COMMON: Add documentation to Common::Encoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 61cf628bfb COMMON: Add cyrilic transliteration to Encoding. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 888f3e4d30 COMMON: Add transMan mapping encoding conversion. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad bfdff38d01 COMMON: Use backend specific encoding conversion 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad a43526cb3e OSYSTEM: Add convertEncoding virtual method 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad dfbbd228e6 COMMON: Add encoding conversion using iconv 2019-08-24 18:12:45 +03:00
Andrei Prykhodko c2054682f0 COMMON: added support for ini files with non english characters 2019-08-20 13:53:01 +03:00
Filippos Karapetis 1dd915ccdf COMMON: Handle invalid INI file characters gracefully
This replaces all the asserts with warning messages
2019-08-20 11:38:27 +03:00
Andrei Prykhodko f52a96e1f4 COMMON: fixed reading ini files which have not value for key 2019-08-19 21:50:14 +03:00
Cameron Cawley e609d0247c LUA: Fix end of namespace comment 2019-08-13 16:44:58 +01:00
Cameron Cawley 46adbfa7b5 LUA: Remove duplicate object file from module.mk 2019-08-13 10:23:32 +01:00
Nipun Garg c1f029c6dc COMMON: Move Lua into Common and make it into...
an engine feature
2019-08-13 10:18:02 +02:00
Cameron Cawley aca627bec7 COMMON: Implement FSNode::createDirectoryRecursive() 2019-08-11 22:15:54 +03:00
lolbot-iichan 7553940792 COMMON: Add warnings on failed FSNode::createDirectory() 2019-08-11 22:15:54 +03:00
lolbot-iichan f1250dbfcb COMMON: Implement createDirectory() method to Common::FSNode
Added a simple wrapper for AbstractFSNode::create(true) since there was
no way to create directories.
2019-08-11 22:15:54 +03:00
Cameron Cawley 66ef50cfeb BACKENDS: Rename and simplify AbstractFSNode::create() 2019-08-06 07:17:29 +03:00
Alexander Tkachev 7fc6477ce2 COMMON: Update getHumanReadableBytes() in util.h
Function now casts bytes (as <1024) to unsigned long int to correspond
"%lu" format string. For consistency, KB are now printed as floating
number. Finally, it looks like double is pretty precise to be used in
comparisons, so I made the function a little bit shorter.
2019-07-30 14:51:41 -04:00
Alexander Tkachev d04c1dfad4 COMMON: Add getHumanReadableBytes() in util.h
This function was used in cloud-related DownloadDialog before,
and now it is also used in Options > Cloud tab.
2019-07-30 14:51:41 -04:00
D G Turner 2d1b4dc977 COMMON: Add Default Values for Joystick State Structure
This ensures that this has a defined value when used without the
engine needing to set the field values directly i.e. as per CGE.
2019-07-24 22:00:26 +01:00
Cameron Cawley 30edabf589 COMMON: Add wrappers for iscntrl() and isgraph() 2019-07-24 22:47:40 +03:00
lolbot-iichan 567a6b20e6 COMMON: Add conversion table for CP1254 2019-07-21 08:51:11 +03:00
Peter Kohaut 377cf606dd COMMON: Fix U32String initialization issues
Bug 1:
If the original C string contained chars > 127 they would be stored
as huge u32 numbers due to the underflow as char is signed.
It still might end-up with invalid UTF32 characters, but now the caller
can control it.

Bug 2:
The inline storage was not properly initialized when U32String was
initalized from shorter non-UTF32 strings.
2019-07-18 01:00:01 +02:00
lolbot-iichan 1dfc637b06 COMMON: Add Turkish language 2019-07-16 20:24:42 +03:00
jepael 3b68380ca3 SDL: Fix compiler warning and joystick event handling 2019-07-13 09:15:41 +03:00
Cameron Cawley 4cf9d1815c COMMON: Open the main menu when the joystick START button is pressed 2019-07-08 01:24:55 +03:00
Cameron Cawley 30109816fe SDL: Initial implementation of joystick events 2019-07-08 01:24:55 +03:00
Bastien Bouclet 7839e8e51c COMMON: Fix build with the virtual keyboard enabled 2019-07-01 17:24:33 +02:00
Le Philousophe 3a7219fa57 JANITORIAL: Avoid C4121 warnings in MSVC by reordering fields
C4121 is about 'symbol': alignment of a member was sensitive to packing
2019-06-30 21:43:58 +03: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
Bastien Bouclet d474e3f94f ALL: Sync with ScummVM - rev. ea3f8f2e33 2019-06-29 19:08:44 +02:00
Cameron Cawley b9e29cedfc ANDROID: Move isConnectionLimited into OSystem 2019-06-21 08:19:37 +03:00
Le Philousophe 97397bdaff STREAM: add read/write functions for double LE/BE 2019-06-01 22:43:48 +02:00
Bastien Bouclet fd4fa5e899 COMMON: Fix a memory leak in Common::DumpFile 2019-06-01 13:59:08 +02:00
Bastien Bouclet 113b9132b7 GUI: Add a drop down menu to select the anti aliasing level 2019-05-30 11:44:50 +02:00
Paul Gilbert 105a1b94bd GLK: TADS2: Added code for output, run, various miscellaneous 2019-05-24 18:21:06 -07:00