Matthew Hoops
7c3d65912d
SCI: Fix GK1 Mac messages
...
svn-id: r55750
2011-02-03 05:10:24 +00:00
Max Horn
e27b05ef35
COMMON: Rename String::printf() to String::format()
...
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.
The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.
svn-id: r54004
2010-11-01 16:02:28 +00:00
Johannes Schickel
92b0b384ea
SCI: Fix memory leak.
...
svn-id: r51669
2010-08-02 22:35:29 +00:00
Filippos Karapetis
5d72193c51
Oops, removed leftover code
...
svn-id: r51457
2010-07-29 08:03:16 +00:00
Filippos Karapetis
c40b9801df
SCI: Silenced warning when exiting in LSL6 (bug report #3035533 ), and commented out a related unused variable in kSetQuitStr
...
svn-id: r51456
2010-07-29 07:58:48 +00:00
Martin Kiewitz
3c6639eb86
SCI: implemented kPalVary(reverse) for pharkas, although there is a bug somewhere, not working 100%
...
svn-id: r50089
2010-06-20 18:20:05 +00:00
Filippos Karapetis
9c1ec81d76
Strict mode: Turned several severe errors (almost all detection related) into errors, instead of warnings
...
svn-id: r49972
2010-06-17 23:45:38 +00:00
Matthew Hoops
8f55c4ddb4
Allow for digits in stage directions in SCI32 games: GK1 floppy uses them.
...
svn-id: r49582
2010-06-10 18:16:05 +00:00
Matthew Hoops
3dda73d9a2
Add initial support for KQ6 Mac. Wrapper functions for read/writing to pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression.
...
svn-id: r49070
2010-05-18 04:17:58 +00:00
Max Horn
92c896d883
Patch #2973290 : Semicolon cleanup
...
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
a82939c9be
SCI: Get rid of EngineState::resMan
...
svn-id: r48048
2010-02-13 17:44:19 +00:00
Max Horn
ac4d325e0d
SCI: Add global g_sci pointer to the active SciEngine instance
...
svn-id: r48046
2010-02-13 17:42:49 +00:00
Matthew Hoops
5382aa1ab0
SCI32:
...
- Set signature for Array/String
- Add the kernel table differences for the GK2 demo
- Implement kMessage changes in SCI32
- Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid)
- Add dereferencing for Arrays
svn-id: r46756
2009-12-30 16:00:56 +00:00
Matthew Hoops
4be2788ffd
Some SCI32 (minor) String bug fixes and cleanup.
...
svn-id: r46492
2009-12-23 05:10:16 +00:00
Matthew Hoops
35e91fbddf
Add a TODO for the SCI 2.1 message version (5).
...
svn-id: r46465
2009-12-21 15:22:42 +00:00
Filippos Karapetis
e4c23834dd
Moved sci_ffs() inside iterator.cpp, the only place where it's actually used, and removed tools.*. Also, removed all the unused includes to tools.h from several places
...
svn-id: r45176
2009-10-16 23:29:00 +00:00
Walter van Niftrik
f2db73e55d
SCI: Fix bug in Message() recursion
...
svn-id: r44890
2009-10-11 03:40:11 +00:00
Walter van Niftrik
bb381d3a52
SCI: Fixed bug in new Message() code
...
svn-id: r44873
2009-10-10 13:47:26 +00:00
Willem Jan Palenstijn
3aa8699874
SCI: Fix warnings
...
svn-id: r44869
2009-10-10 12:13:34 +00:00
Walter van Niftrik
6c1cac3956
SCI: kMessage() rewrite
...
svn-id: r44860
2009-10-10 02:16:23 +00:00
Martin Kiewitz
06f5393ed4
SCI: fixed crash in sq5/german (umlauts)
...
svn-id: r44587
2009-10-04 06:39:07 +00:00
Filippos Karapetis
1bbab8f191
Some renaming:
...
getresourceManager -> getResourceManger
resourceManager -> resMan
segmentManager ->segMan
svn-id: r43908
2009-09-02 12:02:37 +00:00
Walter van Niftrik
41e24b7495
SCI: Fix messages in QFG remake.
...
svn-id: r43850
2009-08-31 12:32:05 +00:00
Filippos Karapetis
ed66cad677
- Simplified the parameters of some functions
...
- Replaced some EngineState parameters
- The SCI version is now obtained from the resource manager or the segment manager, thereby simplifying several functions
- Plugged 2 leaks in the fallback detector
- Renamed the segment manager and resource manager to "segmentManager" and "resourceManager" in all places, for consistency
svn-id: r43722
2009-08-25 08:38:14 +00:00
Walter van Niftrik
dd9e569325
SCI: Improved multilanguage support for SCI1 and SCI1.1.
...
svn-id: r43217
2009-08-10 18:37:47 +00:00
Walter van Niftrik
a6ed05740f
SCI: Moved resource36 handling into resource manager.
...
svn-id: r41349
2009-06-07 19:15:55 +00:00
Walter van Niftrik
9e196ce9f5
SCI: Message: Added support for escape sequences.
...
svn-id: r41169
2009-06-04 14:29:20 +00:00
Max Horn
bba91075bf
removed trailing whitespaces
...
svn-id: r40742
2009-05-20 17:53:31 +00:00
Walter van Niftrik
e35b77e0a7
SCI: Message: Added a few more subfunctions; cleanup.
...
svn-id: r40529
2009-05-13 19:03:12 +00:00
Walter van Niftrik
c299dbeb26
SCI: Merged Message() and GetMessage(). Set SCI1.1 to use SCI1 kernel table (for now).
...
svn-id: r40481
2009-05-12 12:31:09 +00:00
Walter van Niftrik
7f587a9d6b
SCI: Message: Added resource-internal recursion (currently untested).
...
svn-id: r40478
2009-05-12 11:28:15 +00:00
Walter van Niftrik
45ceef870a
SCI: Message: Fixed a bug when game requests message with seq != 1.
...
svn-id: r40450
2009-05-11 10:56:59 +00:00
Walter van Niftrik
4d55f8b8d7
SCI: Minor changes to Message(). Some of the text in KQ6 floppy should now be visible.
...
svn-id: r40441
2009-05-10 22:25:43 +00:00
Filippos Karapetis
7cd07d9581
Cleanup
...
svn-id: r40423
2009-05-10 14:57:27 +00:00
Filippos Karapetis
d34d5f56b6
Cleanup
...
svn-id: r40422
2009-05-10 14:04:56 +00:00
Filippos Karapetis
53f24f3e43
Applied patch by waltervn to remove the length parameter from getText() and fixed a silly bug in getLength()
...
svn-id: r40421
2009-05-10 13:47:38 +00:00
Filippos Karapetis
3592801a57
Objectified and cleaned up the MessageState class
...
svn-id: r40419
2009-05-10 13:15:14 +00:00
Walter van Niftrik
f4bcd1680f
SCI: GetMessage: lock resource.
...
svn-id: r40390
2009-05-08 16:21:51 +00:00
Filippos Karapetis
efc28c1be6
Fixed the GetMessage kernel opcode. Eco Quest 1 text is showing up correctly now
...
svn-id: r40093
2009-04-23 18:46:41 +00:00
Filippos Karapetis
bd2c2b0e50
WIP code for kGetMessage (tested with Eco Quest 1). Currently, it doesn't always work for some reason...
...
svn-id: r40092
2009-04-23 18:17:35 +00:00
Filippos Karapetis
1e29983d8e
Replaced getInt16, getUInt16 and putInt16
...
svn-id: r39189
2009-03-07 16:14:20 +00:00
Jordi Vilalta Prat
82872a7033
SCI: Start converting MessageState into a class
...
svn-id: r38989
2009-03-01 00:18:30 +00:00
Jordi Vilalta Prat
7050c7b03f
SCI: Use the ResourceType enum instead of integers where it makes sense
...
svn-id: r38988
2009-02-28 23:46:50 +00:00
Greg Frieger
61ab59138a
resource_t struct replaced with stub Resource class for future objectifying. Also the crash when exiting SCI1 games was fixed
...
svn-id: r38982
2009-02-28 21:59:49 +00:00
Greg Frieger
4dd1b7dad5
Turned ResourceManager into a class, along with all related functions
...
svn-id: r38978
2009-02-28 20:45:36 +00:00
Jordi Vilalta Prat
501e4bb91a
SCI: Renamed some kernel types and general cleanup
...
svn-id: r38961
2009-02-28 11:12:59 +00:00
Max Horn
041869ed36
SCI: Untangling #include dependencies a bit
...
svn-id: r38740
2009-02-21 19:54:15 +00:00
Oystein Eftevaag
25f7c37171
Wrapped the SCI engine in the Sci namespace.
...
svn-id: r38676
2009-02-21 10:23:36 +00:00
Paweł Kołodziejski
b70f3ba603
formating
...
svn-id: r38605
2009-02-20 17:09:22 +00:00
Max Horn
a2aba2f18e
SCI: Renamed resource_mgr_t -> ResourceManager; added remark to 'the other resource manager' that it should be renamed to GraphicsManager or so
...
svn-id: r38592
2009-02-20 15:24:22 +00:00