diff options
author | Max Lingua | 2009-03-04 03:55:00 +0000 |
---|---|---|
committer | Max Lingua | 2009-03-04 03:55:00 +0000 |
commit | 804910c42219ddbbc428f619515952c1474e9096 (patch) | |
tree | 45d7676d7e6033b9ea14c71ff6527fc7e949cf8a /backends/platform/ps2/systemps2.h | |
parent | 3a35b5b5f25a6ff5d20be5374bdb505f51ee3a43 (diff) | |
download | scummvm-rg350-804910c42219ddbbc428f619515952c1474e9096.tar.gz scummvm-rg350-804910c42219ddbbc428f619515952c1474e9096.tar.bz2 scummvm-rg350-804910c42219ddbbc428f619515952c1474e9096.zip |
- 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
Diffstat (limited to 'backends/platform/ps2/systemps2.h')
-rw-r--r-- | backends/platform/ps2/systemps2.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h index 7f29677ba5..ba3fc1b7ff 100644 --- a/backends/platform/ps2/systemps2.h +++ b/backends/platform/ps2/systemps2.h @@ -26,9 +26,10 @@ #ifndef SYSTEMPS2_H #define SYSTEMPS2_H -#include "backends/base-backend.h" +#include "common/system.h" class DefaultTimerManager; +class DefaultSaveFileManager; class Gs2dScreen; class Ps2Input; @@ -52,7 +53,7 @@ namespace Audio { class MixerImpl; }; -class OSystem_PS2 : public BaseBackend { +class OSystem_PS2 : public OSystem { public: OSystem_PS2(const char *elfPath); virtual ~OSystem_PS2(void); @@ -76,8 +77,6 @@ public: virtual void clearOverlay(); virtual void grabOverlay(OverlayColor *buf, int pitch); virtual void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h); - virtual int16 getOverlayHeight() { return getHeight(); } - virtual int16 getOverlayWidth() { return getWidth(); } virtual bool showMouse(bool visible); @@ -109,10 +108,10 @@ public: virtual void quit(); - virtual Common::SeekableReadStream *createConfigReadStream(); - virtual Common::WriteStream *createConfigWriteStream(); + virtual Common::SeekableReadStream *openConfigFileForReading(); + virtual Common::WriteStream *openConfigFileForWriting(); - virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<555>(); } + virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<1555>(); } virtual Common::SaveFileManager *getSavefileManager(); virtual FilesystemFactory *getFilesystemFactory(); @@ -122,13 +121,19 @@ public: void timerThread(void); void soundThread(void); void msgPrintf(int millis, char *format, ...); - void makeConfigPath(char *dest); + void makeConfigPath(void); + bool prepMC(); void powerOffCallback(void); + + bool mcPresent(void); bool hddPresent(void); bool usbMassPresent(void); + bool netPresent(void); bool runningFromHost(void); + int getBootDevice() { return _bootDevice; } + private: void startIrxModules(int numModules, IrxReference *modules); @@ -141,9 +146,10 @@ private: bool _mouseVisible; - bool _useMouse, _useKbd, _useHdd, _usbMassLoaded; + bool _useMouse, _useKbd, _useHdd, _usbMassLoaded, _useNet; Ps2SaveFileManager *_saveManager; + // DefaultSaveFileManager *_saveManager; Gs2dScreen *_screen; Ps2Input *_input; @@ -161,6 +167,8 @@ private: static const GraphicsMode _graphicsMode; int _bootDevice; + char *_bootPath; + char *_configFile; }; #endif // SYSTEMPS2_H |