Commit Graph

147 Commits

Author SHA1 Message Date
Max Horn
cc236d9799 PS2: Add some stubs for the ps2 port to our primary build system (incomplete WIP)
svn-id: r44800
2009-10-08 20:59:53 +00:00
Max Horn
42120ed626 Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
2009-10-08 19:41:38 +00:00
Max Lingua
36c2625f07 Here we have:
- dropped gBitFormat 

 - added extra param "const Graphics::PixelFormat *" to 

    OSystem_PS2::initSize

    OSystem_PS2::setMouseCursor

Note! To compile on SVN you will have (for now ;-) to create
few few empty folders by hand, note very elegant but will
keep you going until when we (ehm...) refine the PS2 Makefile.

Here comes the brute force script I use inside backends/platform/ps2

mkdir -p backends/platform/ps2
mkdir -p base
mkdir -p engines/scumm
mkdir -p engines/scumm/he
mkdir -p engines/scumm/imuse
mkdir -p engines/scumm/imuse_digi
mkdir -p engines/scumm/insane
mkdir -p engines/scumm/smush
mkdir -p engines/agi
mkdir -p engines/agos
mkdir -p engines/cine
mkdir -p engines/cruise
mkdir -p engines/drascula
mkdir -p engines/gob
mkdir -p engines/gob/demos
mkdir -p engines/gob/save
mkdir -p engines/gob/sound
mkdir -p engines/igor
mkdir -p engines/igor/parts
mkdir -p engines/kyra
mkdir -p engines/lure
mkdir -p engines/made
mkdir -p engines/parallaction
mkdir -p engines/queen
mkdir -p engines/saga
mkdir -p engines/sky
mkdir -p engines/sky/music
mkdir -p engines/sword1
mkdir -p engines/sword2
mkdir -p engines/touche
mkdir -p gui
mkdir -p graphics
mkdir -p graphics/fonts
mkdir -p graphics/scaler
mkdir -p graphics/video
mkdir -p graphics/video/coktelvideo
mkdir -p sound
mkdir -p sound/mods
mkdir -p sound/softsynth
mkdir -p sound/softsynth/opl
mkdir -p backends/events/default
mkdir -p backends/fs
mkdir -p backends/fs/amigaos4
mkdir -p backends/fs/ds
mkdir -p backends/fs/palmos
mkdir -p backends/fs/posix
mkdir -p backends/fs/ps2
mkdir -p backends/fs/psp
mkdir -p backends/fs/symbian
mkdir -p backends/fs/windows
mkdir -p backends/fs/wii
mkdir -p backends/keymapper
mkdir -p backends/midi
mkdir -p backends/plugins/dc
mkdir -p backends/plugins/posix
mkdir -p backends/plugins/sdl
mkdir -p backends/plugins/win32
mkdir -p backends/saves
mkdir -p backends/saves/default
mkdir -p backends/saves/posix
mkdir -p backends/saves/psp
mkdir -p backends/timer/default
mkdir -p backends/vkeybd
mkdir -p common

I know, you don't need all those "-p" but it looks more consistent ;-)

svn-id: r44683
2009-10-05 23:46:39 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Max Horn
6ea572b183 typo
svn-id: r44333
2009-09-25 09:08:17 +00:00
Max Lingua
93c9194504 Reverted my previous change (fprintf vs fputs),
and properly implemented fputs for stderr case
on PS2 ;-)

svn-id: r42433
2009-07-13 00:55:30 +00:00
Max Lingua
a0c3754971 Split _eof vs. _err.
Latter defaults to false for now, there are hooks
for possible future implementation.

svn-id: r42428
2009-07-12 21:58:00 +00:00
Max Lingua
55cda3aa25 ScummVM/PS2 bugs fixed by this commit:
- general file write corruption (eg. ScummVM.ini, etc.)

 - COMI specific save crash / corruption
   (added option in engines/scumm/saveload.cpp to disable
    thumbnails on PS2, as emergency fallback in case the
    fix should prove to be insufficient)

 - implemented _screenChange logic
   (fixes grabOverlay & COMI popup menu)

 - fixed higher pitch (chipmunk fx)

 - made NET IRXs optional to allow it to work on fat PS2 without net+hd

 - fixed cursor restore on RTL

 - added "." as R2 to skip single lines of dialog

 - added write cache

svn-id: r42404
2009-07-12 05:38:08 +00:00
Max Horn
d3ca315761 PS2: Don't overload fillScreen with a dummy, just use the inherited version
svn-id: r41933
2009-06-28 19:58:30 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Johannes Schickel
c97a1aed74 Also strip trailing whitespaces in C and Objective-C source files. (Seems I forgot that we got those too :-P)
svn-id: r40872
2009-05-24 21:53:29 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Lingua
6d87064950 Implemented _overlayFormat in Gs2dScreen
Modified PS2FSNode openForReading -> createReadStream
                   openForWriting -> createWriteStream

Started Common::EventManager *OSystem::getEventManager()
on backend side...

svn-id: r39141
2009-03-06 00:21:06 +00:00
Max Lingua
51d25d0086 Removed stale READ_PS2.TXT
svn-id: r39104
2009-03-04 05:00:15 +00:00
Max Lingua
804910c422 - 0.13.x friendly ;-)
- new GUI/themes

- no more funky colors!

- load/delete saved games


- cleaned-up Makefile.PS2 :
- dropped multiple extra paths
- dropped deprecated deps (UCL, MPEG2)


- all possible devices are supported to store, play and save games:

- CD
- HD
- USB
- MC
- REMOTE ! (this could actually be anywhere on the internet
as long as you run "ps2client listen" on the machine on
the other side that hosts the games)


- tested from :
- ps2link
- uLE
- toxicOS


- tested with:
- bass
- bs1
- mi1
- comi
- indy4
- ft
- ite
- ihnm
- elvira1
- dig
- kyra
- lure
- simon2
- goblins1

Played all those games in 1 session using RTL. Very smooth,
sub-second RTL experience. No crash!


- new PAL/NTSC detection : we are now reading the flavor from PS2 ROM,
it should work on all PS2 slim too


- new PAL TV centering : no more missing chunk of games on top/bottom


- we can now read the savefiles from Linux/SDL and other backends!
if you add that you can read them from remote together with the
games that you already have there, you can imagine the fun ;-)


- we fully implement RTL with every games/engine


- we nicely reboot / shutdown on quit


- fully support for themes/savegames paths. Run from MC, play the
games on remote and store your data on USB or HD. No limits!


- universal write/read for every media (of course no write on CD/DVD!)


- fully async / DMA read-write access to every media (even MC!)


- optimized cache/read-ahead for every media - now COMI is fast and
enjoyable from remote as it is from CD ;-)


- non polluting MC storage, just 1 folder + 1 icon, so that you can
copy all your settings / saved games to another MC in one go!

svn-id: r39102
2009-03-04 03:55:00 +00:00
Max Horn
e7afcecda2 Removed default implementations of OSystem::getOverlayHeight() and getOverlayWidth()
svn-id: r36152
2009-01-30 16:23:41 +00:00
Max Horn
c69ebfd798 Moved default implementations for various OSystem methods into a new class BaseBackend
svn-id: r36135
2009-01-30 03:35:47 +00:00
Max Horn
8f16458e9b Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
svn-id: r36014
2009-01-23 03:41:36 +00:00
Max Horn
e4b013f616 Renamed OSystem::openConfigFileForReading & openConfigFileForWriting to createConfigReadStream & createConfigWriteStream, in order to make it clear that the *caller* is responsible for deleting the streams (i.e., 'owns' them)
svn-id: r36013
2009-01-23 03:30:40 +00:00
Max Horn
0034aa3b9c Got rid of several occurrences of gBitFormat
svn-id: r35995
2009-01-22 04:59:09 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
edf9f24926 Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
svn-id: r34912
2008-11-06 15:02:50 +00:00
Max Horn
36311eefb4 OSYSTEM: Pushed out some port specific code from common/system.cpp to the respective ports
svn-id: r34812
2008-10-16 17:18:15 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Lingua
8c807529a7 Added "DEPDIR := .deps" in Makefile.ps2
Thanks Max [the other one] for pointing it out!

svn-id: r33117
2008-07-20 01:44:40 +00:00
Max Lingua
282cb3c0df 1. Re-added "rpckbd" as in 0.11.0
2. Committed only its source, you will need to do a make inside its folder
   before being able to compile our beloved PlayStation2 backend.

Enjoy,
 -max

svn-id: r33115
2008-07-20 01:30:47 +00:00
Max Horn
0f74124d78 Committing PS2 changes on behalf of the other Max ;)
svn-id: r33089
2008-07-17 15:56:24 +00:00
Max Horn
3b1a60c3b2 Removed obsolete ::clearSoundCallback() code
svn-id: r32826
2008-06-28 15:13:54 +00:00
Robert Göffringmann
4f30f09456 forgot to commit these
svn-id: r31099
2008-03-10 20:34:34 +00:00
Robert Göffringmann
3b27b9fa43 the ps2 changes from the 0.11.1 release, plus some bugfixes and cleanup.
svn-id: r31034
2008-03-03 00:41:59 +00:00
Jordi Vilalta Prat
d6c34bdc4b Fixed the spaces before tabs.
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
c54562d9a3 The PS2, DS and PalmOS ports currently do not properly implement their SaveFileManagers -- flagging the incorrect & invalid code by making it not compile. Note: Portser should probably also fix their code in the 0.11 branch
svn-id: r30079
2007-12-30 13:05:38 +00:00
Eugene Sandulenko
ef319ad674 Patch #1859448: Add OSystem::getTimeAndDate API
svn-id: r30034
2007-12-28 07:43:52 +00:00
Eugene Sandulenko
d4d072fe04 Patch #1857121: Refactoring of the getSavePath method
svn-id: r30032
2007-12-28 07:37:04 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
dc91dcde00 Adding some missing stuff to the PS2 port (it still will require quite some work to get it working again)
svn-id: r27799
2007-06-30 21:20:47 +00:00
Max Horn
2b23374468 Converted lots of code to use Common::ASCII_* and COMMON::KEYCODE_* constants. This also revealed the evil mixing of keycodes and ascii we do in many places :-/
svn-id: r27616
2007-06-22 20:04:44 +00:00
Max Horn
b51f2f3212 Implemented the OSystem framebuffer API, as discussed on scummvm-devel. All changes are just fine, and won't cause any compile problems or regressions, despite the fact that I can't test most of the non-SDL backend changes, at an improbability level of two to the power of two hundred and seventy-six thousand to one against - possibly much higher. Anything you still can't cope with is therefore your own problem. Please relax.
svn-id: r27548
2007-06-19 22:39:59 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
d4660cce55 Removing more semicola
svn-id: r26597
2007-04-26 19:08:53 +00:00
Max Horn
995a4d7cff Some fixes to cope with the move of the event code from OSystem to Common
svn-id: r26233
2007-03-18 21:55:57 +00:00
Max Horn
ed54ea9155 Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
2007-03-17 19:02:05 +00:00
Max Horn
4c14cf6d1a Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
svn-id: r23974
2006-09-23 00:42:35 +00:00
Max Horn
4ee581adb5 Fixed some broken #include's (the PS2 and Symbian may need more fixed, though)
svn-id: r23666
2006-08-04 17:47:57 +00:00
Max Horn
1d8d9f5510 Moving remaining platform/backends code, as previously threatened
svn-id: r23380
2006-07-06 21:44:48 +00:00