2007-05-30 21:56:52 +00:00
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers , whose names
* are too numerous to list here . Please refer to the COPYRIGHT
* file distributed with this source distribution .
2002-09-27 23:27:14 +00:00
*
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version 2
* of the License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
2005-10-18 01:30:26 +00:00
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 , USA .
2002-09-27 23:27:14 +00:00
*
2006-02-11 10:08:56 +00:00
* $ URL $
* $ Id $
2002-09-27 23:27:14 +00:00
*/
2004-02-09 01:27:27 +00:00
# include "base/version.h"
2003-11-05 00:59:03 +00:00
# include "common/config-manager.h"
2007-03-17 16:05:16 +00:00
# include "common/events.h"
2006-06-24 08:07:48 +00:00
# include "common/fs.h"
2003-11-05 00:59:03 +00:00
# include "common/util.h"
2008-08-14 06:51:04 +00:00
# include "common/savefile.h"
2005-05-16 00:26:23 +00:00
# include "common/system.h"
2003-11-05 00:59:03 +00:00
2003-09-08 18:09:32 +00:00
# include "gui/about.h"
# include "gui/browser.h"
# include "gui/chooser.h"
# include "gui/launcher.h"
2007-02-18 18:23:52 +00:00
# include "gui/massadd.h"
2003-09-08 18:09:32 +00:00
# include "gui/message.h"
2009-01-02 03:21:40 +00:00
# include "gui/GuiManager.h"
2003-09-08 18:09:32 +00:00
# include "gui/options.h"
2008-11-11 12:13:55 +00:00
# include "gui/saveload.h"
2003-09-08 18:09:32 +00:00
# include "gui/EditTextWidget.h"
# include "gui/ListWidget.h"
2003-11-03 05:27:53 +00:00
# include "gui/TabWidget.h"
# include "gui/PopUpWidget.h"
2008-11-11 12:13:55 +00:00
# include "gui/ThemeEval.h"
2008-06-16 18:47:32 +00:00
# include "graphics/cursorman.h"
2002-09-27 23:27:14 +00:00
2003-11-05 12:25:42 +00:00
# include "sound/mididrv.h"
2007-02-18 18:23:52 +00:00
2003-10-08 21:59:23 +00:00
using Common : : ConfigManager ;
2002-09-27 23:27:14 +00:00
2003-11-10 23:40:48 +00:00
namespace GUI {
2002-09-27 23:27:14 +00:00
enum {
2002-09-30 00:55:47 +00:00
kStartCmd = ' STRT ' ,
2003-09-08 18:09:32 +00:00
kAboutCmd = ' ABOU ' ,
2002-09-30 00:55:47 +00:00
kOptionsCmd = ' OPTN ' ,
2002-10-13 11:51:48 +00:00
kAddGameCmd = ' ADDG ' ,
2002-11-21 13:11:29 +00:00
kEditGameCmd = ' EDTG ' ,
kRemoveGameCmd = ' REMG ' ,
2008-07-30 21:48:45 +00:00
kLoadGameCmd = ' LOAD ' ,
2003-11-07 16:01:51 +00:00
kQuitCmd = ' QUIT ' ,
2005-07-30 21:11:48 +00:00
2003-11-07 16:01:51 +00:00
kCmdGlobalGraphicsOverride = ' OGFX ' ,
kCmdGlobalAudioOverride = ' OSFX ' ,
2005-04-13 00:11:49 +00:00
kCmdGlobalMIDIOverride = ' OMID ' ,
2004-06-29 14:23:39 +00:00
kCmdGlobalVolumeOverride = ' OVOL ' ,
2005-05-16 06:33:33 +00:00
kCmdChooseSoundFontCmd = ' chsf ' ,
2004-06-29 14:23:39 +00:00
kCmdExtraBrowser = ' PEXT ' ,
kCmdGameBrowser = ' PGME ' ,
kCmdSaveBrowser = ' PSAV '
2002-09-27 23:27:14 +00:00
} ;
2002-11-21 02:19:02 +00:00
2004-12-30 12:54:04 +00:00
/*
* TODO : Clean up this ugly design : we subclass EditTextWidget to perform
* input validation . It would be much more elegant to use a decorator pattern ,
* or a validation callback , or something like that .
*/
class DomainEditTextWidget : public EditTextWidget {
public :
2006-06-03 13:33:39 +00:00
DomainEditTextWidget ( GuiObject * boss , const String & name , const String & text )
2006-03-09 05:18:00 +00:00
: EditTextWidget ( boss , name , text ) {
2004-12-30 12:54:04 +00:00
}
2005-07-30 21:11:48 +00:00
2004-12-30 12:54:04 +00:00
protected :
2006-06-20 22:50:27 +00:00
bool tryInsertChar ( byte c , int pos ) {
2004-12-30 12:54:04 +00:00
if ( isalnum ( c ) | | c = = ' - ' | | c = = ' _ ' ) {
2005-01-29 16:30:51 +00:00
_editString . insertChar ( c , pos ) ;
2004-12-30 12:54:04 +00:00
return true ;
}
return false ;
}
} ;
2002-11-21 14:12:55 +00:00
/*
* A dialog that allows the user to edit a config game entry .
2002-11-21 15:24:38 +00:00
* TODO : add widgets for some / all of the following
* - Maybe scaler / graphics mode . But there are two problems :
* 1 ) Different backends can have different scalers with different names ,
2002-11-21 14:12:55 +00:00
* so we first have to add a way to query those . . . no Ender , I don ' t
* think a bitmasked property ( ) value is nice for this , because we would
* have to add to the bitmask values whenever a backends adds a new scaler ) .
2002-11-21 15:24:38 +00:00
* 2 ) At the time the launcher is running , the GFX backend is already setup .
* So when a game is run via the launcher , the custom scaler setting for it won ' t be
2002-11-21 14:12:55 +00:00
* used . So we ' d also have to add an API to change the scaler during runtime
* ( the SDL backend can already do that based on user input , but there is no API
* to achieve it )
* If the APIs for 1 & 2 are in place , we can think about adding this to the Edit & Option dialogs
*/
2003-11-05 12:25:42 +00:00
class EditGameDialog : public OptionsDialog {
2003-10-02 17:43:02 +00:00
typedef Common : : String String ;
typedef Common : : StringList StringList ;
2002-11-21 14:12:55 +00:00
public :
2006-03-09 02:52:51 +00:00
EditGameDialog ( const String & domain , const String & desc ) ;
2002-11-21 14:12:55 +00:00
2004-03-15 02:28:47 +00:00
void open ( ) ;
void close ( ) ;
2002-11-21 14:12:55 +00:00
virtual void handleCommand ( CommandSender * sender , uint32 cmd , uint32 data ) ;
protected :
2003-03-06 19:52:54 +00:00
EditTextWidget * _descriptionWidget ;
2004-12-30 12:54:04 +00:00
DomainEditTextWidget * _domainWidget ;
2003-11-05 12:25:42 +00:00
2004-06-29 14:23:39 +00:00
StaticTextWidget * _gamePathWidget ;
StaticTextWidget * _extraPathWidget ;
StaticTextWidget * _savePathWidget ;
2003-11-05 00:59:03 +00:00
PopUpWidget * _langPopUp ;
PopUpWidget * _platformPopUp ;
2003-11-07 16:01:51 +00:00
CheckboxWidget * _globalGraphicsOverride ;
CheckboxWidget * _globalAudioOverride ;
2005-04-13 00:11:49 +00:00
CheckboxWidget * _globalMIDIOverride ;
2003-11-07 16:01:51 +00:00
CheckboxWidget * _globalVolumeOverride ;
2002-11-21 14:12:55 +00:00
} ;
2006-03-09 02:52:51 +00:00
EditGameDialog : : EditGameDialog ( const String & domain , const String & desc )
2008-08-07 10:53:33 +00:00
: OptionsDialog ( domain , " GameOptions " ) {
2003-11-03 23:42:53 +00:00
2004-06-29 14:23:39 +00:00
// GAME: Path to game data (r/o), extra data (r/o), and save data (r/w)
String gamePath ( ConfMan . get ( " path " , _domain ) ) ;
String extraPath ( ConfMan . get ( " extrapath " , _domain ) ) ;
String savePath ( ConfMan . get ( " savepath " , _domain ) ) ;
2003-11-03 05:27:53 +00:00
// GAME: Determine the description string
2003-10-08 21:59:23 +00:00
String description ( ConfMan . get ( " description " , domain ) ) ;
2006-03-28 09:42:54 +00:00
if ( description . empty ( ) & & ! desc . empty ( ) ) {
2006-02-18 11:12:08 +00:00
description = desc ;
2002-11-21 14:12:55 +00:00
}
2003-09-08 15:38:34 +00:00
2003-11-03 23:42:53 +00:00
// GUI: Add tab widget
2008-08-07 10:53:33 +00:00
TabWidget * tab = new TabWidget ( this , " GameOptions.TabWidget " ) ;
2003-11-03 23:42:53 +00:00
2003-11-04 21:17:33 +00:00
//
// 1) The game tab
//
2003-11-03 05:27:53 +00:00
tab - > addTab ( " Game " ) ;
// GUI: Label & edit widget for the game ID
2008-08-07 10:53:33 +00:00
new StaticTextWidget ( tab , " GameOptions_Game.Id " , " ID: " ) ;
_domainWidget = new DomainEditTextWidget ( tab , " GameOptions_Game.Domain " , _domain ) ;
2003-11-03 05:27:53 +00:00
// GUI: Label & edit widget for the description
2008-08-07 10:53:33 +00:00
new StaticTextWidget ( tab , " GameOptions_Game.Name " , " Name: " ) ;
_descriptionWidget = new EditTextWidget ( tab , " GameOptions_Game.Desc " , description ) ;
2003-11-03 05:27:53 +00:00
2004-06-29 14:23:39 +00:00
// Language popup
2009-01-18 14:42:26 +00:00
_langPopUp = new PopUpWidget ( tab , " GameOptions_Game.Lang " , " Language: " ) ;
2003-11-05 00:59:03 +00:00
_langPopUp - > appendEntry ( " <default> " ) ;
_langPopUp - > appendEntry ( " " ) ;
const Common : : LanguageDescription * l = Common : : g_languages ;
2003-12-30 19:07:55 +00:00
for ( ; l - > code ; + + l ) {
2003-11-05 00:59:03 +00:00
_langPopUp - > appendEntry ( l - > description , l - > id ) ;
}
// Platform popup
2009-01-18 14:42:26 +00:00
_platformPopUp = new PopUpWidget ( tab , " GameOptions_Game.Platform " , " Platform: " ) ;
2003-11-05 00:59:03 +00:00
_platformPopUp - > appendEntry ( " <default> " ) ;
_platformPopUp - > appendEntry ( " " ) ;
2004-02-07 17:12:10 +00:00
const Common : : PlatformDescription * p = Common : : g_platforms ;
for ( ; p - > code ; + + p ) {
_platformPopUp - > appendEntry ( p - > description , p - > id ) ;
}
2003-11-03 05:27:53 +00:00
2003-11-04 21:17:33 +00:00
//
2005-04-13 00:11:49 +00:00
// 3) The graphics tab
2003-11-04 21:17:33 +00:00
//
2008-08-14 23:17:41 +00:00
_graphicsTabId = tab - > addTab ( g_system - > getOverlayWidth ( ) > 320 ? " Graphics " : " GFX " ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
_globalGraphicsOverride = new CheckboxWidget ( tab , " GameOptions_Graphics.EnableTabCheckbox " , " Override global graphic settings " , kCmdGlobalGraphicsOverride , 0 ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
addGraphicControls ( tab , " GameOptions_Graphics. " ) ;
2003-11-04 21:17:33 +00:00
//
2005-04-13 00:11:49 +00:00
// 4) The audio tab
2003-11-04 21:17:33 +00:00
//
tab - > addTab ( " Audio " ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
_globalAudioOverride = new CheckboxWidget ( tab , " GameOptions_Audio.EnableTabCheckbox " , " Override global audio settings " , kCmdGlobalAudioOverride , 0 ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
addAudioControls ( tab , " GameOptions_Audio. " ) ;
addSubtitleControls ( tab , " GameOptions_Audio. " ) ;
2005-04-13 00:11:49 +00:00
//
2006-05-30 17:35:57 +00:00
// 5) The volume tab
2005-04-13 00:11:49 +00:00
//
2007-06-11 07:57:39 +00:00
tab - > addTab ( " Volume " ) ;
2005-04-13 00:11:49 +00:00
2008-08-07 10:53:33 +00:00
_globalVolumeOverride = new CheckboxWidget ( tab , " GameOptions_Volume.EnableTabCheckbox " , " Override global volume settings " , kCmdGlobalVolumeOverride , 0 ) ;
2005-04-13 00:11:49 +00:00
2008-08-07 10:53:33 +00:00
addVolumeControls ( tab , " GameOptions_Volume. " ) ;
2003-11-04 21:17:33 +00:00
2003-11-05 12:25:42 +00:00
//
2006-05-30 17:35:57 +00:00
// 6) The MIDI tab
2003-11-05 12:25:42 +00:00
//
2006-05-30 17:35:57 +00:00
tab - > addTab ( " MIDI " ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
_globalMIDIOverride = new CheckboxWidget ( tab , " GameOptions_MIDI.EnableTabCheckbox " , " Override global MIDI settings " , kCmdGlobalMIDIOverride , 0 ) ;
2003-11-07 16:01:51 +00:00
2008-08-07 10:53:33 +00:00
addMIDIControls ( tab , " GameOptions_MIDI. " ) ;
2003-11-04 21:17:33 +00:00
2006-06-15 02:30:05 +00:00
//
// 2) The 'Path' tab
//
tab - > addTab ( " Paths " ) ;
// These buttons have to be extra wide, or the text will be truncated
// in the small version of the GUI.
// GUI: Button + Label for the game path
2008-08-07 10:53:33 +00:00
new ButtonWidget ( tab , " GameOptions_Paths.Gamepath " , " Game Path: " , kCmdGameBrowser , 0 ) ;
_gamePathWidget = new StaticTextWidget ( tab , " GameOptions_Paths.GamepathText " , gamePath ) ;
2006-06-15 02:30:05 +00:00
// GUI: Button + Label for the additional path
2008-08-07 10:53:33 +00:00
new ButtonWidget ( tab , " GameOptions_Paths.Extrapath " , " Extra Path: " , kCmdExtraBrowser , 0 ) ;
_extraPathWidget = new StaticTextWidget ( tab , " GameOptions_Paths.ExtrapathText " , extraPath ) ;
2006-06-15 02:30:05 +00:00
// GUI: Button + Label for the save path
2008-08-07 10:53:33 +00:00
new ButtonWidget ( tab , " GameOptions_Paths.Savepath " , " Save Path: " , kCmdSaveBrowser , 0 ) ;
_savePathWidget = new StaticTextWidget ( tab , " GameOptions_Paths.SavepathText " , savePath ) ;
2008-12-22 11:22:15 +00:00
2003-11-03 23:42:53 +00:00
// Activate the first tab
tab - > setActiveTab ( 0 ) ;
2008-08-14 23:17:41 +00:00
_tabWidget = tab ;
2003-11-03 05:27:53 +00:00
2003-11-05 12:25:42 +00:00
// Add OK & Cancel buttons
2008-08-07 10:53:33 +00:00
new ButtonWidget ( this , " GameOptions.Cancel " , " Cancel " , kCloseCmd , 0 ) ;
new ButtonWidget ( this , " GameOptions.Ok " , " OK " , kOKCmd , 0 ) ;
2002-11-21 14:12:55 +00:00
}
2004-03-15 02:28:47 +00:00
void EditGameDialog : : open ( ) {
OptionsDialog : : open ( ) ;
2003-11-05 12:25:42 +00:00
2009-01-10 23:38:30 +00:00
String extraPath ( ConfMan . get ( " extrapath " , _domain ) ) ;
if ( extraPath . empty ( ) | | ! ConfMan . hasKey ( " extrapath " , _domain ) ) {
_extraPathWidget - > setLabel ( " None " ) ;
}
String savePath ( ConfMan . get ( " savepath " , _domain ) ) ;
if ( savePath . empty ( ) | | ! ConfMan . hasKey ( " savepath " , _domain ) ) {
_savePathWidget - > setLabel ( " Default " ) ;
}
2004-02-07 17:12:10 +00:00
int sel , i ;
2007-06-11 07:57:39 +00:00
bool e ;
2003-11-07 16:01:51 +00:00
2004-02-07 17:12:10 +00:00
// En-/disable dialog items depending on whether overrides are active or not.
2007-03-10 18:25:37 +00:00
e = ConfMan . hasKey ( " gfx_mode " , _domain ) | |
ConfMan . hasKey ( " render_mode " , _domain ) | |
ConfMan . hasKey ( " fullscreen " , _domain ) | |
2003-11-07 16:01:51 +00:00
ConfMan . hasKey ( " aspect_ratio " , _domain ) ;
_globalGraphicsOverride - > setState ( e ) ;
e = ConfMan . hasKey ( " music_driver " , _domain ) | |
2007-03-10 18:25:37 +00:00
ConfMan . hasKey ( " output_rate " , _domain ) | |
2009-05-13 21:02:03 +00:00
ConfMan . hasKey ( " opl_driver " , _domain ) | |
2006-05-13 17:30:04 +00:00
ConfMan . hasKey ( " subtitles " , _domain ) | |
ConfMan . hasKey ( " talkspeed " , _domain ) ;
2007-06-11 07:57:39 +00:00
_globalAudioOverride - > setState ( e ) ;
2003-11-07 16:01:51 +00:00
2007-06-11 07:57:39 +00:00
e = ConfMan . hasKey ( " music_volume " , _domain ) | |
2004-04-05 18:24:36 +00:00
ConfMan . hasKey ( " sfx_volume " , _domain ) | |
2004-04-06 11:50:35 +00:00
ConfMan . hasKey ( " speech_volume " , _domain ) ;
2007-06-11 07:57:39 +00:00
_globalVolumeOverride - > setState ( e ) ;
2007-03-10 18:25:37 +00:00
e = ConfMan . hasKey ( " soundfont " , _domain ) | |
ConfMan . hasKey ( " multi_midi " , _domain ) | |
ConfMan . hasKey ( " native_mt32 " , _domain ) | |
ConfMan . hasKey ( " enable_gs " , _domain ) | |
ConfMan . hasKey ( " midi_gain " , _domain ) ;
_globalMIDIOverride - > setState ( e ) ;
2003-11-07 16:01:51 +00:00
2003-11-05 12:25:42 +00:00
// TODO: game path
const Common : : LanguageDescription * l = Common : : g_languages ;
2004-02-07 17:12:10 +00:00
const Common : : Language lang = Common : : parseLanguage ( ConfMan . get ( " language " , _domain ) ) ;
2006-05-30 01:41:49 +00:00
2004-02-07 17:12:10 +00:00
sel = 0 ;
2006-05-30 01:41:49 +00:00
if ( ConfMan . hasKey ( " language " , _domain ) ) {
for ( i = 0 ; l - > code ; + + l , + + i ) {
if ( lang = = l - > id )
sel = i + 2 ;
}
2003-11-05 12:25:42 +00:00
}
_langPopUp - > setSelected ( sel ) ;
2004-02-07 17:12:10 +00:00
const Common : : PlatformDescription * p = Common : : g_platforms ;
const Common : : Platform platform = Common : : parsePlatform ( ConfMan . get ( " platform " , _domain ) ) ;
sel = 0 ;
for ( i = 0 ; p - > code ; + + p , + + i ) {
if ( platform = = p - > id )
sel = i + 2 ;
2003-11-05 12:25:42 +00:00
}
_platformPopUp - > setSelected ( sel ) ;
}
2004-03-15 02:28:47 +00:00
void EditGameDialog : : close ( ) {
if ( getResult ( ) ) {
2005-01-29 18:04:34 +00:00
ConfMan . set ( " description " , _descriptionWidget - > getEditString ( ) , _domain ) ;
2003-11-05 12:25:42 +00:00
2004-03-15 02:28:47 +00:00
Common : : Language lang = ( Common : : Language ) _langPopUp - > getSelectedTag ( ) ;
if ( lang < 0 )
ConfMan . removeKey ( " language " , _domain ) ;
else
ConfMan . set ( " language " , Common : : getLanguageCode ( lang ) , _domain ) ;
2003-11-05 12:25:42 +00:00
2006-06-03 13:33:39 +00:00
String gamePath ( _gamePathWidget - > getLabel ( ) ) ;
2006-03-28 09:42:54 +00:00
if ( ! gamePath . empty ( ) )
2004-06-29 14:23:39 +00:00
ConfMan . set ( " path " , gamePath , _domain ) ;
2006-06-03 13:33:39 +00:00
String extraPath ( _extraPathWidget - > getLabel ( ) ) ;
2006-03-28 09:42:54 +00:00
if ( ! extraPath . empty ( ) & & ( extraPath ! = " None " ) )
2004-06-29 14:23:39 +00:00
ConfMan . set ( " extrapath " , extraPath , _domain ) ;
2006-06-03 13:33:39 +00:00
String savePath ( _savePathWidget - > getLabel ( ) ) ;
2006-03-28 09:42:54 +00:00
if ( ! savePath . empty ( ) & & ( savePath ! = " Default " ) )
2004-07-01 10:24:42 +00:00
ConfMan . set ( " savepath " , savePath , _domain ) ;
2004-06-29 14:23:39 +00:00
2004-03-15 02:28:47 +00:00
Common : : Platform platform = ( Common : : Platform ) _platformPopUp - > getSelectedTag ( ) ;
if ( platform < 0 )
ConfMan . removeKey ( " platform " , _domain ) ;
else
ConfMan . set ( " platform " , Common : : getPlatformCode ( platform ) , _domain ) ;
}
OptionsDialog : : close ( ) ;
2003-11-05 12:25:42 +00:00
}
2003-03-06 19:52:54 +00:00
void EditGameDialog : : handleCommand ( CommandSender * sender , uint32 cmd , uint32 data ) {
2003-11-07 16:01:51 +00:00
switch ( cmd ) {
case kCmdGlobalGraphicsOverride :
setGraphicSettingsState ( data ! = 0 ) ;
draw ( ) ;
break ;
case kCmdGlobalAudioOverride :
setAudioSettingsState ( data ! = 0 ) ;
2006-05-13 17:30:04 +00:00
setSubtitleSettingsState ( data ! = 0 ) ;
2006-07-14 13:33:58 +00:00
if ( _globalVolumeOverride = = NULL )
2006-06-15 13:18:28 +00:00
setVolumeSettingsState ( data ! = 0 ) ;
2003-11-07 16:01:51 +00:00
draw ( ) ;
break ;
2005-04-13 00:11:49 +00:00
case kCmdGlobalMIDIOverride :
setMIDISettingsState ( data ! = 0 ) ;
draw ( ) ;
break ;
2003-11-07 16:01:51 +00:00
case kCmdGlobalVolumeOverride :
setVolumeSettingsState ( data ! = 0 ) ;
draw ( ) ;
break ;
2005-05-16 06:33:33 +00:00
case kCmdChooseSoundFontCmd : {
BrowserDialog browser ( " Select SoundFont " , false ) ;
if ( browser . runModal ( ) > 0 ) {
// User made this choice...
2008-10-02 16:58:59 +00:00
Common : : FSNode file ( browser . getResult ( ) ) ;
2007-06-05 21:02:35 +00:00
_soundFont - > setLabel ( file . getPath ( ) ) ;
2007-02-13 21:41:49 +00:00
2007-06-05 21:02:35 +00:00
if ( ! file . getPath ( ) . empty ( ) & & ( file . getPath ( ) ! = " None " ) )
2007-02-13 21:41:49 +00:00
_soundFontClearButton - > setEnabled ( true ) ;
else
_soundFontClearButton - > setEnabled ( false ) ;
2005-05-16 06:33:33 +00:00
draw ( ) ;
}
break ;
}
2004-06-29 14:23:39 +00:00
// Change path for the game
case kCmdGameBrowser : {
2005-08-10 18:30:55 +00:00
BrowserDialog browser ( " Select directory with game data " , true ) ;
2005-04-16 17:55:09 +00:00
if ( browser . runModal ( ) > 0 ) {
2004-11-20 21:35:49 +00:00
// User made his choice...
2008-10-02 16:58:59 +00:00
Common : : FSNode dir ( browser . getResult ( ) ) ;
2004-06-29 14:23:39 +00:00
// TODO: Verify the game can be found in the new directory... Best
// done with optional specific gameid to pluginmgr detectgames?
2008-10-02 16:58:59 +00:00
// FSList files = dir.listDir(FSNode::kListFilesOnly);
2004-06-29 14:23:39 +00:00
2007-06-05 21:02:35 +00:00
_gamePathWidget - > setLabel ( dir . getPath ( ) ) ;
2005-04-16 17:55:09 +00:00
draw ( ) ;
2004-06-29 14:23:39 +00:00
}
draw ( ) ;
break ;
}
// Change path for extra game data (eg, using sword cutscenes when playing via CD)
2005-07-30 21:11:48 +00:00
case kCmdExtraBrowser : {
2005-04-16 17:55:09 +00:00
BrowserDialog browser ( " Select additional game directory " , true ) ;
if ( browser . runModal ( ) > 0 ) {
2004-11-20 21:35:49 +00:00
// User made his choice...
2008-10-02 16:58:59 +00:00
Common : : FSNode dir ( browser . getResult ( ) ) ;
2007-06-05 21:02:35 +00:00
_extraPathWidget - > setLabel ( dir . getPath ( ) ) ;
2005-04-16 17:55:09 +00:00
draw ( ) ;
2004-06-29 14:23:39 +00:00
}
draw ( ) ;
break ;
}
// Change path for stored save game (perm and temp) data
case kCmdSaveBrowser : {
2005-04-16 17:55:09 +00:00
BrowserDialog browser ( " Select directory for saved games " , true ) ;
if ( browser . runModal ( ) > 0 ) {
2004-11-20 21:35:49 +00:00
// User made his choice...
2008-10-02 16:58:59 +00:00
Common : : FSNode dir ( browser . getResult ( ) ) ;
2007-06-05 21:02:35 +00:00
_savePathWidget - > setLabel ( dir . getPath ( ) ) ;
2005-04-16 17:55:09 +00:00
draw ( ) ;
2004-06-29 14:23:39 +00:00
}
draw ( ) ;
break ;
}
2004-03-15 02:28:47 +00:00
case kOKCmd : {
2002-11-21 16:56:29 +00:00
// Write back changes made to config object
2005-01-29 18:04:34 +00:00
String newDomain ( _domainWidget - > getEditString ( ) ) ;
2002-11-21 17:25:31 +00:00
if ( newDomain ! = _domain ) {
2008-08-03 08:05:19 +00:00
if ( newDomain . empty ( )
| | newDomain . hasPrefix ( " _ " )
| | newDomain = = ConfigManager : : kApplicationDomain
| | ConfMan . hasGameDomain ( newDomain ) ) {
2003-11-02 02:18:16 +00:00
MessageDialog alert ( " This game ID is already taken. Please choose another one. " ) ;
2002-11-21 17:25:31 +00:00
alert . runModal ( ) ;
return ;
}
2003-10-08 21:59:23 +00:00
ConfMan . renameGameDomain ( _domain , newDomain ) ;
2003-11-05 12:25:42 +00:00
_domain = newDomain ;
2002-11-21 17:25:31 +00:00
}
2003-11-07 16:01:51 +00:00
}
// FALL THROUGH to default case
default :
OptionsDialog : : handleCommand ( sender , cmd , data ) ;
2003-11-05 12:25:42 +00:00
}
}
2003-11-05 00:59:03 +00:00
2003-11-05 12:25:42 +00:00
# pragma mark -
2003-11-05 00:59:03 +00:00
2006-05-04 22:52:18 +00:00
LauncherDialog : : LauncherDialog ( )
2007-03-17 16:05:16 +00:00
: Dialog ( 0 , 0 , 320 , 200 ) {
2008-11-10 11:24:55 +00:00
_backgroundType = GUI : : ThemeEngine : : kDialogBackgroundMain ;
2005-05-16 00:26:23 +00:00
const int screenW = g_system - > getOverlayWidth ( ) ;
const int screenH = g_system - > getOverlayHeight ( ) ;
2005-07-30 21:11:48 +00:00
2005-05-16 00:26:23 +00:00
_w = screenW ;
_h = screenH ;
2006-03-14 02:19:38 +00:00
# ifndef DISABLE_FANCY_THEMES
2006-04-20 12:25:25 +00:00
_logo = 0 ;
2008-08-08 18:30:16 +00:00
if ( g_gui . xmlEval ( ) - > getVar ( " Globals.ShowLauncherLogo " ) = = 1 & & g_gui . theme ( ) - > supportsImages ( ) ) {
2008-08-05 16:23:17 +00:00
_logo = new GraphicsWidget ( this , " Launcher.Logo " ) ;
2006-05-29 14:55:43 +00:00
_logo - > useThemeTransparency ( true ) ;
2008-11-10 11:24:55 +00:00
_logo - > setGfx ( g_gui . theme ( ) - > getImageSurface ( ThemeEngine : : kImageLogo ) ) ;
2006-03-14 03:08:14 +00:00
2008-08-05 16:23:17 +00:00
new StaticTextWidget ( this , " Launcher.Version " , gScummVMVersionDate ) ;
2006-03-14 03:08:14 +00:00
} else
2008-08-05 16:23:17 +00:00
new StaticTextWidget ( this , " Launcher.Version " , gScummVMFullVersion ) ;
2006-03-14 03:08:14 +00:00
# else
// Show ScummVM version
2008-08-05 16:23:17 +00:00
new StaticTextWidget ( this , " Launcher.Version " , gScummVMFullVersion ) ;
2006-03-14 02:19:38 +00:00
# endif
2008-08-05 16:23:17 +00:00
new ButtonWidget ( this , " Launcher.QuitButton " , " Quit " , kQuitCmd , ' Q ' ) ;
new ButtonWidget ( this , " Launcher.AboutButton " , " About " , kAboutCmd , ' B ' ) ;
new ButtonWidget ( this , " Launcher.OptionsButton " , " Options " , kOptionsCmd , ' O ' ) ;
2006-03-07 05:39:52 +00:00
_startButton =
2008-08-05 16:23:17 +00:00
new ButtonWidget ( this , " Launcher.StartButton " , " Start " , kStartCmd , ' S ' ) ;
2005-05-16 00:26:23 +00:00
2008-09-14 18:19:22 +00:00
_loadButton =
- Merged the new RTL changes into the branch.
- Fixed conflicts.
- Added new RTL dialogs to the Theme Description files.
Full SVNMerge log:
==================
Merged revisions 33928,33930,33932-33936,33938-33940,33942-33943,33948,33950,33953,33967,33973,33976,33978,33980,33985,33991,33993,33999-34000,34006,34009,34011,34013,34015,34019,34021-34023,34025,34027-34028,34030,34032-34034,34036,34038-34039,34041,34046-34048,34050-34055,34057,34059-34065,34067,34072,34074,34076,34078-34081,34084,34086-34087,34089-34090,34093,34096-34102,34104,34107,34113,34116,34119,34122,34124,34126,34128,34131-34132,34135,34138,34141,34144,34146,34149,34152-34154,34156-34157,34160,34163-34164,34169,34173,34179-34194,34196-34198,34200-34201,34205-34206,34208-34217,34219-34225,34227-34228,34234-34237,34239-34249,34251-34279,34281-34284,34286-34288,34290-34320,34323-34324,34326,34328-34329,34332,34334,34336,34338-34340,34343-34353,34356-34357,34359-34371,34373,34375,34378,34381-34382,34384-34385,34389-34391,34393-34394,34396-34397,34399-34405,34407-34409,34411,34413,34415,34417-34420,34423-34426,34428-34438,34440-34454,34456-34458,34460,34462-34469,34472,34474,34479-34481,34483-34498,34501-34505,34508,34511-34518,34520-34524,34526-34563,34566-34569,34571-34590,34592,34595-34599,34602-34603 via svnmerge from
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk
........
r33928 | peres001 | 2008-08-16 08:39:58 +0200 (Sat, 16 Aug 2008) | 1 line
Fixed label positioning in BRA.
........
r33930 | peres001 | 2008-08-16 09:47:44 +0200 (Sat, 16 Aug 2008) | 1 line
Enabled interaction with movable zones - mainly NPCs - which are linked to animations.
........
r33932 | anotherguest | 2008-08-16 10:49:36 +0200 (Sat, 16 Aug 2008) | 1 line
Enable CINE
........
r33933 | peres001 | 2008-08-16 10:57:07 +0200 (Sat, 16 Aug 2008) | 1 line
Fixed half-invisible balloons.
........
r33934 | fingolfin | 2008-08-16 13:37:36 +0200 (Sat, 16 Aug 2008) | 1 line
Replaced ARM_USE_GFX_ASM by USE_ARM_GFX_ASM
........
r33935 | buddha_ | 2008-08-16 13:38:43 +0200 (Sat, 16 Aug 2008) | 1 line
Changed AdlibRegisterSoundInstrument's member variables from unsigned 16-bit to unsigned 8-bit. Maybe this'll fix the crash in AdlibSoundDriver::setupInstrument() eriktorbjorn was getting in Future Wars when teleporting from the photocopier room to the swamp. There was a OPLWriteReg(_opl, 0x80 | car, reg->sustainRelease) call with sustainRelease = 65452. Now there shouldn't be any such calls made because the sustainRelease value is always 8-bit now. Hopefully this won't break anything.
........
r33936 | eriktorbjorn | 2008-08-16 13:50:36 +0200 (Sat, 16 Aug 2008) | 2 lines
Removed unused variable.
........
r33938 | athrxx | 2008-08-16 14:38:37 +0200 (Sat, 16 Aug 2008) | 4 lines
- KYRA: FM-Towns/PC-98 Audio: fixed several bugs and got rid of some floating point arithmetic (or at least replaced some doubles with floats)
- Improved support for PC-98 music: HOF tracks seem to be fine, KYRA should be okay, too (I can't compare with an emulator since I am missing the floppy boot disk with the executable)
- There are still tempo issues. Some tracks play way too slow, others way too fast
- PC-98 sound effects in Kyra 1 don't work (I would need the floppy disk with the executable for that)
........
r33939 | peres001 | 2008-08-16 14:49:27 +0200 (Sat, 16 Aug 2008) | 1 line
Multiple balloons (answers) are now positioned correctly in BRA.
........
r33940 | peres001 | 2008-08-16 15:10:54 +0200 (Sat, 16 Aug 2008) | 1 line
Extended balloon manager to handle color constants and fixed color of text in balloons for BRA.
........
r33942 | athrxx | 2008-08-16 16:25:03 +0200 (Sat, 16 Aug 2008) | 1 line
KYRA: Fm-Towns Audio: fixed music fading
........
r33943 | athrxx | 2008-08-16 17:24:52 +0200 (Sat, 16 Aug 2008) | 1 line
KYRA: Fm-Towns Audio: fixed crash
........
r33948 | lordhoto | 2008-08-16 23:51:56 +0200 (Sat, 16 Aug 2008) | 2 lines
Cleanup.
........
r33950 | buddha_ | 2008-08-17 00:15:57 +0200 (Sun, 17 Aug 2008) | 5 lines
Workaround for bug #2054882 (FW: Impossible to survive entering monastery (regression)):
For Future Wars o1_compareGlobalVar now compares global variable 255 to be equal to everything.
The scripts probably tested global variable 255 for equality with some value (Maybe 143?)
to see whether copy protection was properly passed.
........
r33953 | lordhoto | 2008-08-17 00:30:47 +0200 (Sun, 17 Aug 2008) | 2 lines
Properly close files opened when checking for config file on WIN32.
........
r33967 | buddha_ | 2008-08-17 12:43:54 +0200 (Sun, 17 Aug 2008) | 1 line
Forwardport of branch-0-12-0's r33966: Fix to Future Wars's rendering of type 0 overlays (i.e. color sprites). Objects with negative frame values are supposed to be jumped over (Verified with disassembly).
........
r33973 | sev | 2008-08-17 20:58:23 +0200 (Sun, 17 Aug 2008) | 2 lines
Patch #2045543: Possible fix for Drascula's decodeRLE()
........
r33976 | buddha_ | 2008-08-17 22:53:18 +0200 (Sun, 17 Aug 2008) | 1 line
Added some documentation about how data is unpacked in gfxConvertSpriteToRaw (Learned this from trying to implement convertPI1_2 i.e. gfxConvertSpriteToRaw myself to see if that was the problem with the Operation Stealth's labyrinth arcade sequence).
........
r33978 | anotherguest | 2008-08-17 23:16:07 +0200 (Sun, 17 Aug 2008) | 1 line
Improved filehandling for securer and quicker way to get ref to file session
........
r33980 | athrxx | 2008-08-18 00:49:34 +0200 (Mon, 18 Aug 2008) | 4 lines
KYRA: FM-Towns/PC-98 Audio:
- improved accuracy
- complete percussion channel support (does not work atm though, since the instrument data is missing)
- some cleanup
........
r33985 | peres001 | 2008-08-18 09:12:05 +0200 (Mon, 18 Aug 2008) | 3 lines
* Split up blt routine (there is room for a ton of improvements)
* Added scaling as a new blt option
* Activated scaling for the main character in BRA
........
r33991 | knakos | 2008-08-18 19:24:25 +0200 (Mon, 18 Aug 2008) | 1 line
do away with the smush force redraw hack
........
r33993 | athrxx | 2008-08-18 19:42:32 +0200 (Mon, 18 Aug 2008) | 3 lines
KYRA: FM-Towns/PC-98 Audio:
- adpcm decoding for rhythm channel
- cleanup
........
r33999 | knakos | 2008-08-18 20:15:32 +0200 (Mon, 18 Aug 2008) | 1 line
switching to libTremolo
........
r34000 | anotherguest | 2008-08-18 20:16:24 +0200 (Mon, 18 Aug 2008) | 1 line
Do Deinit of pixel buffer when hiding menu.That saves 600KB in VGA games for low memory devices.
........
r34006 | robinwatts | 2008-08-18 22:04:15 +0200 (Mon, 18 Aug 2008) | 8 lines
Updates to the scummvm blitting code as discussed on the mailing list.
1) Remove DS version of the ARM blitters in favour of the 'normal' ARM one.
2) Update normal ARM blitter to use Carlo's clever algorithm.
3) Update C version with Max Horns patch (slightly tweaked - counting down
on loops is better, M'kay).
........
r34009 | tramboi | 2008-08-18 22:43:44 +0200 (Mon, 18 Aug 2008) | 1 line
Compile fix for 34006
........
r34011 | anotherguest | 2008-08-18 23:09:46 +0200 (Mon, 18 Aug 2008) | 1 line
Enable quick F5 save key for Touche!
........
r34013 | anotherguest | 2008-08-18 23:19:18 +0200 (Mon, 18 Aug 2008) | 1 line
Enable save game action key in Touche for WinCE devices.
........
r34015 | athrxx | 2008-08-19 03:00:15 +0200 (Tue, 19 Aug 2008) | 2 lines
fixed bug that caused a lockup in certain configurations when the music was fading
........
r34019 | athrxx | 2008-08-19 08:31:57 +0200 (Tue, 19 Aug 2008) | 1 line
fixed warnings
........
r34021 | anotherguest | 2008-08-19 09:44:35 +0200 (Tue, 19 Aug 2008) | 1 line
Remove Deinit when hiding menu! UI infoprints needed the pixelbuffer.
........
r34022 | peres001 | 2008-08-19 10:08:32 +0200 (Tue, 19 Aug 2008) | 1 line
Fixed segfault when quitting BRA.
........
r34023 | thebluegr | 2008-08-19 10:49:53 +0200 (Tue, 19 Aug 2008) | 1 line
Fix for bug #2057194 - "IHNM: -x option crashes ScummVM, if savegame doesn't exist"
........
r34025 | anotherguest | 2008-08-19 10:54:28 +0200 (Tue, 19 Aug 2008) | 1 line
Don't Use CEikonEnv::Static, get FS from system class instead
........
r34027 | anotherguest | 2008-08-19 11:26:41 +0200 (Tue, 19 Aug 2008) | 1 line
Use the correct and specified datatype int32 instead of only int.
........
r34028 | thebluegr | 2008-08-19 12:05:07 +0200 (Tue, 19 Aug 2008) | 1 line
Fixed regression from commit #33576. Fixes bug #2056282 - "DRASCULA: can't use inventory objects"
........
r34030 | thebluegr | 2008-08-19 12:12:35 +0200 (Tue, 19 Aug 2008) | 1 line
Fix for bug #2057664 - "DRASCULA: No GUI warning when playing from CD"
........
r34032 | fingolfin | 2008-08-19 12:52:39 +0200 (Tue, 19 Aug 2008) | 1 line
Fixed GCC warning
........
r34033 | fingolfin | 2008-08-19 12:58:35 +0200 (Tue, 19 Aug 2008) | 1 line
Fixed 'make install' when building outside srcdir
........
r34034 | buddha_ | 2008-08-19 13:55:20 +0200 (Tue, 19 Aug 2008) | 5 lines
Fix for bug #2057637: FW: Spaceship glitches in demo (regression).
This was caused by assuming in-place decompression is ok, it wasn't,
although AFAIK the original did decompression in-place too.
Changed unpacking to be done not in-place and the glitch vanished.
Also changed the unpacker to also handle uncompressed input data.
........
r34036 | buddha_ | 2008-08-19 15:05:38 +0200 (Tue, 19 Aug 2008) | 6 lines
Fix for bug #2057656: FW: Assert during demo (regression).
Future Wars's Amiga demo is trying to load collision data files
'L8_MK.NEO' and 'L23_MK.NEO' that aren't supplied with the demo.
Previous code crashed when a file couldn't be found,
now it gives a warning instead.
........
r34038 | peres001 | 2008-08-19 16:07:48 +0200 (Tue, 19 Aug 2008) | 1 line
Fixed bug in low-level parser. Block comments weren't interpreted correctly.
........
r34039 | buddha_ | 2008-08-19 16:19:28 +0200 (Tue, 19 Aug 2008) | 2 lines
Fix for bug #2057619: FW: Glitches in title display of demo (regression).
Removed incorrect transparency data used for logo. Now it's shown correctly.
........
r34041 | peres001 | 2008-08-19 16:36:05 +0200 (Tue, 19 Aug 2008) | 1 line
Deleted debug code that slipped in.
........
r34046 | peres001 | 2008-08-20 05:36:49 +0200 (Wed, 20 Aug 2008) | 2 lines
* Enlarged buffer for frame decoding. Crashes in the introduction were caused by a small buffer and subsequent out-of-bound writes.
* Disabled debug code.
........
r34047 | peres001 | 2008-08-20 06:02:12 +0200 (Wed, 20 Aug 2008) | 1 line
Engine now returns to the menu when intro is over.
........
r34048 | eriktorbjorn | 2008-08-20 11:12:11 +0200 (Wed, 20 Aug 2008) | 4 lines
I believe the setVolume() function has to be guarded by a mutex. (I added this to
the Tinsel engine a while back to fix mysterious problems, but forgot to add it
elsewhere.) Maybe this will fix the mysterious IHNM crashes, as well?
........
r34050 | eriktorbjorn | 2008-08-20 11:15:59 +0200 (Wed, 20 Aug 2008) | 2 lines
Moved the mutex locking a bit. (Consistent with how the AGOS engine does it.)
........
r34051 | fingolfin | 2008-08-20 12:18:59 +0200 (Wed, 20 Aug 2008) | 1 line
Extended HashMap debug output
........
r34052 | fingolfin | 2008-08-20 13:07:16 +0200 (Wed, 20 Aug 2008) | 1 line
Unified member names in container/storage classes Array, HashMap and String: _storage, _size, _capacity
........
r34053 | lordhoto | 2008-08-20 16:03:34 +0200 (Wed, 20 Aug 2008) | 2 lines
Committed patch #2050337 "KYRA/SCUMM: Thumbnail support/improvement". (Without Max' compressed backward seeking support for now)
........
r34054 | lordhoto | 2008-08-20 16:24:16 +0200 (Wed, 20 Aug 2008) | 4 lines
- Committed Max' compressed save backseeking support from patch #2050337 "KYRA/SCUMM: Thumbnail support/improvement"
- Extended SCUMM engine to support savegames without thumbnail header. (Increased savegame version to prevent saves to be loaded from older ScummVM versions)
- Fixed KYRA to properly support savegames without thumbnail header.
........
r34055 | lordhoto | 2008-08-20 16:30:40 +0200 (Wed, 20 Aug 2008) | 2 lines
Committed patch #2055831 "KYRA: ResFileEntry parent cache optimization".
........
r34057 | buddha_ | 2008-08-20 16:56:46 +0200 (Wed, 20 Aug 2008) | 1 line
Fix compilation: Changed 'not' to '!'.
........
r34059 | buddha_ | 2008-08-20 17:06:26 +0200 (Wed, 20 Aug 2008) | 1 line
Added graphics/thumbnail.cpp and graphics/thumbnail.h to MSVC project files.
........
r34060 | lordhoto | 2008-08-20 17:08:00 +0200 (Wed, 20 Aug 2008) | 2 lines
Cleanup of thumbnail saving/loading code.
........
r34061 | lordhoto | 2008-08-20 17:12:36 +0200 (Wed, 20 Aug 2008) | 2 lines
Oops fix save loading after last commit.
........
r34062 | buddha_ | 2008-08-20 17:17:35 +0200 (Wed, 20 Aug 2008) | 1 line
Removed already deleted file engines/scumm/thumbnail.cpp from MSVC project files.
........
r34063 | buddha_ | 2008-08-20 17:58:52 +0200 (Wed, 20 Aug 2008) | 1 line
Renamed graphics/scaler/thumbnail.cpp to thumbnail_intern.cpp. Fixes compiling under MSVC.
........
r34064 | athrxx | 2008-08-20 18:14:10 +0200 (Wed, 20 Aug 2008) | 1 line
tempo fix
........
r34065 | buddha_ | 2008-08-20 19:31:35 +0200 (Wed, 20 Aug 2008) | 4 lines
Fix font loading:
Fixes bug #2058539: OS: Assert starting demo (regression).
May possibly also fix bug #2019344: FW: crash with Amiga Italian version (photocopy room),
but not sure about that because I couldn't reproduce the bug myself.
........
r34067 | athrxx | 2008-08-20 21:57:57 +0200 (Wed, 20 Aug 2008) | 2 lines
- add support for Italian floppy version
- more work on fm-towns music tempo
........
r34072 | lordhoto | 2008-08-20 23:23:30 +0200 (Wed, 20 Aug 2008) | 2 lines
Fixed warning.
........
r34074 | lordhoto | 2008-08-20 23:28:59 +0200 (Wed, 20 Aug 2008) | 2 lines
Committed patch from bug #2062926 "GCC 4.x versions not detected by configure script".
........
r34076 | athrxx | 2008-08-21 00:38:36 +0200 (Thu, 21 Aug 2008) | 1 line
KYRA: Towns/PC-98-Audio: fix bug where pitch wheel is processed twice instead of once
........
r34078 | athrxx | 2008-08-21 04:17:52 +0200 (Thu, 21 Aug 2008) | 1 line
KYRA: Towns/PC-98-Audio: tempo fix for output rates other than 44100 Hz
........
r34079 | athrxx | 2008-08-21 14:04:55 +0200 (Thu, 21 Aug 2008) | 1 line
KYRA: Towns/PC-98-Audio: increased precision for envelope generator timing and tempo when using "odd" output rates like 48 kHz or 8 kHz
........
r34080 | peres001 | 2008-08-21 14:11:24 +0200 (Thu, 21 Aug 2008) | 1 line
Removed unused code and structures, and a bit of cleanup.
........
r34081 | buddha_ | 2008-08-21 16:14:33 +0200 (Thu, 21 Aug 2008) | 4 lines
Fix for bug #2057619: FW: Glitches in title display of demo (regression).
This fix doesn't seem to break other Future Wars versions like r34039 did.
Some versions of TITRE.ANI use 15 for transparency color, others use 0.
Previously only one of the choices was supported, now both are recognized.
........
r34084 | buddha_ | 2008-08-21 16:43:03 +0200 (Thu, 21 Aug 2008) | 1 line
Fix typo.
........
r34086 | eriktorbjorn | 2008-08-21 16:52:55 +0200 (Thu, 21 Aug 2008) | 2 lines
Fixed warning.
........
r34087 | athrxx | 2008-08-21 20:24:52 +0200 (Thu, 21 Aug 2008) | 1 line
KYRA: Towns/PC-98-Audio: fixed bug where notes for which the hold flag was set were turned off nonetheless
........
r34089 | peres001 | 2008-08-22 02:19:12 +0200 (Fri, 22 Aug 2008) | 1 line
Implement transition when entering a new location for BRA. Not pixel-perfect, but... let's e happy about it.
........
r34090 | Kirben | 2008-08-22 05:37:43 +0200 (Fri, 22 Aug 2008) | 1 line
Add another 3DO version of Fatty Bear's Birthday Surprise.
........
r34093 | peres001 | 2008-08-22 08:32:12 +0200 (Fri, 22 Aug 2008) | 1 line
Fixed error in parsing.
........
r34096 | fingolfin | 2008-08-22 13:17:12 +0200 (Fri, 22 Aug 2008) | 1 line
code formatting cleanup
........
r34097 | fingolfin | 2008-08-22 13:19:41 +0200 (Fri, 22 Aug 2008) | 1 line
Moved POSIXFilesystemNode class declaration to a new header file, to enable subclassing
........
r34098 | fingolfin | 2008-08-22 13:36:47 +0200 (Fri, 22 Aug 2008) | 1 line
Turned Windows, AmigaOS and POSIX FSFactories into plain classes; no need for them to be singletons (actually true for all other FS factories)
........
r34099 | fingolfin | 2008-08-22 13:41:14 +0200 (Fri, 22 Aug 2008) | 1 line
Symbian backend does not have to implement config file methods, as long as they are identical to those in the SDL backend...
........
r34100 | fingolfin | 2008-08-22 13:45:29 +0200 (Fri, 22 Aug 2008) | 1 line
SDL backend: Simplified openConfigFileForReading/openConfigFileForWriting impl; also init _fsFactory in constructor, as it is needed to load the config file
........
r34101 | fingolfin | 2008-08-22 13:49:34 +0200 (Fri, 22 Aug 2008) | 1 line
Turned SymbianFilesystemFactory from a singleton into a normal class; adapted symbian backend accordingly
........
r34102 | buddha_ | 2008-08-22 14:11:51 +0200 (Fri, 22 Aug 2008) | 1 line
Designate fix for bug #2057619 as a hack, as that's what it is.
........
r34104 | Kirben | 2008-08-22 15:01:23 +0200 (Fri, 22 Aug 2008) | 1 line
Remove warning about change of config file location under Windows, since it is frequently repeated (due to code restructures). The information is mentioned in the README anyway.
........
r34107 | Kirben | 2008-08-23 08:09:30 +0200 (Sat, 23 Aug 2008) | 1 line
Another French version Humongous Catalog and another English DOS version of Fatty Bear's Birthday Surprise.
........
r34113 | drmccoy | 2008-08-23 16:18:12 +0200 (Sat, 23 Aug 2008) | 2 lines
Fixing _itemsMap access (bug #2069177)
........
r34116 | Kirben | 2008-08-24 09:48:44 +0200 (Sun, 24 Aug 2008) | 1 line
Add more versions of HE games.
........
r34119 | aquadran | 2008-08-24 09:54:36 +0200 (Sun, 24 Aug 2008) | 1 line
remove broken code, but i'll add better feature into compression tool
........
r34122 | sev | 2008-08-24 23:28:20 +0200 (Sun, 24 Aug 2008) | 2 lines
Fix inventory.
........
r34124 | sev | 2008-08-24 23:31:20 +0200 (Sun, 24 Aug 2008) | 3 lines
Italian version now has properly translated verbs area as well as numerous
fixes to object names. So new version of packet.005 was prepared.
........
r34126 | sev | 2008-08-24 23:32:37 +0200 (Sun, 24 Aug 2008) | 2 lines
Fixes for Italian strings thanks to glorfindel & co.
........
r34128 | sev | 2008-08-24 23:34:03 +0200 (Sun, 24 Aug 2008) | 2 lines
New drascula.dat with fixed Italian strings
........
r34131 | wjpalenstijn | 2008-08-25 00:09:55 +0200 (Mon, 25 Aug 2008) | 1 line
new tools
........
r34132 | buddha_ | 2008-08-25 01:16:37 +0200 (Mon, 25 Aug 2008) | 3 lines
Fix for bug #2055912: FW: incrustSprite fails on savegame loading.
What little testing I did, this seems to work, but more testing
would be nice.
........
r34135 | peres001 | 2008-08-25 08:32:08 +0200 (Mon, 25 Aug 2008) | 1 line
Added workaround for bug 2070751, long standing issue with item matching exposed after revision 32873.
........
r34138 | knakos | 2008-08-25 10:11:52 +0200 (Mon, 25 Aug 2008) | 1 line
patch 1984130: Add Tremolo info
........
r34141 | knakos | 2008-08-25 10:48:46 +0200 (Mon, 25 Aug 2008) | 1 line
patch 1868881: ini option to disable doubletap rmb
........
r34144 | peres001 | 2008-08-25 11:35:22 +0200 (Mon, 25 Aug 2008) | 1 line
Fixed regression: show mouse and enable input in NS Demo.
........
r34146 | buddha_ | 2008-08-25 14:00:38 +0200 (Mon, 25 Aug 2008) | 1 line
Added a warning to bug #2055912's fix committed in revision 34132.
........
r34149 | lordhoto | 2008-08-25 15:52:10 +0200 (Mon, 25 Aug 2008) | 2 lines
Added short delay(Millis) call while waiting for text input, should reduce CPU usage a little bit.
........
r34152 | thebluegr | 2008-08-25 16:55:11 +0200 (Mon, 25 Aug 2008) | 3 lines
Fix for bug #2073159 - "MICKEY: Incomplete computer message".
Random numbers are calculated from 1 onwards in the preAGI engines, but there was an off-by one error. I'm currently hesitant to add this fix to the 0.12.0 branch, as I'm unsure if it has any possible regressions in Troll's Tale or Winnie the Pooh
........
r34153 | buddha_ | 2008-08-25 17:04:48 +0200 (Mon, 25 Aug 2008) | 1 line
Added Cinematique archive file unpacker and script disassembler to tools. NOT polished code so caveat emptor.
........
r34154 | thebluegr | 2008-08-25 17:07:05 +0200 (Mon, 25 Aug 2008) | 1 line
Fix for bug #2062024 - "DRASCULA: Error talking with blind man"
........
r34156 | buddha_ | 2008-08-25 17:14:20 +0200 (Mon, 25 Aug 2008) | 1 line
Added info about cine_tools to tools/README. Also added a couple of FIXMEs to the cine_tools files about missing endian safeness.
........
r34157 | lordhoto | 2008-08-25 17:14:29 +0200 (Mon, 25 Aug 2008) | 2 lines
Implemented continous screen updating while waiting for text input in v2 GUI. (based on LoK implementation)
........
r34160 | thebluegr | 2008-08-25 17:58:45 +0200 (Mon, 25 Aug 2008) | 2 lines
Fix for original game bug with the wall plug in chapter 5.
Fixes bug #2059621 - DRASCULA: Plug bug
........
r34163 | buddha_ | 2008-08-25 19:41:00 +0200 (Mon, 25 Aug 2008) | 1 line
Reverted revision 34156 and revision 34153 (extract_cine and decine got properly placed in revision 34162).
........
r34164 | knakos | 2008-08-25 19:43:56 +0200 (Mon, 25 Aug 2008) | 1 line
Update readme
........
r34169 | eriktorbjorn | 2008-08-25 20:47:27 +0200 (Mon, 25 Aug 2008) | 5 lines
Refined the workaround for wrongly compressed audio. If the sample rate is given
as 11025 Hz, it should be 11840 Hz. However, a fixed version of compress_queen
won't necessarily produce files with that sample rate, since LAME will resample
the sounds to 12000 Hz. I.e. we can only override the rate if it's exactly 11025.
........
r34173 | wjpalenstijn | 2008-08-25 21:22:16 +0200 (Mon, 25 Aug 2008) | 1 line
package tools_gui as scummvm_tools_gui
........
r34179 | thebluegr | 2008-08-26 09:48:19 +0200 (Tue, 26 Aug 2008) | 1 line
Cleanup
........
r34180 | thebluegr | 2008-08-26 10:05:36 +0200 (Tue, 26 Aug 2008) | 1 line
Merged talk_vonBraun and talk_vonBraunpuerta
........
r34181 | thebluegr | 2008-08-26 10:21:21 +0200 (Tue, 26 Aug 2008) | 1 line
Simplified several calls to copyBackground()
........
r34182 | thebluegr | 2008-08-26 10:35:02 +0200 (Tue, 26 Aug 2008) | 2 lines
talk_dr_grande -> talk_drascula_big
talk_baul -> talk_trunk
........
r34183 | thebluegr | 2008-08-26 12:59:59 +0200 (Tue, 26 Aug 2008) | 1 line
Removed some unneeded sanity checks that have been introduced with the latest cleanups
........
r34184 | Kirben | 2008-08-26 13:15:01 +0200 (Tue, 26 Aug 2008) | 1 line
Add more versions of HE games.
........
r34185 | peres001 | 2008-08-26 14:15:11 +0200 (Tue, 26 Aug 2008) | 1 line
Cleanup.
........
r34186 | thebluegr | 2008-08-26 14:34:05 +0200 (Tue, 26 Aug 2008) | 1 line
Correct fix for bug #2073159 - "MICKEY: Incomplete computer message"
........
r34187 | lordhoto | 2008-08-26 15:51:26 +0200 (Tue, 26 Aug 2008) | 2 lines
Fixed typo. (Thanks to salty-horse for spotting it).
........
r34188 | lordhoto | 2008-08-26 15:56:58 +0200 (Tue, 26 Aug 2008) | 2 lines
And for all of those who love recompiling most of ScummVM... fixed typo properly :-P
........
r34189 | thebluegr | 2008-08-26 16:26:43 +0200 (Tue, 26 Aug 2008) | 1 line
Fix for bug #2057200 - "IHNM: Invisible inventory objects"
........
r34190 | thebluegr | 2008-08-27 12:00:32 +0200 (Wed, 27 Aug 2008) | 1 line
Document some animations
........
r34191 | fingolfin | 2008-08-27 19:41:05 +0200 (Wed, 27 Aug 2008) | 1 line
cleanup
........
r34192 | fingolfin | 2008-08-27 20:21:03 +0200 (Wed, 27 Aug 2008) | 1 line
Slightly cleaned up version of patch #2072006: Enhance OSystem_SDL::setupIcon
........
r34193 | fingolfin | 2008-08-27 20:38:06 +0200 (Wed, 27 Aug 2008) | 1 line
Slightly modified form of patch #2043093: OS/2 patches for posix-fs
........
r34194 | fingolfin | 2008-08-27 20:52:21 +0200 (Wed, 27 Aug 2008) | 1 line
Partial commit of patch #2012839: Atari Patch for adding Native MIDI and Fix Compile
........
r34196 | fingolfin | 2008-08-27 21:29:41 +0200 (Wed, 27 Aug 2008) | 1 line
Fix bug #2078922: DW: Pushing ESC repeatedly at beginning causes odd behavior
........
r34197 | fingolfin | 2008-08-27 22:31:22 +0200 (Wed, 27 Aug 2008) | 1 line
FSNode code: Merged most versions of lastPathComponent() into one new AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character
........
r34198 | fingolfin | 2008-08-27 22:41:28 +0200 (Wed, 27 Aug 2008) | 1 line
Removed various uses of scumm_stricmp by the more readable String::equalsIgnoreCase and String:: compareToIgnoreCase
........
r34200 | fingolfin | 2008-08-28 11:03:43 +0200 (Thu, 28 Aug 2008) | 1 line
Some extra HashMap tests
........
r34201 | fingolfin | 2008-08-29 11:44:05 +0200 (Fri, 29 Aug 2008) | 1 line
Made out-of-memory error in SCUMM a bit more verbose
........
r34205 | lordhoto | 2008-08-30 00:04:15 +0200 (Sat, 30 Aug 2008) | 1 line
Updated msvc8 and msvc9 project files for latest FS changes.
........
r34206 | peres001 | 2008-08-30 12:27:20 +0200 (Sat, 30 Aug 2008) | 1 line
Moved mouse cursor loading/handling to Input class.
........
r34208 | eriktorbjorn | 2008-08-30 14:54:54 +0200 (Sat, 30 Aug 2008) | 2 lines
Added a whitespace, just for salty-horse.
........
r34209 | peres001 | 2008-08-30 17:49:54 +0200 (Sat, 30 Aug 2008) | 1 line
Removed global g_system.
........
r34210 | fingolfin | 2008-08-30 23:03:15 +0200 (Sat, 30 Aug 2008) | 1 line
TINSEL: Added support for the 3,4 and 5 FLAGS (multi lingual) versions of DW (only 4 flags version has been tested; see also bug #2048383)
........
r34211 | fingolfin | 2008-08-30 23:43:36 +0200 (Sat, 30 Aug 2008) | 1 line
cleanup
........
r34212 | fingolfin | 2008-08-30 23:51:13 +0200 (Sat, 30 Aug 2008) | 1 line
TINSEL: Write config changes to disk
........
r34213 | fingolfin | 2008-08-31 00:09:35 +0200 (Sun, 31 Aug 2008) | 1 line
TINSEL: Remove some unused code; and duplicated the 4-FLAGS version detection entry (one copy for each language) for the user's convenience
........
r34214 | fingolfin | 2008-08-31 00:10:48 +0200 (Sun, 31 Aug 2008) | 1 line
TINSEL: The engine version is an integer, not a bitfield
........
r34215 | fingolfin | 2008-08-31 00:16:59 +0200 (Sun, 31 Aug 2008) | 1 line
cleanup
........
r34216 | fingolfin | 2008-08-31 00:26:16 +0200 (Sun, 31 Aug 2008) | 1 line
Fix (?) Solaris detection in some workaround code in the MT-32 emulator
........
r34217 | drmccoy | 2008-08-31 01:59:46 +0200 (Sun, 31 Aug 2008) | 2 lines
Added some The Last Dynasty stubs
........
r34219 | peres001 | 2008-08-31 07:18:25 +0200 (Sun, 31 Aug 2008) | 1 line
Uniformed the interface of Parallaction class (and its hierarchy) with regards of gui code, which is now independent of engine version.
........
r34220 | peres001 | 2008-08-31 08:14:45 +0200 (Sun, 31 Aug 2008) | 1 line
Moved save/load code into SaveLoad class.
........
r34221 | peres001 | 2008-08-31 10:27:40 +0200 (Sun, 31 Aug 2008) | 1 line
Removed extra semicolon detected by salty-horse pesky compiler.
........
r34222 | peres001 | 2008-08-31 11:30:16 +0200 (Sun, 31 Aug 2008) | 2 lines
Cleanup.
........
r34223 | peres001 | 2008-08-31 12:24:32 +0200 (Sun, 31 Aug 2008) | 1 line
More cleanup.
........
r34224 | peres001 | 2008-08-31 12:43:32 +0200 (Sun, 31 Aug 2008) | 1 line
Fixed leak with Input class, introduced in commit 34206.
........
r34225 | drmccoy | 2008-08-31 13:37:07 +0200 (Sun, 31 Aug 2008) | 2 lines
Shutting up a warning on systems where char is signed by default
........
r34227 | peres001 | 2008-08-31 15:58:17 +0200 (Sun, 31 Aug 2008) | 4 lines
* Added Archive, an interface for searching into file containers.
* Added FSDirectory, an Archive implementation that models a directory from the filesystem.
* Added SearchSet, an Archive implementation that allows searching multiple Archives.
See patch 2034983 on sf.net.
........
r34228 | fingolfin | 2008-08-31 17:30:07 +0200 (Sun, 31 Aug 2008) | 1 line
Fix warnings
........
r34234 | lordhoto | 2008-09-01 01:11:55 +0200 (Mon, 01 Sep 2008) | 2 lines
Added newly added archive.cpp to the build system, just in case someone wants to play with the code and wonders about errors while linking.
........
r34235 | thebluegr | 2008-09-01 12:07:48 +0200 (Mon, 01 Sep 2008) | 1 line
Updated all MSVC project files with the latest changes to the code (gob and parallaction engines and the file system)
........
r34236 | thebluegr | 2008-09-01 12:09:48 +0200 (Mon, 01 Sep 2008) | 1 line
Silence MSVC warning about potentially uninitialized variable
........
r34237 | fingolfin | 2008-09-01 12:54:03 +0200 (Mon, 01 Sep 2008) | 1 line
New Queue class, from RTL branch
........
r34239 | lordhoto | 2008-09-01 17:39:48 +0200 (Mon, 01 Sep 2008) | 2 lines
Fixed warnings.
........
r34240 | lordhoto | 2008-09-01 18:52:09 +0200 (Mon, 01 Sep 2008) | 3 lines
- Added tests for newly added Common::Queue
- Changed Common::Queue::front and Common::Queue::back to return references instead of values
........
r34241 | fingolfin | 2008-09-01 19:30:03 +0200 (Mon, 01 Sep 2008) | 1 line
First part of GSoC2008 RTL branch merge
........
r34242 | fingolfin | 2008-09-01 19:46:05 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: AGI
........
r34243 | fingolfin | 2008-09-01 19:46:53 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: AGOS
........
r34244 | fingolfin | 2008-09-01 19:47:36 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: CINE
........
r34245 | fingolfin | 2008-09-01 19:50:00 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: GOB
........
r34246 | fingolfin | 2008-09-01 19:52:50 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: KYRA
........
r34247 | fingolfin | 2008-09-01 19:55:52 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: QUEEN
........
r34248 | lordhoto | 2008-09-01 20:14:55 +0200 (Mon, 01 Sep 2008) | 2 lines
Cleanup.
........
r34249 | lordhoto | 2008-09-01 20:26:28 +0200 (Mon, 01 Sep 2008) | 2 lines
Formatting.
........
r34251 | fingolfin | 2008-09-01 22:18:17 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: LURE
........
r34252 | fingolfin | 2008-09-01 22:19:28 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: SAGA
........
r34253 | fingolfin | 2008-09-01 22:20:20 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: SCUMM
........
r34254 | fingolfin | 2008-09-01 22:20:57 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: SKY
........
r34255 | fingolfin | 2008-09-01 22:21:30 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: SWORD1
........
r34256 | fingolfin | 2008-09-01 22:21:53 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: SWORD2
........
r34257 | fingolfin | 2008-09-01 22:22:10 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: TINSEL
........
r34258 | fingolfin | 2008-09-01 22:22:29 +0200 (Mon, 01 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: TOUCHE
........
r34259 | athrxx | 2008-09-01 22:23:25 +0200 (Mon, 01 Sep 2008) | 1 line
- kyra: fm-towns/pc-98 audio: restructured driver, added rhythm channel data
........
r34260 | fingolfin | 2008-09-01 22:31:44 +0200 (Mon, 01 Sep 2008) | 1 line
Clarified some comments
........
r34261 | fingolfin | 2008-09-01 22:41:43 +0200 (Mon, 01 Sep 2008) | 1 line
Clarified clarification ;)
........
r34262 | fingolfin | 2008-09-01 23:06:32 +0200 (Mon, 01 Sep 2008) | 1 line
Document each MetaEngineFeature (instead of listing just 'examples'). Wording could be better, feel free to improve it
........
r34263 | fingolfin | 2008-09-01 23:13:11 +0200 (Mon, 01 Sep 2008) | 1 line
TINSEL: Enabled listSaves support
........
r34264 | fingolfin | 2008-09-01 23:30:38 +0200 (Mon, 01 Sep 2008) | 1 line
cleanup
........
r34265 | thebluegr | 2008-09-02 01:36:59 +0200 (Tue, 02 Sep 2008) | 1 line
Silence MSVC warning about empty switch statement
........
r34266 | thebluegr | 2008-09-02 01:37:24 +0200 (Tue, 02 Sep 2008) | 1 line
Silence MSVC warning about empty switch statement
........
r34267 | joostp | 2008-09-02 02:31:27 +0200 (Tue, 02 Sep 2008) | 2 lines
fix Virgin logo screen breakage that was introduced in the RTL merge
........
r34268 | peres001 | 2008-09-02 03:58:55 +0200 (Tue, 02 Sep 2008) | 1 line
Merging more of the GSoC 2008 RTL branch: PARALLACTION
........
r34269 | thebluegr | 2008-09-02 09:32:09 +0200 (Tue, 02 Sep 2008) | 1 line
Added new files to the MSVC projects (engines/dialogs.* and common/queue.h)
........
r34270 | thebluegr | 2008-09-02 09:59:52 +0200 (Tue, 02 Sep 2008) | 1 line
Changed the MSVC optimization settings for the release version of all current engines, according to the settings proposed in patch #1877032 - "better optimization settings for msvc9". SSE has NOT been enabled by default though, as it's not available under 64-bit platforms. Updated the MSVC 8 -> MSVC 7/7.1 batch file accordingly
........
r34271 | thebluegr | 2008-09-02 10:02:40 +0200 (Tue, 02 Sep 2008) | 1 line
Added the missing tinsel engine project files for MSVC 7/7.1
........
r34272 | fingolfin | 2008-09-02 13:32:38 +0200 (Tue, 02 Sep 2008) | 1 line
Added two new global funcs which ease proper handling of 'path' strings: Common::lastPathComponent() and Common::normalizePath()
........
r34273 | fingolfin | 2008-09-02 13:34:12 +0200 (Tue, 02 Sep 2008) | 1 line
Revised HashMap implementation
........
r34274 | thebluegr | 2008-09-02 13:42:15 +0200 (Tue, 02 Sep 2008) | 2 lines
Enabled the new optimizations for older versions of MSVC as well
Also, included the tinsel engine library for the release version as well (fixes compilation of the release version)
........
r34275 | lordhoto | 2008-09-02 15:05:43 +0200 (Tue, 02 Sep 2008) | 2 lines
Added missing include.
........
r34276 | lordhoto | 2008-09-02 15:11:54 +0200 (Tue, 02 Sep 2008) | 2 lines
Handle OSystem::lockScreen fail in default OSystem::clearScreen implementation.
........
r34277 | lordhoto | 2008-09-02 15:13:02 +0200 (Tue, 02 Sep 2008) | 2 lines
Updated NULL backend for FS changes.
........
r34278 | lordhoto | 2008-09-02 15:16:51 +0200 (Tue, 02 Sep 2008) | 2 lines
Fixed copy&paste error when checking y and h of a widget on layout change.
........
r34279 | lordhoto | 2008-09-02 15:17:40 +0200 (Tue, 02 Sep 2008) | 2 lines
Fake 320x200 resolution instead of 200x320.
........
r34281 | lordhoto | 2008-09-02 15:27:26 +0200 (Tue, 02 Sep 2008) | 2 lines
Applied my patch from -devel, which reenables GMM opening via F6.
........
r34282 | lordhoto | 2008-09-02 16:36:47 +0200 (Tue, 02 Sep 2008) | 4 lines
Cleanup: Remove now unneeded KyraEngine_v1::quitGame.
Peres proposal for this commit log was: 'fixing .... as peres pointed out in his very interesting mail on -devel that everybody should read'.
........
r34283 | fingolfin | 2008-09-02 17:19:31 +0200 (Tue, 02 Sep 2008) | 1 line
Modified POSIX FSNode implementation to use Common::normalizePath & Common::lastPathComponent; added a TODO regarding relative paths
........
r34284 | fingolfin | 2008-09-02 18:35:16 +0200 (Tue, 02 Sep 2008) | 1 line
Change FilesystemNode::getChild to new desired behavior: namely, that it should return valid nodes even for names for which no child exists (yet?) -- mail to scummvm-devel pending
........
r34286 | drmccoy | 2008-09-02 22:15:42 +0200 (Tue, 02 Sep 2008) | 2 lines
Urban Runner stubs
........
r34287 | drmccoy | 2008-09-02 23:29:06 +0200 (Tue, 02 Sep 2008) | 2 lines
Added French Bargon Attack, as supplied by kizkoool in bugreport #2089734
........
r34288 | athrxx | 2008-09-02 23:31:53 +0200 (Tue, 02 Sep 2008) | 1 line
some minor bug fixes
........
r34290 | Kirben | 2008-09-03 03:47:01 +0200 (Wed, 03 Sep 2008) | 1 line
Add Nintendo Wii versions of Freddi Fish 1 and Pajama Sam 1.
........
r34291 | Kirben | 2008-09-03 04:06:11 +0200 (Wed, 03 Sep 2008) | 1 line
Add another Dutch demo of Pajama Sam 1.
........
r34292 | thebluegr | 2008-09-03 09:32:59 +0200 (Wed, 03 Sep 2008) | 1 line
Updated gob MSVC project files for commit #34286
........
r34293 | fingolfin | 2008-09-03 10:57:39 +0200 (Wed, 03 Sep 2008) | 1 line
If launching scummvm with no game selected, clear the transient domain (and hence the effect of all command line args) before opening the launcher (may cause regressions)
........
r34294 | fingolfin | 2008-09-03 10:58:19 +0200 (Wed, 03 Sep 2008) | 1 line
In the launcher load dialog code, store the save_slot in the transient domain (fixing bug #2089740)
........
r34295 | thebluegr | 2008-09-03 11:03:21 +0200 (Wed, 03 Sep 2008) | 1 line
Cleanup
........
r34296 | thebluegr | 2008-09-03 11:55:29 +0200 (Wed, 03 Sep 2008) | 1 line
Silence MSVC warning about ambiguous usage of CLIP
........
r34297 | thebluegr | 2008-09-03 11:58:28 +0200 (Wed, 03 Sep 2008) | 1 line
Commented out currently broken code, adding a FIXME
........
r34298 | thebluegr | 2008-09-03 12:00:43 +0200 (Wed, 03 Sep 2008) | 1 line
Silence MSVC warning about uninitialized variables
........
r34299 | thebluegr | 2008-09-03 12:10:45 +0200 (Wed, 03 Sep 2008) | 1 line
Fix for MSVC warning about ambiguous usage of MIN
........
r34300 | fingolfin | 2008-09-03 12:11:36 +0200 (Wed, 03 Sep 2008) | 1 line
Added new StdioStream class, a thin wrapper around FILE
........
r34301 | fingolfin | 2008-09-03 12:40:46 +0200 (Wed, 03 Sep 2008) | 1 line
Added new AbstractFilesystemNode::openForReading & ::openForWriting method, based on StdioStream; changed FilesystemNode to use them
........
r34302 | fingolfin | 2008-09-03 13:22:51 +0200 (Wed, 03 Sep 2008) | 1 line
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
........
r34303 | fingolfin | 2008-09-03 13:49:02 +0200 (Wed, 03 Sep 2008) | 1 line
Moved StdioStream to its own files inside backends
........
r34304 | fingolfin | 2008-09-03 14:56:46 +0200 (Wed, 03 Sep 2008) | 1 line
Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
........
r34305 | Kirben | 2008-09-03 15:49:24 +0200 (Wed, 03 Sep 2008) | 1 line
Added more versions of HE games.
........
r34306 | thebluegr | 2008-09-03 16:06:54 +0200 (Wed, 03 Sep 2008) | 1 line
Updated MSVC project files for commit #34303
........
r34307 | fingolfin | 2008-09-03 16:55:19 +0200 (Wed, 03 Sep 2008) | 1 line
POSIX FSNode: got rid of Double-slashes in paths for childs of the root; simplified code
........
r34308 | fingolfin | 2008-09-03 17:22:19 +0200 (Wed, 03 Sep 2008) | 1 line
Some cleanup by peres
........
r34309 | fingolfin | 2008-09-03 17:58:40 +0200 (Wed, 03 Sep 2008) | 1 line
TODO: bdf_getline seems to duplicate code from SeekableReadStream::readLine(_new) -> fix that
........
r34310 | fingolfin | 2008-09-03 18:56:40 +0200 (Wed, 03 Sep 2008) | 1 line
Moved check for shouldRTL() from engines to scummvm_main
........
r34311 | fingolfin | 2008-09-03 19:06:24 +0200 (Wed, 03 Sep 2008) | 1 line
clarified comment
........
r34312 | fingolfin | 2008-09-03 19:07:13 +0200 (Wed, 03 Sep 2008) | 1 line
Changed Archive::openFile to return a SeekableReadStream* instead of a FilePtr
........
r34313 | fingolfin | 2008-09-03 19:39:18 +0200 (Wed, 03 Sep 2008) | 1 line
Modified Common::Str to use exponential growth for its storage; also changed the meaning of 'capacity' from 'max length of string' to 'size of storage' (i.e. added one)
........
r34314 | fingolfin | 2008-09-03 19:46:42 +0200 (Wed, 03 Sep 2008) | 1 line
Removed unused readLine code from the MT-32 emu
........
r34315 | fingolfin | 2008-09-03 19:53:25 +0200 (Wed, 03 Sep 2008) | 1 line
Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; added a new alternate SeekableReadStream::readLine() instead
........
r34316 | fingolfin | 2008-09-03 20:07:31 +0200 (Wed, 03 Sep 2008) | 1 line
Fixed Stream::readLine implementation to match its doxygen comment
........
r34317 | fingolfin | 2008-09-03 20:38:01 +0200 (Wed, 03 Sep 2008) | 1 line
Fix nasty off-by-one errors
........
r34318 | fingolfin | 2008-09-03 20:40:49 +0200 (Wed, 03 Sep 2008) | 1 line
Changed some code to use the new Stream::readLine() method
........
r34319 | lordhoto | 2008-09-03 21:07:38 +0200 (Wed, 03 Sep 2008) | 2 lines
Minor formatting cleanup.
........
r34320 | mthreepwood | 2008-09-03 23:37:19 +0200 (Wed, 03 Sep 2008) | 1 line
correct a typo (thanks to salty-horse)
........
r34323 | Kirben | 2008-09-04 10:11:35 +0200 (Thu, 04 Sep 2008) | 1 line
Correct HE version for Wii version of Freddi Fish 1.
........
r34324 | joostp | 2008-09-04 10:16:39 +0200 (Thu, 04 Sep 2008) | 2 lines
remove deprecated SCUMMVM_SAVEPATH define -- pass default savepath to DefaultSaveFileManager ctor
........
r34326 | joostp | 2008-09-04 10:34:02 +0200 (Thu, 04 Sep 2008) | 2 lines
move save directory detection/creation from main() to OSystem_PSP::initBackend()
........
r34328 | Kirben | 2008-09-04 16:12:27 +0200 (Thu, 04 Sep 2008) | 1 line
Add missing case in o100_resourceRoutines.
........
r34329 | drmccoy | 2008-09-04 19:39:22 +0200 (Thu, 04 Sep 2008) | 2 lines
Ooops, adding Lost in Time and Woodruff
........
r34332 | drmccoy | 2008-09-04 21:20:51 +0200 (Thu, 04 Sep 2008) | 2 lines
Added another version of Lost in Time CD, as supplied by SiRoCs in bug report #2093672
........
r34334 | fingolfin | 2008-09-04 22:03:08 +0200 (Thu, 04 Sep 2008) | 1 line
Changed FSDirectory::getSubDirectory to return a FSDirectory pointer instead of a SharedPtr
........
r34336 | eriktorbjorn | 2008-09-04 23:40:32 +0200 (Thu, 04 Sep 2008) | 2 lines
Use readLine() instead of readLine_OLD().
........
r34338 | anotherguest | 2008-09-05 13:06:27 +0200 (Fri, 05 Sep 2008) | 1 line
Updated buildscripts to support tinsel
........
r34339 | anotherguest | 2008-09-05 13:09:29 +0200 (Fri, 05 Sep 2008) | 1 line
Updated package revision no to 0.13. Updated default engine list
........
r34340 | anotherguest | 2008-09-05 13:31:51 +0200 (Fri, 05 Sep 2008) | 1 line
Updated Symbian OS file actions with ferror and fflush.
........
r34343 | peres001 | 2008-09-05 13:41:39 +0200 (Fri, 05 Sep 2008) | 1 line
Removed useless dependencies from common/file.h in common code. When complete removal was not possibile, dependency has been pushed to the cpp files from the headers.
........
r34344 | anotherguest | 2008-09-05 13:55:58 +0200 (Fri, 05 Sep 2008) | 1 line
Added two new files
........
r34345 | fingolfin | 2008-09-05 13:59:33 +0200 (Fri, 05 Sep 2008) | 1 line
Ported AMIGA specific file buffering 'hack' from class File to StdioStream
........
r34346 | anotherguest | 2008-09-05 14:02:15 +0200 (Fri, 05 Sep 2008) | 1 line
Updated filehandling for Symbian OS
........
r34347 | anotherguest | 2008-09-05 14:30:19 +0200 (Fri, 05 Sep 2008) | 1 line
Updated build script with new dialog.cpp
........
r34348 | anotherguest | 2008-09-05 14:53:43 +0200 (Fri, 05 Sep 2008) | 1 line
Still need to get that build working. Readjust buildscript
........
r34349 | thebluegr | 2008-09-05 15:02:03 +0200 (Fri, 05 Sep 2008) | 1 line
Hopefully fixed the chaos with the SAGA volume values. This also fixes the broken volume introduced with the introduction of the RTL code in the engine
........
r34350 | anotherguest | 2008-09-05 15:03:31 +0200 (Fri, 05 Sep 2008) | 1 line
Add missing dialogs.cpp
........
r34351 | anotherguest | 2008-09-05 15:13:51 +0200 (Fri, 05 Sep 2008) | 1 line
ADded Tinsel as supported engine strings
........
r34352 | Kirben | 2008-09-05 15:35:27 +0200 (Fri, 05 Sep 2008) | 1 line
Use exact case numbers, to avoid unneeded subtractions.
........
r34353 | anotherguest | 2008-09-05 16:11:23 +0200 (Fri, 05 Sep 2008) | 1 line
Enum needs to be minimum four chars to compile (32 bit number I guess)
........
r34356 | fingolfin | 2008-09-05 19:23:44 +0200 (Fri, 05 Sep 2008) | 1 line
whitespace 'fix'
........
r34357 | eriktorbjorn | 2008-09-05 19:34:38 +0200 (Fri, 05 Sep 2008) | 2 lines
Set the date for 0.12.0.
........
r34359 | peres001 | 2008-09-05 20:24:41 +0200 (Fri, 05 Sep 2008) | 2 lines
* Implemented a default matchPattern for Archive subclasses (courtesy of Fingolfin).
* Fixed bug in FSDirectory::matchPattern.
........
r34360 | peres001 | 2008-09-05 20:28:25 +0200 (Fri, 05 Sep 2008) | 1 line
Made FSDirectory use the default matchPattern implementation.
........
r34361 | anotherguest | 2008-09-05 20:45:04 +0200 (Fri, 05 Sep 2008) | 1 line
Remove usage of main_features.inl and the file
........
r34362 | anotherguest | 2008-09-05 20:49:13 +0200 (Fri, 05 Sep 2008) | 1 line
Change location of create fs factory for Symbian!
........
r34363 | anotherguest | 2008-09-05 21:03:30 +0200 (Fri, 05 Sep 2008) | 1 line
Add symbian implementations to create read/write configfile handles
........
r34364 | fingolfin | 2008-09-05 22:07:34 +0200 (Fri, 05 Sep 2008) | 1 line
Moved matchString from util.* to str.*; added new String::matchString method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString
........
r34365 | fingolfin | 2008-09-05 22:08:29 +0200 (Fri, 05 Sep 2008) | 1 line
Make use of String::matchString
........
r34366 | fingolfin | 2008-09-05 22:26:36 +0200 (Fri, 05 Sep 2008) | 1 line
Fix class FSDirectory (matchPattern would call getAllNames would call matchPattern would call ...); some cleanup
........
r34367 | fingolfin | 2008-09-05 22:29:03 +0200 (Fri, 05 Sep 2008) | 1 line
Optimized matchString for the common case where there is a trailing * (if that is the case, abort immediately instead of scanning the rest of the string)
........
r34368 | fingolfin | 2008-09-05 22:42:41 +0200 (Fri, 05 Sep 2008) | 1 line
Some tweaks to help (?) OS/2
........
r34369 | wjpalenstijn | 2008-09-05 22:53:30 +0200 (Fri, 05 Sep 2008) | 1 line
additional Common::String tests
........
r34370 | fingolfin | 2008-09-06 00:12:46 +0200 (Sat, 06 Sep 2008) | 1 line
Added simple ZipArchive class, and changed some GUI code to use it, instead of the ugly C API to the unzip code
........
r34371 | fingolfin | 2008-09-06 00:14:43 +0200 (Sat, 06 Sep 2008) | 1 line
Updated some copyright strings to 2001-2008
........
r34373 | fingolfin | 2008-09-06 00:16:29 +0200 (Sat, 06 Sep 2008) | 1 line
Added Chris to credits
........
r34375 | Kirben | 2008-09-06 03:02:45 +0200 (Sat, 06 Sep 2008) | 1 line
Add debugInput opcode for HE 100 games.
........
r34378 | Kirben | 2008-09-06 09:03:38 +0200 (Sat, 06 Sep 2008) | 1 line
Add Wii version of SPY Fox 1.
........
r34381 | thebluegr | 2008-09-06 10:37:03 +0200 (Sat, 06 Sep 2008) | 1 line
Added missing common/archive.*
........
r34382 | anotherguest | 2008-09-06 12:30:05 +0200 (Sat, 06 Sep 2008) | 2 lines
Portdefs cleanup, use snprintf from SDL and not sprintf (Which can cause memory overwrites).
Use bsearch implementation from WINCE port.
........
r34384 | fingolfin | 2008-09-06 18:46:28 +0200 (Sat, 06 Sep 2008) | 1 line
Added some unit tests for Stream::readLine_NEW, and clarified that readLine_NEW is essentially fgets in disguise
........
r34385 | fingolfin | 2008-09-06 19:00:50 +0200 (Sat, 06 Sep 2008) | 1 line
Unlike ferror, our Stream::ioFailed() is also supposed to return true when the end of stream has been reached
........
r34389 | fingolfin | 2008-09-06 22:34:21 +0200 (Sat, 06 Sep 2008) | 1 line
ScummFile: Don't use the File::_ioFailed flag, rather track the io status separately; also, changed eof() -> eos()
........
r34390 | fingolfin | 2008-09-06 22:36:47 +0200 (Sat, 06 Sep 2008) | 1 line
MT32 emu: eof -> eos
........
r34391 | fingolfin | 2008-09-06 22:49:48 +0200 (Sat, 06 Sep 2008) | 1 line
Switched class File & DumpFile to use StdioStream internally
........
r34393 | fingolfin | 2008-09-06 23:04:42 +0200 (Sat, 06 Sep 2008) | 1 line
Removed last traces of fopen / FILE from common/file.cpp
........
r34394 | fingolfin | 2008-09-06 23:09:34 +0200 (Sat, 06 Sep 2008) | 1 line
Clarified / fixed some Common::Archive doxygen comments
........
r34396 | fingolfin | 2008-09-06 23:23:08 +0200 (Sat, 06 Sep 2008) | 1 line
Got rid of File::eof()
........
r34397 | lordhoto | 2008-09-07 00:09:34 +0200 (Sun, 07 Sep 2008) | 1 line
Added hasArchive to SearchSet.
........
r34399 | anotherguest | 2008-09-07 12:57:28 +0200 (Sun, 07 Sep 2008) | 1 line
Remove symbian defines from stdiostream.cpp
........
r34400 | anotherguest | 2008-09-07 14:37:14 +0200 (Sun, 07 Sep 2008) | 1 line
StdioStream implemented with Symbian file handling.
........
r34401 | anotherguest | 2008-09-07 14:38:35 +0200 (Sun, 07 Sep 2008) | 1 line
Updated to include SymbianStream instead of StdioStream
........
r34402 | anotherguest | 2008-09-07 14:39:56 +0200 (Sun, 07 Sep 2008) | 1 line
Need to have own implementation of snprintf and vsnprintf.
........
r34403 | anotherguest | 2008-09-07 14:54:26 +0200 (Sun, 07 Sep 2008) | 1 line
Remove SYMBIAN special handing from default handler.
........
r34404 | drmccoy | 2008-09-07 15:16:58 +0200 (Sun, 07 Sep 2008) | 2 lines
Added another demo version of Gobliiins (bug #2098412)
........
r34405 | anotherguest | 2008-09-07 15:17:21 +0200 (Sun, 07 Sep 2008) | 1 line
H file cleanup, remove old vibra support
........
r34407 | anotherguest | 2008-09-07 15:40:30 +0200 (Sun, 07 Sep 2008) | 3 lines
Updated readme about usage of snprintf source
Added vsnprintf implementation.
Cleanout SymbianOS.cpp from old file functions.
........
r34408 | fingolfin | 2008-09-07 17:16:45 +0200 (Sun, 07 Sep 2008) | 1 line
Temporary workaround for bug #2098279: ALL: Game path with no trailing backslash fails
........
r34409 | drmccoy | 2008-09-07 17:21:52 +0200 (Sun, 07 Sep 2008) | 2 lines
Clipping setMousePos() parameters to sane values
........
r34411 | drmccoy | 2008-09-07 17:29:47 +0200 (Sun, 07 Sep 2008) | 2 lines
Actually, /now/ the values are sane ^^; (also fixes Ween mouse position bug #2046244)
........
r34413 | drmccoy | 2008-09-07 17:39:06 +0200 (Sun, 07 Sep 2008) | 2 lines
Added a spanish floppy version of Gob3, as supplied by SiRoCs in bug report #2098621
........
r34415 | drmccoy | 2008-09-07 18:27:04 +0200 (Sun, 07 Sep 2008) | 2 lines
Added polish version of Woodruff, as supplied by goodoldgeorg in bug report #2098838
........
r34417 | anotherguest | 2008-09-07 18:43:03 +0200 (Sun, 07 Sep 2008) | 2 lines
Set default save path via save manager.
Fix bug in symbian-fs GetChild function.
........
r34418 | anotherguest | 2008-09-07 20:28:58 +0200 (Sun, 07 Sep 2008) | 1 line
Updated with two new variations, scumm and brokensword
........
r34419 | anotherguest | 2008-09-07 20:30:07 +0200 (Sun, 07 Sep 2008) | 1 line
Slightly updated built script. Faster?
........
r34420 | sev | 2008-09-07 20:36:40 +0200 (Sun, 07 Sep 2008) | 2 lines
Generate drascula.dat by the latest create_drascula
........
r34423 | anotherguest | 2008-09-07 21:19:45 +0200 (Sun, 07 Sep 2008) | 2 lines
Symbian already store all paths with a trailing "\".
Quick fix waiting for proper solution
........
r34424 | fingolfin | 2008-09-07 23:30:55 +0200 (Sun, 07 Sep 2008) | 1 line
Added new OSystem method addSysArchivesToSearchSet() [better name pending, suggestions welcome]
........
r34425 | fingolfin | 2008-09-07 23:38:53 +0200 (Sun, 07 Sep 2008) | 1 line
Comment out some #defines in skydefs.h as they conflict with other headers (esp. T2 conflicts with some template defs)
........
r34426 | fingolfin | 2008-09-07 23:43:36 +0200 (Sun, 07 Sep 2008) | 1 line
added two FIXMEs to M4 -- somehow, adding two subdirs of CWD named 'goodstuf' and 'resource' to the list of default dirs doesn't sound very sensible to me ;)
........
r34428 | lordhoto | 2008-09-07 23:46:37 +0200 (Sun, 07 Sep 2008) | 2 lines
Moved Kyra resource code to a SearchSet/Archive based implementation, this removes dependencies on Common::File.
........
r34429 | fingolfin | 2008-09-07 23:47:01 +0200 (Sun, 07 Sep 2008) | 1 line
Allow invoking FilesystemNode::getChild on non-dir nodes, by returning an invalid node in that case
........
r34430 | fingolfin | 2008-09-07 23:47:46 +0200 (Sun, 07 Sep 2008) | 1 line
Made File::addDefaultDirectory(Recursive) ignore FSNodes which are not dirs / are invalid, instead of erroring out
........
r34431 | fingolfin | 2008-09-07 23:51:59 +0200 (Sun, 07 Sep 2008) | 1 line
oops
........
r34432 | fingolfin | 2008-09-07 23:59:25 +0200 (Sun, 07 Sep 2008) | 1 line
Add a priority param to OSystem::addSysArchivesToSearchSet (still in search for a better name ;)
........
r34433 | fingolfin | 2008-09-08 00:00:04 +0200 (Mon, 08 Sep 2008) | 1 line
Fix warning about missing virtual destructor
........
r34434 | fingolfin | 2008-09-08 00:10:58 +0200 (Mon, 08 Sep 2008) | 1 line
Replaced Engine::_gameDataPath (a String) by Engine::_gameDataDir (an FSNode); adapted code to that (by using getChild() to get subdirs, not string concatenation
........
r34435 | lordhoto | 2008-09-08 00:30:34 +0200 (Mon, 08 Sep 2008) | 1 line
Got rid of all Common::File usages in Kyra.
........
r34436 | lordhoto | 2008-09-08 00:35:13 +0200 (Mon, 08 Sep 2008) | 2 lines
- Fixed regression in Resource::unloadPakFile
- Changed priority value for OSystem::addSysArchivesToSearchSet call
........
r34437 | fingolfin | 2008-09-08 00:37:27 +0200 (Mon, 08 Sep 2008) | 1 line
Changed md5_file(FSNode) to use FSNode::openForReading
........
r34438 | lordhoto | 2008-09-08 00:41:57 +0200 (Mon, 08 Sep 2008) | 1 line
Changed priorities for search paths. (Just in case system specific data paths contain an outdated kyra.dat version)
........
r34440 | thebluegr | 2008-09-08 10:07:06 +0200 (Mon, 08 Sep 2008) | 1 line
Cleanup
........
r34441 | thebluegr | 2008-09-08 10:09:22 +0200 (Mon, 08 Sep 2008) | 1 line
Added kyra/resource_intern.* to the kyra MSVC project files
........
r34442 | thebluegr | 2008-09-08 10:26:54 +0200 (Mon, 08 Sep 2008) | 1 line
Free the current voice lookup table a bit earlier in loadGlobalResources()
........
r34443 | thebluegr | 2008-09-08 12:36:53 +0200 (Mon, 08 Sep 2008) | 1 line
Reduced calls to File::exists()
........
r34444 | fingolfin | 2008-09-08 13:11:32 +0200 (Mon, 08 Sep 2008) | 1 line
Switched File::open, File::addDefaultDirectory to use a SearchSet internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody
........
r34445 | thebluegr | 2008-09-08 13:45:15 +0200 (Mon, 08 Sep 2008) | 1 line
decompiler.cpp is not used anywhere by default. Remove it to prevent a warning under MSVC that the object file is empty (since DUMP_SCRIPT is not defined by default, the whole code in this file is not used)
........
r34446 | thebluegr | 2008-09-08 13:57:49 +0200 (Mon, 08 Sep 2008) | 1 line
Changed WarnAsError to be true across all engines, in both debug and release builds
........
r34447 | thebluegr | 2008-09-08 14:38:55 +0200 (Mon, 08 Sep 2008) | 1 line
Removed some unneeded conversions from the MSVC8->MSVC7/7.1 conversion tool
........
r34448 | thebluegr | 2008-09-08 15:00:43 +0200 (Mon, 08 Sep 2008) | 5 lines
Some more unification of options:
- AdditionalIncludeDirectories is set to "../../;../../engines"
- InlineFunctionExpansion is set to "0" for debug and "2" for release builds
- DisableLanguageExtensions is set to "false" (disabling language extensions leads to some very weird errors)
- Detect64BitPortabilityProblems is set to "false", as setting it to "true" throws loads of warnings too (mainly related to strlen, when trying to store its result in an integer)
........
r34449 | thebluegr | 2008-09-08 16:00:26 +0200 (Mon, 08 Sep 2008) | 1 line
Don't use fileName both as a structure and as a function parameter
........
r34450 | peres001 | 2008-09-08 16:38:07 +0200 (Mon, 08 Sep 2008) | 1 line
Made searching the game path recursive (with the default depth of 4 levels). This is a temporary fix to make some games work, until we decide what to do with the file/directory searching.
........
r34451 | lordhoto | 2008-09-08 20:48:39 +0200 (Mon, 08 Sep 2008) | 2 lines
Fixed LoL file loading regression.
........
r34452 | lordhoto | 2008-09-08 20:55:29 +0200 (Mon, 08 Sep 2008) | 2 lines
Made some filenames uppercase for consistency.
........
r34453 | anotherguest | 2008-09-08 23:54:04 +0200 (Mon, 08 Sep 2008) | 2 lines
Updated/Fixed Symbian Filesystem handling.
Does not store ending backslash on path, and will list any sub folder properly, by adding '\' when needed.
........
r34454 | athrxx | 2008-09-08 23:57:38 +0200 (Mon, 08 Sep 2008) | 1 line
HOF: msvc8 compile fix (ARRAYSIZE used with run-time allocated array)
........
r34456 | peres001 | 2008-09-09 01:24:20 +0200 (Tue, 09 Sep 2008) | 1 line
Documented commit 34450 (game path searched recursively).
........
r34457 | thebluegr | 2008-09-09 08:47:41 +0200 (Tue, 09 Sep 2008) | 1 line
Fix for bug #2101083 - "ANY - MSVC71 compilation fails due to warnings-as-errors"
........
r34458 | thebluegr | 2008-09-09 09:05:47 +0200 (Tue, 09 Sep 2008) | 1 line
Committed patch #2100962 - "Saga engine reduced memory usage"
........
r34460 | thebluegr | 2008-09-09 13:20:34 +0200 (Tue, 09 Sep 2008) | 1 line
Cleanup. Simplified converse()
........
r34462 | thebluegr | 2008-09-09 14:57:12 +0200 (Tue, 09 Sep 2008) | 1 line
Cleanup
........
r34463 | thebluegr | 2008-09-09 14:57:57 +0200 (Tue, 09 Sep 2008) | 1 line
Cleanup of exitRoom()
........
r34464 | thebluegr | 2008-09-09 17:59:06 +0200 (Tue, 09 Sep 2008) | 4 lines
- Cleanup and simplification
- Moved several simple animations out of animation.cpp
- Moved some animations with talk sequences inside drascula.dat
- A new version of drascula.dat is needed (will be uploaded shortly)
........
r34465 | thebluegr | 2008-09-09 17:59:52 +0200 (Tue, 09 Sep 2008) | 1 line
New version of the create_drascula tool
........
r34466 | thebluegr | 2008-09-09 18:00:28 +0200 (Tue, 09 Sep 2008) | 1 line
New version of drascula.dat
........
r34467 | lordhoto | 2008-09-09 20:09:46 +0200 (Tue, 09 Sep 2008) | 2 lines
Changed static resource code to use Streams instead of operating on buffers.
........
r34468 | thebluegr | 2008-09-10 08:57:32 +0200 (Wed, 10 Sep 2008) | 1 line
Fix in the Igor engine for bug #2101083 - "ANY - MSVC71 compilation fails due to warnings-as-errors"
........
r34469 | thebluegr | 2008-09-10 08:59:55 +0200 (Wed, 10 Sep 2008) | 1 line
Fix for bug #2102828 - "AGOS - compilation error, uninitialized variable"
........
r34472 | thebluegr | 2008-09-10 10:25:12 +0200 (Wed, 10 Sep 2008) | 1 line
Reduced game memory usage by about 400KB by only loading the current language strings, not all strings
........
r34474 | fingolfin | 2008-09-10 11:20:38 +0200 (Wed, 10 Sep 2008) | 1 line
Small fix to help with compile problems on Amiga
........
r34479 | thebluegr | 2008-09-10 14:03:42 +0200 (Wed, 10 Sep 2008) | 1 line
Merged all the methods to assign and set default palettes
........
r34480 | thebluegr | 2008-09-10 15:06:40 +0200 (Wed, 10 Sep 2008) | 1 line
Removed the unused variable changeColor
........
r34481 | lordhoto | 2008-09-10 20:01:02 +0200 (Wed, 10 Sep 2008) | 2 lines
Cleanup.
........
r34483 | vinterstum | 2008-09-10 21:46:08 +0200 (Wed, 10 Sep 2008) | 1 line
Merged up iPhone backend changes from 0.12 to trunk
........
r34484 | lordhoto | 2008-09-10 22:47:58 +0200 (Wed, 10 Sep 2008) | 2 lines
Cleanup.
........
r34485 | fingolfin | 2008-09-11 11:25:13 +0200 (Thu, 11 Sep 2008) | 1 line
Simplify check for a slash in the string *g*
........
r34486 | fingolfin | 2008-09-11 11:26:27 +0200 (Thu, 11 Sep 2008) | 1 line
Added detection for 4-language floppy version of DW (see report on forum post 39703)
........
r34487 | fingolfin | 2008-09-11 11:28:14 +0200 (Thu, 11 Sep 2008) | 1 line
Remove obsolete note about fopen
........
r34488 | thebluegr | 2008-09-11 11:31:45 +0200 (Thu, 11 Sep 2008) | 5 lines
- The game's cursor is now handled via ScummVM's cursor manager, instead of the game itself (this means that there might be regressions where the cursor is visible when it shouldn't be)
- Removed the textSurface pointer, which was used in the Spanish version. Non-Spanish versions of the game hold the font data in the tableSurface buffer (which contains picture 96). The font data for Spanish versions is in picture 974. Now both versions load their font data from the tableSurface buffer
- hay_que_load -> loadedDifferentChapter
- Merged withoutVerb() and selectVerb()
This is a big change, it might lead to regressions!
........
r34489 | thebluegr | 2008-09-11 11:33:15 +0200 (Thu, 11 Sep 2008) | 1 line
Fixed the hotspot for the crosshair cursor
........
r34490 | thebluegr | 2008-09-11 11:37:42 +0200 (Thu, 11 Sep 2008) | 1 line
Cleanup
........
r34491 | thebluegr | 2008-09-11 14:04:45 +0200 (Thu, 11 Sep 2008) | 1 line
Code optimizations from Fingolfin
........
r34492 | peres001 | 2008-09-11 15:24:01 +0200 (Thu, 11 Sep 2008) | 1 line
Added first version of the SearchManager, as it is presented in patch tracker item 2093502.
........
r34493 | thebluegr | 2008-09-11 16:49:04 +0200 (Thu, 11 Sep 2008) | 5 lines
- Merged openDoor() and closeDoor()
- Cleaned up updateDoor()
- Bugfixes to exitRoom() and gotoObject()
- Moved cursor-related functions to interface.cpp
- alapuertakeva -> roomExits
........
r34494 | thebluegr | 2008-09-11 17:35:56 +0200 (Thu, 11 Sep 2008) | 1 line
Cleanup
........
r34495 | lordhoto | 2008-09-11 21:47:45 +0200 (Thu, 11 Sep 2008) | 2 lines
Committed my patch #2105593 "Launcher/MetaEngine: Finnished removeSaveState".
........
r34496 | lordhoto | 2008-09-11 22:20:02 +0200 (Thu, 11 Sep 2008) | 4 lines
- Moved delete confirm dialog to SaveLoadChooser, allows the user to check which save he was trying to delete
- Cleaned up the SaveLoadChooser / Launcher code
-> Should reduce memory usage a little bit
........
r34497 | lordhoto | 2008-09-11 22:34:46 +0200 (Thu, 11 Sep 2008) | 2 lines
Little more cleanup.
........
r34498 | anotherguest | 2008-09-11 23:32:40 +0200 (Thu, 11 Sep 2008) | 3 lines
Added SymbianStream.h for SymbianStdioStream definition
Renamed Symbian stream implementation to
SymbianStdioStream instead of StdioStream.
........
r34501 | Kirben | 2008-09-12 03:28:28 +0200 (Fri, 12 Sep 2008) | 1 line
Fix compiling under mingw, when using latest mingw-runtime (3.15).
........
r34502 | lordhoto | 2008-09-12 14:25:56 +0200 (Fri, 12 Sep 2008) | 2 lines
Fixed slot 0 savefile name in Kyra3. (Now using 'New game' instead of 'German')
........
r34503 | thebluegr | 2008-09-12 14:54:16 +0200 (Fri, 12 Sep 2008) | 5 lines
- Moved more animation data inside drascula.dat
- Merged copyRect and copyRectClip
- Added enums for all the possible character directions and removed duplicate directions
- Extended the talk sequence commands a bit
- Removed unnecessary buffer faceBuffer and the unneeded casts between byte * and char * that were used
........
r34504 | thebluegr | 2008-09-12 14:54:47 +0200 (Fri, 12 Sep 2008) | 1 line
New version of the create_drascula tool
........
r34505 | thebluegr | 2008-09-12 14:55:25 +0200 (Fri, 12 Sep 2008) | 1 line
New version of drascula.dat
........
r34508 | Kirben | 2008-09-13 02:33:40 +0200 (Sat, 13 Sep 2008) | 1 line
Add missing targets.
........
r34511 | anotherguest | 2008-09-13 10:34:38 +0200 (Sat, 13 Sep 2008) | 1 line
Fixed drascula dat path and version nr.
........
r34512 | anotherguest | 2008-09-13 10:35:38 +0200 (Sat, 13 Sep 2008) | 1 line
Fixed rev nr. 130 will give wrong ver. in installation.
........
r34513 | eriktorbjorn | 2008-09-13 17:23:23 +0200 (Sat, 13 Sep 2008) | 2 lines
Indentation.
........
r34514 | fingolfin | 2008-09-13 18:51:46 +0200 (Sat, 13 Sep 2008) | 1 line
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
........
r34515 | sev | 2008-09-13 19:41:42 +0200 (Sat, 13 Sep 2008) | 2 lines
Portability fixes.
........
r34516 | fingolfin | 2008-09-13 22:04:19 +0200 (Sat, 13 Sep 2008) | 1 line
SCUMM: Merged class BaseChunk & Chunk; got rid of MemoryChunk
........
r34517 | fingolfin | 2008-09-13 22:22:52 +0200 (Sat, 13 Sep 2008) | 1 line
SCUMM: Merged class Chunk & FileChunk
........
r34518 | fingolfin | 2008-09-14 00:41:30 +0200 (Sun, 14 Sep 2008) | 1 line
SCUMM: Got rid of class Chunk
........
r34520 | lordhoto | 2008-09-14 16:01:24 +0200 (Sun, 14 Sep 2008) | 2 lines
Rename save slots in KyraMetaEngine::removeSaveState, so it matches behavior in GUI_v2::deleteMenu at least a little bit more.
........
r34521 | lordhoto | 2008-09-14 16:08:14 +0200 (Sun, 14 Sep 2008) | 2 lines
Added a hack in KyraMetaEngine::listSaves to prevent slot 0 from being listed. Check comment for additional information.
........
r34522 | lordhoto | 2008-09-14 16:58:37 +0200 (Sun, 14 Sep 2008) | 2 lines
Only setup 'cdaudio' config default for FM-Towns/PC98.
........
r34523 | lordhoto | 2008-09-14 17:35:40 +0200 (Sun, 14 Sep 2008) | 2 lines
Fixed regression introduced with r34522. (Now games without 'cdaudio' config value set should startup again).
........
r34524 | lordhoto | 2008-09-14 17:36:16 +0200 (Sun, 14 Sep 2008) | 2 lines
Implemented opcode 151: o1_resetMaskRegion
........
r34526 | thebluegr | 2008-09-14 18:21:31 +0200 (Sun, 14 Sep 2008) | 1 line
Fix for bug #2110375 - "DRASCULA: Mouse visible in screen saver", a regression from moving mouse handling to OSystem
........
r34527 | lordhoto | 2008-09-14 18:29:14 +0200 (Sun, 14 Sep 2008) | 2 lines
Fixed thumbnail creation / loading in kyra.
........
r34528 | lordhoto | 2008-09-14 18:48:20 +0200 (Sun, 14 Sep 2008) | 2 lines
Typo.
........
r34529 | thebluegr | 2008-09-14 20:00:06 +0200 (Sun, 14 Sep 2008) | 1 line
Updated MSVC project files for the SCUMM engine - removed smush/chunk.*
........
r34530 | lordhoto | 2008-09-14 20:19:22 +0200 (Sun, 14 Sep 2008) | 2 lines
Committed patch by [md5] from bug tracker item #2100790 "GUI:Clicking "Load" when no games are added triggers a crash".
........
r34531 | thebluegr | 2008-09-14 20:30:08 +0200 (Sun, 14 Sep 2008) | 1 line
Slight cleanup of centerText()
........
r34532 | lordhoto | 2008-09-14 20:59:43 +0200 (Sun, 14 Sep 2008) | 2 lines
Fix for bug #2089275: "GUI: Returning to launcher may trigger an error".
........
r34533 | lordhoto | 2008-09-14 21:05:05 +0200 (Sun, 14 Sep 2008) | 2 lines
Fix potentional bug in Screen::setResolution.
........
r34534 | lordhoto | 2008-09-14 21:16:08 +0200 (Sun, 14 Sep 2008) | 2 lines
Fix for bug #2090879 "GUI: Launcher 'Load' dialog should preserve save slot index".
........
r34535 | lordhoto | 2008-09-14 21:48:40 +0200 (Sun, 14 Sep 2008) | 2 lines
Added autosave support in Kyra.
........
r34536 | lordhoto | 2008-09-14 22:01:01 +0200 (Sun, 14 Sep 2008) | 2 lines
Changed message when trying to open the load dialog for games not supporting direct loading.
........
r34537 | lordhoto | 2008-09-14 22:42:50 +0200 (Sun, 14 Sep 2008) | 2 lines
Added ScummVM logo to GMM.
........
r34538 | lordhoto | 2008-09-14 22:52:40 +0200 (Sun, 14 Sep 2008) | 2 lines
Minor improvement for GMM layout.
........
r34539 | lordhoto | 2008-09-14 23:00:24 +0200 (Sun, 14 Sep 2008) | 3 lines
- Added thumbnail support to launcher load dialog.
- Adopted KYRA to support displaying thumbnails in load dialog (SCUMM engine has yet to follow)
........
r34540 | lordhoto | 2008-09-14 23:13:40 +0200 (Sun, 14 Sep 2008) | 2 lines
Added thumbnail support for launcher to SCUMM engine.
........
r34541 | fingolfin | 2008-09-14 23:26:59 +0200 (Sun, 14 Sep 2008) | 1 line
Fixed a typo & clarified a comment
........
r34542 | fingolfin | 2008-09-14 23:32:45 +0200 (Sun, 14 Sep 2008) | 1 line
Compilation fix for NDS
........
r34543 | lordhoto | 2008-09-14 23:34:49 +0200 (Sun, 14 Sep 2008) | 2 lines
Little cleanup.
........
r34544 | fingolfin | 2008-09-14 23:39:45 +0200 (Sun, 14 Sep 2008) | 1 line
Changed VPATH to vpath, to allow building NDS port in parallel to another port (for the records, this patch went to Neil in January, and he didn't complain)
........
r34545 | lordhoto | 2008-09-14 23:41:27 +0200 (Sun, 14 Sep 2008) | 2 lines
Cleanup.
........
r34546 | fingolfin | 2008-09-15 00:12:59 +0200 (Mon, 15 Sep 2008) | 1 line
Another NDS compilation fix, plus a warning fix
........
r34547 | fingolfin | 2008-09-15 00:15:13 +0200 (Mon, 15 Sep 2008) | 1 line
NDS: Replaced -I- by modern -iquote
........
r34548 | fingolfin | 2008-09-15 00:24:35 +0200 (Mon, 15 Sep 2008) | 1 line
DS: Removed legacy GCC 2.x build code (NDS/DevKitPro uses GCC 3 or newer anyway); thinned down INCLUDES some more; added a FIXME to the elf->bin rule
........
r34549 | wjpalenstijn | 2008-09-15 00:28:53 +0200 (Mon, 15 Sep 2008) | 6 lines
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!
........
r34550 | fingolfin | 2008-09-15 00:44:49 +0200 (Mon, 15 Sep 2008) | 1 line
DS: Some more compile fixes (prope solution would of course be to overload ::openForReading & ::openForWriting)
........
r34551 | lordhoto | 2008-09-15 01:14:38 +0200 (Mon, 15 Sep 2008) | 2 lines
Fixed regression introduced with latest stream changes (it seems compressed savefiles ioFailed never returned true when only eos was set).
........
r34552 | wjpalenstijn | 2008-09-15 08:51:15 +0200 (Mon, 15 Sep 2008) | 1 line
fix listSaveGames
........
r34553 | wjpalenstijn | 2008-09-15 08:52:00 +0200 (Mon, 15 Sep 2008) | 1 line
replace ioFailed by err
........
r34554 | thebluegr | 2008-09-15 11:17:18 +0200 (Mon, 15 Sep 2008) | 1 line
Proper check for eos(), after the latest changes to OSystem
........
r34555 | fingolfin | 2008-09-15 12:05:36 +0200 (Mon, 15 Sep 2008) | 1 line
Fix SubReadStream by initing _eos to false in the constructor (spotted thanks to our unit tests)
........
r34556 | fingolfin | 2008-09-15 14:37:18 +0200 (Mon, 15 Sep 2008) | 1 line
Corrected and shortened some file opening related warnings
........
r34557 | Kirben | 2008-09-15 14:37:24 +0200 (Mon, 15 Sep 2008) | 1 line
Replace ioFailed by err.
........
r34558 | thebluegr | 2008-09-15 15:37:28 +0200 (Mon, 15 Sep 2008) | 2 lines
Rewrote the very confusing centerText() function into something that makes more sense, and matches the way that the original printed text on screen (in most cases)
Fixes bugs #2102657 - "DRASCULA: Crash when talking to the piano player" and #2111820 - "DRASCULA: Dialog texts too long"
........
r34559 | thebluegr | 2008-09-15 15:45:10 +0200 (Mon, 15 Sep 2008) | 1 line
Fixed the phrase told by the protagonist when he talks to the blind man the second time
........
r34560 | thebluegr | 2008-09-15 16:17:51 +0200 (Mon, 15 Sep 2008) | 1 line
Remove a workaround in textFitsCentered(). The blind man's dialog is a bit better placed now
........
r34561 | thebluegr | 2008-09-15 16:35:11 +0200 (Mon, 15 Sep 2008) | 1 line
Show the blind man's dialog text at a bit better place
........
r34562 | wjpalenstijn | 2008-09-15 21:19:30 +0200 (Mon, 15 Sep 2008) | 1 line
fix eos() behaviour for CompressedInSaveFile
........
r34563 | wjpalenstijn | 2008-09-15 21:34:06 +0200 (Mon, 15 Sep 2008) | 1 line
also check for premature end-of-stream when loading
........
r34566 | fingolfin | 2008-09-15 23:55:50 +0200 (Mon, 15 Sep 2008) | 1 line
Turned compressed savefile wrapper into a generic stream wrapper
........
r34567 | fingolfin | 2008-09-16 00:37:45 +0200 (Tue, 16 Sep 2008) | 1 line
Fixed compiler warnings
........
r34568 | fingolfin | 2008-09-16 00:43:20 +0200 (Tue, 16 Sep 2008) | 1 line
DS: Backported 0.12 changes to trunk
........
r34569 | thebluegr | 2008-09-16 09:16:26 +0200 (Tue, 16 Sep 2008) | 2 lines
- Fixed centerText() to print text at the correct height
- Removed some duplicate code
........
r34571 | thebluegr | 2008-09-16 10:10:08 +0200 (Tue, 16 Sep 2008) | 1 line
Added a workaround to skip the silence in the beginning and end of file 3.als. Fixes bug #2111815 - "DRASCULA: Voice delayed"
........
r34572 | thebluegr | 2008-09-16 10:12:13 +0200 (Tue, 16 Sep 2008) | 1 line
Assign _lang to the appropriate enum values
........
r34573 | thebluegr | 2008-09-16 10:24:42 +0200 (Tue, 16 Sep 2008) | 1 line
Removed the confirmation speech when a game is saved - it's "99.als" instead of "s99.als", but the main problem is that it's not translated in the English version and it's in Spanish (plus it's creepy and annoying...)
........
r34574 | thebluegr | 2008-09-16 12:44:07 +0200 (Tue, 16 Sep 2008) | 1 line
Cleaned up and fixed the cutscene with Von Braun's story. Fixes bugs #2111804 - "DRASCULA: Cut scene bugs" and #2059648 - "DRASCULA: VonBraun's song"
........
r34575 | thebluegr | 2008-09-16 12:53:57 +0200 (Tue, 16 Sep 2008) | 1 line
Fixed some glitches in the last part of Von Braun's story
........
r34576 | fingolfin | 2008-09-16 13:42:21 +0200 (Tue, 16 Sep 2008) | 1 line
Modified uncompress in common/zlib.h to return a bool, so that we don't have to #include the real zlib.h; fixed PSP backend to not run uncompress inside an assert (which would cause it to not be invoked when turning off asserts)
........
r34577 | thebluegr | 2008-09-16 13:49:40 +0200 (Tue, 16 Sep 2008) | 3 lines
- Moved some includes away from drascula.h
- Moved grr() to talk.cpp
- Removed the unnecessary parameter length from isTalkFinished()
........
r34578 | fingolfin | 2008-09-16 13:50:10 +0200 (Tue, 16 Sep 2008) | 1 line
Merged common/gzip-stream.* and common/zlib.*
........
r34579 | lordhoto | 2008-09-16 13:54:37 +0200 (Tue, 16 Sep 2008) | 2 lines
Removed assert leftover.
........
r34580 | fingolfin | 2008-09-16 13:57:45 +0200 (Tue, 16 Sep 2008) | 1 line
Fix sign warnings in unit tests
........
r34581 | lordhoto | 2008-09-16 16:10:55 +0200 (Tue, 16 Sep 2008) | 6 lines
Added "querySaveMetaInfos" to MetaEngine.
-> Allows easy addition of save state specific infos like playtime, save date atc.
-> Removed MetaEngine::loadThumbnailFromSlot, superseded by meta infos
-> Changed SCUMM / KYRA to implement the newly added functionallity
-> Removed hack in KYRAs listSavefiles, which is now handled via meta infos
........
r34582 | lordhoto | 2008-09-16 16:22:51 +0200 (Tue, 16 Sep 2008) | 2 lines
Cleanup.
........
r34583 | lordhoto | 2008-09-16 16:56:02 +0200 (Tue, 16 Sep 2008) | 2 lines
Added support for SCUMM savestates date/time and playtime info in the launcher load dialog.
........
r34584 | lordhoto | 2008-09-16 16:59:52 +0200 (Tue, 16 Sep 2008) | 2 lines
Added whitespace in playtime textfield.
........
r34585 | fingolfin | 2008-09-16 22:12:25 +0200 (Tue, 16 Sep 2008) | 1 line
Removed tons of unused 'length' variables, to silence compiler warnings
........
r34586 | fingolfin | 2008-09-17 18:31:25 +0200 (Wed, 17 Sep 2008) | 1 line
adding Info.plist to svn:ignore
........
r34587 | fingolfin | 2008-09-17 18:38:01 +0200 (Wed, 17 Sep 2008) | 1 line
DS: Removing some dead code; merged (parts of) std_cwd into GBAMPSaveFileManager::listSavefiles
........
r34588 | fingolfin | 2008-09-17 18:50:19 +0200 (Wed, 17 Sep 2008) | 1 line
Adding *.dSYM (generated by gcc on OSX these days) to svn:ignore
........
r34589 | fingolfin | 2008-09-17 19:31:29 +0200 (Wed, 17 Sep 2008) | 1 line
Moved base/game.* to engines/game.*
........
r34590 | lordhoto | 2008-09-17 19:46:55 +0200 (Wed, 17 Sep 2008) | 2 lines
Fixed bug in SaveLoadChooser reflowLayout, which prevented widgets from being properly hidden.
........
r34592 | fingolfin | 2008-09-17 20:16:06 +0200 (Wed, 17 Sep 2008) | 1 line
Patch #2112604: Update for the man page
........
r34595 | fingolfin | 2008-09-17 20:26:44 +0200 (Wed, 17 Sep 2008) | 1 line
Patch #2043093 (again - new patch): OS/2 patches for posix-fs
........
r34596 | fingolfin | 2008-09-17 20:56:13 +0200 (Wed, 17 Sep 2008) | 1 line
Patch #2060517: SCUMM: engine sets incorrect talkspeed value
........
r34597 | fingolfin | 2008-09-17 20:56:54 +0200 (Wed, 17 Sep 2008) | 1 line
Added some noteworthy improvements due to Chris Page & GSoC 2008
........
r34598 | fingolfin | 2008-09-17 20:59:09 +0200 (Wed, 17 Sep 2008) | 1 line
Simplified & fixed SearchManager
........
r34599 | fingolfin | 2008-09-18 10:19:00 +0200 (Thu, 18 Sep 2008) | 1 line
Added 'native' implementations for FSDirectory::matchPattern & SearchSet::getAllNames (untested)
........
r34602 | thebluegr | 2008-09-19 12:25:40 +0200 (Fri, 19 Sep 2008) | 1 line
Updated MSVC project files with the latest changes (moved base/game.* to engines/game.*)
........
r34603 | thebluegr | 2008-09-19 15:58:09 +0200 (Fri, 19 Sep 2008) | 1 line
Changed tinsel's volume range (0-127) to match ScummVM's (0-255)
........
svn-id: r34606
2008-09-20 11:21:35 +00:00
new ButtonWidget ( this , " Launcher.LoadGameButton " , " Load " , kLoadGameCmd , ' L ' ) ;
2005-05-16 00:26:23 +00:00
// Above the lowest button rows: two more buttons (directly below the list box)
2007-09-19 08:40:12 +00:00
_addButton =
2008-10-29 19:02:45 +00:00
new ButtonWidget ( this , " Launcher.AddGameButton " , " Add Game " , kAddGameCmd , ' A ' ) ;
2006-03-07 05:39:52 +00:00
_editButton =
2008-10-29 19:02:45 +00:00
new ButtonWidget ( this , " Launcher.EditGameButton " , " Edit Game " , kEditGameCmd , ' E ' ) ;
2006-03-07 05:39:52 +00:00
_removeButton =
2008-08-05 16:23:17 +00:00
new ButtonWidget ( this , " Launcher.RemoveGameButton " , " Remove Game " , kRemoveGameCmd , ' R ' ) ;
2005-05-16 00:26:23 +00:00
2002-09-27 23:27:14 +00:00
// Add list with game titles
2008-08-05 16:23:17 +00:00
_list = new ListWidget ( this , " Launcher.GameList " ) ;
2002-09-30 12:56:59 +00:00
_list - > setEditable ( false ) ;
2002-09-30 00:55:47 +00:00
_list - > setNumberingMode ( kListNumberingOff ) ;
2003-03-06 19:52:54 +00:00
2002-12-01 12:47:13 +00:00
// Populate the list
updateListing ( ) ;
2004-10-01 21:12:18 +00:00
// Restore last selection
2006-06-03 13:33:39 +00:00
String last ( ConfMan . get ( " lastselectedgame " , ConfigManager : : kApplicationDomain ) ) ;
2005-01-05 01:42:52 +00:00
selectGame ( last ) ;
2005-07-30 21:11:48 +00:00
2005-05-16 00:26:23 +00:00
// En-/disable the buttons depending on the list selection
2005-01-05 01:42:52 +00:00
updateButtons ( ) ;
// Create file browser dialog
2005-04-16 17:55:09 +00:00
_browser = new BrowserDialog ( " Select directory with game data " , true ) ;
2008-07-30 21:48:45 +00:00
2008-08-14 03:50:48 +00:00
// Create Load dialog
_loadDialog = new SaveLoadChooser ( " Load game: " , " Load " ) ;
2005-01-05 01:42:52 +00:00
}
void LauncherDialog : : selectGame ( const String & name ) {
2006-03-28 09:42:54 +00:00
if ( ! name . empty ( ) ) {
2004-10-01 21:12:18 +00:00
int itemToSelect = 0 ;
StringList : : const_iterator iter ;
for ( iter = _domains . begin ( ) ; iter ! = _domains . end ( ) ; + + iter , + + itemToSelect ) {
2005-01-05 01:42:52 +00:00
if ( name = = * iter ) {
2004-10-01 21:12:18 +00:00
_list - > setSelected ( itemToSelect ) ;
break ;
}
}
}
2002-11-21 02:19:02 +00:00
}
2003-03-06 19:52:54 +00:00
LauncherDialog : : ~ LauncherDialog ( ) {
2002-11-21 02:19:02 +00:00
delete _browser ;
2008-08-13 20:27:39 +00:00
delete _loadDialog ;
2002-11-21 02:19:02 +00:00
}
2006-07-22 21:23:49 +00:00
void LauncherDialog : : open ( ) {
// Clear the active domain, in case we return to the dialog from a
// failure to launch a game. Otherwise, pressing ESC will attempt to
// re-launch the same game again.
ConfMan . setActiveDomain ( " " ) ;
2008-06-16 18:47:32 +00:00
CursorMan . popAllCursors ( ) ;
2006-07-22 21:23:49 +00:00
Dialog : : open ( ) ;
2007-09-19 08:40:12 +00:00
2007-03-17 16:05:16 +00:00
updateButtons ( ) ;
2006-07-22 21:23:49 +00:00
}
2004-10-01 21:12:18 +00:00
void LauncherDialog : : close ( ) {
// Save last selection
const int sel = _list - > getSelected ( ) ;
if ( sel > = 0 )
2006-06-03 13:33:39 +00:00
ConfMan . set ( " lastselectedgame " , _domains [ sel ] , ConfigManager : : kApplicationDomain ) ;
2004-10-01 21:12:18 +00:00
else
2006-06-03 13:33:39 +00:00
ConfMan . removeKey ( " lastselectedgame " , ConfigManager : : kApplicationDomain ) ;
2005-07-30 21:11:48 +00:00
ConfMan . flushToDisk ( ) ;
2004-10-01 21:12:18 +00:00
Dialog : : close ( ) ;
}
2003-03-06 19:52:54 +00:00
void LauncherDialog : : updateListing ( ) {
2003-10-02 17:43:02 +00:00
Common : : StringList l ;
2002-10-28 09:03:02 +00:00
2002-10-28 10:40:49 +00:00
// Retrieve a list of all games defined in the config file
2002-11-21 15:20:52 +00:00
_domains . clear ( ) ;
2003-10-08 21:59:23 +00:00
const ConfigManager : : DomainMap & domains = ConfMan . getGameDomains ( ) ;
2008-06-11 06:22:02 +00:00
ConfigManager : : DomainMap : : const_iterator iter ;
2003-10-05 14:03:07 +00:00
for ( iter = domains . begin ( ) ; iter ! = domains . end ( ) ; + + iter ) {
2008-06-11 06:22:02 +00:00
# ifdef __DS__
// DS port uses an extra section called 'ds'. This prevents the section from being
// detected as a game.
if ( iter - > _key = = " ds " ) {
continue ;
}
# endif
2006-01-21 13:01:20 +00:00
String gameid ( iter - > _value . get ( " gameid " ) ) ;
2003-10-08 21:59:23 +00:00
String description ( iter - > _value . get ( " description " ) ) ;
2003-03-06 19:52:54 +00:00
2006-03-28 09:42:54 +00:00
if ( gameid . empty ( ) )
2006-01-21 13:01:20 +00:00
gameid = iter - > _key ;
2006-03-28 09:42:54 +00:00
if ( description . empty ( ) ) {
2008-05-12 00:26:29 +00:00
GameDescriptor g = EngineMan . findGame ( gameid ) ;
2007-01-20 21:27:57 +00:00
if ( g . contains ( " description " ) )
description = g . description ( ) ;
2003-10-17 15:54:17 +00:00
}
2007-07-02 22:48:39 +00:00
2007-06-15 16:32:14 +00:00
if ( description . empty ( ) )
description = " Unknown (target " + iter - > _key + " , gameid " + gameid + " ) " ;
2002-10-28 10:40:49 +00:00
2006-03-28 09:42:54 +00:00
if ( ! gameid . empty ( ) & & ! description . empty ( ) ) {
2002-10-28 10:40:49 +00:00
// Insert the game into the launcher list
int pos = 0 , size = l . size ( ) ;
2002-10-28 09:03:02 +00:00
2004-08-26 00:27:51 +00:00
while ( pos < size & & ( scumm_stricmp ( description . c_str ( ) , l [ pos ] . c_str ( ) ) > 0 ) )
2002-10-15 15:32:54 +00:00
pos + + ;
2002-10-28 10:40:49 +00:00
l . insert_at ( pos , description ) ;
2003-10-08 21:59:23 +00:00
_domains . insert_at ( pos , iter - > _key ) ;
2002-09-30 00:55:47 +00:00
}
2002-09-27 23:27:14 +00:00
}
2004-12-25 22:26:28 +00:00
const int oldSel = _list - > getSelected ( ) ;
2002-11-21 15:20:52 +00:00
_list - > setList ( l ) ;
2004-12-25 23:19:42 +00:00
if ( oldSel < ( int ) l . size ( ) )
2004-12-25 22:26:28 +00:00
_list - > setSelected ( oldSel ) ; // Restore the old selection
2006-11-13 16:29:14 +00:00
else if ( oldSel ! = - 1 )
// Select the last entry if the list has been reduced
_list - > setSelected ( _list - > getList ( ) . size ( ) - 1 ) ;
2002-12-01 12:47:13 +00:00
updateButtons ( ) ;
2002-09-27 23:27:14 +00:00
}
2003-11-05 12:25:42 +00:00
void LauncherDialog : : addGame ( ) {
2007-03-17 16:05:16 +00:00
int modifiers = g_system - > getEventManager ( ) - > getModifierState ( ) ;
2007-03-17 19:02:05 +00:00
bool massAdd = ( modifiers & Common : : KBD_SHIFT ) ! = 0 ;
2007-09-19 08:40:12 +00:00
2006-10-02 22:28:02 +00:00
if ( massAdd ) {
MessageDialog alert ( " Do you really want to run the mass game detector? "
" This could potentially add a huge number of games. " , " Yes " , " No " ) ;
if ( alert . runModal ( ) = = GUI : : kMessageOK & & _browser - > runModal ( ) > 0 ) {
2007-02-18 18:23:52 +00:00
MassAddDialog massAddDlg ( _browser - > getResult ( ) ) ;
2009-06-06 17:49:59 +00:00
ConfMan . set ( " temp_selection " , _domains [ _list - > getSelected ( ) ] , ConfigManager : : kApplicationDomain ) ;
2007-02-18 18:23:52 +00:00
massAddDlg . runModal ( ) ;
2007-02-18 18:36:21 +00:00
2009-06-06 17:49:59 +00:00
selectGame ( ConfMan . get ( " temp_selection " , ConfigManager : : kApplicationDomain ) ) ;
ConfMan . removeKey ( " temp_selection " , ConfigManager : : kApplicationDomain ) ;
2007-02-18 18:36:21 +00:00
// Update the ListWidget and force a redraw
updateListing ( ) ;
draw ( ) ;
2006-10-02 22:28:02 +00:00
}
2009-01-08 17:08:24 +00:00
// We need to update the buttons here, so "Mass add" will revert to "Add game"
// without any additional event.
updateButtons ( ) ;
2006-10-02 22:28:02 +00:00
return ;
}
2003-11-05 12:25:42 +00:00
// Allow user to add a new game to the list.
// 1) show a dir selection dialog which lets the user pick the directory
// the game data resides in.
// 2) try to auto detect which game is in the directory, if we cannot
2009-04-18 21:12:32 +00:00
// determine it uniquely present a list of candidates to the user
2003-11-05 12:25:42 +00:00
// to pick from
// 3) Display the 'Edit' dialog for that item, letting the user specify
// an alternate description (to distinguish multiple versions of the
// game, e.g. 'Monkey German' and 'Monkey English') and set default
2009-06-06 17:37:15 +00:00
// options for that game
// 4) If no game is found in the specified directory, return to the
// dialog.
2007-02-18 18:23:52 +00:00
2009-06-06 17:37:15 +00:00
bool looping ;
do {
looping = false ;
2007-02-18 18:23:52 +00:00
2009-06-06 17:37:15 +00:00
if ( _browser - > runModal ( ) > 0 ) {
// User made his choice...
Common : : FSNode dir ( _browser - > getResult ( ) ) ;
Common : : FSList files ;
if ( ! dir . getChildren ( files , Common : : FSNode : : kListAll ) ) {
MessageDialog alert ( " ScummVM couldn't open the specified directory! " ) ;
alert . runModal ( ) ;
return ;
}
2007-02-18 18:23:52 +00:00
2009-06-06 17:37:15 +00:00
// ...so let's determine a list of candidates, games that
// could be contained in the specified directory.
GameList candidates ( EngineMan . detectGames ( files ) ) ;
2007-09-19 08:40:12 +00:00
2009-06-06 17:37:15 +00:00
int idx ;
if ( candidates . empty ( ) ) {
// No game was found in the specified directory
MessageDialog alert ( " ScummVM could not find any game in the specified directory! " ) ;
alert . runModal ( ) ;
idx = - 1 ;
2007-09-19 08:40:12 +00:00
2009-06-06 17:37:15 +00:00
looping = true ;
} else if ( candidates . size ( ) = = 1 ) {
// Exact match
idx = 0 ;
2007-02-18 18:23:52 +00:00
} else {
2009-06-06 17:37:15 +00:00
// Display the candidates to the user and let her/him pick one
StringList list ;
for ( idx = 0 ; idx < ( int ) candidates . size ( ) ; idx + + )
list . push_back ( candidates [ idx ] . description ( ) ) ;
ChooserDialog dialog ( " Pick the game: " ) ;
dialog . setList ( list ) ;
idx = dialog . runModal ( ) ;
2007-02-18 18:23:52 +00:00
}
2009-06-06 17:37:15 +00:00
if ( 0 < = idx & & idx < ( int ) candidates . size ( ) ) {
GameDescriptor result = candidates [ idx ] ;
2007-02-18 18:23:52 +00:00
2009-06-06 17:37:15 +00:00
// TODO: Change the detectors to set "path" !
result [ " path " ] = dir . getPath ( ) ;
Common : : String domain = addGameToConf ( result ) ;
// Display edit dialog for the new entry
EditGameDialog editDialog ( domain , result . description ( ) ) ;
if ( editDialog . runModal ( ) > 0 ) {
// User pressed OK, so make changes permanent
// Write config to disk
ConfMan . flushToDisk ( ) ;
// Update the ListWidget, select the new item, and force a redraw
updateListing ( ) ;
selectGame ( editDialog . getDomain ( ) ) ;
draw ( ) ;
} else {
// User aborted, remove the the new domain again
ConfMan . removeGameDomain ( domain ) ;
}
}
2006-10-02 22:28:02 +00:00
}
2009-06-06 17:37:15 +00:00
} while ( looping ) ;
2006-10-02 22:28:02 +00:00
}
2007-02-18 18:23:52 +00:00
Common : : String addGameToConf ( const GameDescriptor & result ) {
2006-11-19 22:32:35 +00:00
// The auto detector or the user made a choice.
// Pick a domain name which does not yet exist (after all, we
// are *adding* a game to the config, not replacing).
2008-11-08 01:34:02 +00:00
Common : : String domain = result . preferredtarget ( ) ;
2007-01-29 23:25:51 +00:00
2007-01-28 10:38:23 +00:00
assert ( ! domain . empty ( ) ) ;
2006-11-19 22:32:35 +00:00
if ( ConfMan . hasGameDomain ( domain ) ) {
int suffixN = 1 ;
char suffix [ 16 ] ;
2008-11-08 01:34:02 +00:00
Common : : String gameid ( domain ) ;
2006-11-19 22:32:35 +00:00
while ( ConfMan . hasGameDomain ( domain ) ) {
snprintf ( suffix , 16 , " -%d " , suffixN ) ;
2007-01-29 23:25:51 +00:00
domain = gameid + suffix ;
2006-11-19 22:32:35 +00:00
suffixN + + ;
}
}
2006-04-16 13:58:11 +00:00
2006-11-19 22:32:35 +00:00
// Add the name domain
ConfMan . addGameDomain ( domain ) ;
2007-02-18 18:39:46 +00:00
// Copy all non-empty key/value pairs into the new domain
for ( GameDescriptor : : const_iterator iter = result . begin ( ) ; iter ! = result . end ( ) ; + + iter ) {
if ( ! iter - > _value . empty ( ) & & iter - > _key ! = " preferredtarget " )
ConfMan . set ( iter - > _key , iter - > _value , domain ) ;
}
2006-11-19 22:32:35 +00:00
// TODO: Setting the description field here has the drawback
// that the user does never notice when we upgrade our descriptions.
// It might be nice ot leave this field empty, and only set it to
2007-09-19 08:40:12 +00:00
// a value when the user edits the description string.
2006-11-19 22:32:35 +00:00
// However, at this point, that's impractical. Once we have a method
// to query all backends for the proper & full description of a given
// game target, we can change this (currently, you can only query
// for the generic gameid description; it's not possible to obtain
// a description which contains extended information like language, etc.).
2007-09-19 08:40:12 +00:00
2007-02-18 18:23:52 +00:00
return domain ;
2006-11-19 22:32:35 +00:00
}
2003-11-05 12:25:42 +00:00
void LauncherDialog : : removeGame ( int item ) {
MessageDialog alert ( " Do you really want to remove this game configuration? " , " Yes " , " No " ) ;
2005-07-30 21:11:48 +00:00
2004-08-11 21:49:58 +00:00
if ( alert . runModal ( ) = = GUI : : kMessageOK ) {
2003-11-05 12:25:42 +00:00
// Remove the currently selected game from the list
assert ( item > = 0 ) ;
ConfMan . removeGameDomain ( _domains [ item ] ) ;
// Write config to disk
ConfMan . flushToDisk ( ) ;
2005-07-30 21:11:48 +00:00
2003-11-05 12:25:42 +00:00
// Update the ListWidget and force a redraw
updateListing ( ) ;
draw ( ) ;
}
}
void LauncherDialog : : editGame ( int item ) {
2009-02-15 22:07:19 +00:00
// Set game specific options. Most of these should be "optional", i.e. by
2003-11-05 12:25:42 +00:00
// default set nothing and use the global ScummVM settings. E.g. the user
// can set here an optional alternate music volume, or for specific games
// a different music driver etc.
// This is useful because e.g. MonkeyVGA needs Adlib music to have decent
// music support etc.
assert ( item > = 0 ) ;
String gameId ( ConfMan . get ( " gameid " , _domains [ item ] ) ) ;
2006-03-28 09:42:54 +00:00
if ( gameId . empty ( ) )
2003-11-05 12:25:42 +00:00
gameId = _domains [ item ] ;
2008-05-12 00:26:29 +00:00
EditGameDialog editDialog ( _domains [ item ] , EngineMan . findGame ( gameId ) . description ( ) ) ;
2004-03-17 00:07:43 +00:00
if ( editDialog . runModal ( ) > 0 ) {
2003-11-05 12:25:42 +00:00
// User pressed OK, so make changes permanent
// Write config to disk
ConfMan . flushToDisk ( ) ;
2003-11-08 23:22:16 +00:00
2009-02-15 22:07:19 +00:00
// Update the ListWidget, reselect the edited game and force a redraw
2003-11-05 12:25:42 +00:00
updateListing ( ) ;
2009-02-15 22:07:19 +00:00
selectGame ( editDialog . getDomain ( ) ) ;
2003-11-05 12:25:42 +00:00
draw ( ) ;
}
}
2008-07-30 21:48:45 +00:00
void LauncherDialog : : loadGame ( int item ) {
2008-08-06 01:48:46 +00:00
String gameId = ConfMan . get ( " gameid " , _domains [ item ] ) ;
if ( gameId . empty ( ) )
gameId = _domains [ item ] ;
const EnginePlugin * plugin = 0 ;
2008-09-11 20:20:02 +00:00
EngineMan . findGame ( gameId , & plugin ) ;
2008-08-14 03:50:48 +00:00
2008-09-11 20:20:02 +00:00
String target = _domains [ item ] ;
target . toLowercase ( ) ;
2008-08-14 06:51:04 +00:00
2008-08-06 01:48:46 +00:00
if ( plugin ) {
2008-12-22 11:22:15 +00:00
if ( ( * plugin ) - > hasFeature ( MetaEngine : : kSupportsListSaves ) & &
2008-10-26 16:42:08 +00:00
( * plugin ) - > hasFeature ( MetaEngine : : kSupportsLoadingDuringStartup ) ) {
2008-09-11 20:20:02 +00:00
int slot = _loadDialog - > runModal ( plugin , target ) ;
if ( slot > = 0 ) {
ConfMan . setActiveDomain ( _domains [ item ] ) ;
ConfMan . setInt ( " save_slot " , slot , Common : : ConfigManager : : kTransientDomain ) ;
close ( ) ;
}
2008-08-15 18:15:14 +00:00
} else {
MessageDialog dialog
2008-09-14 20:01:01 +00:00
( " This game does not support loading games from the launcher. " , " OK " ) ;
2008-08-15 18:15:14 +00:00
dialog . runModal ( ) ;
2008-08-06 01:48:46 +00:00
}
} else {
MessageDialog dialog ( " ScummVM could not find any engine capable of running the selected game! " , " OK " ) ;
dialog . runModal ( ) ;
}
2008-07-30 21:48:45 +00:00
}
2007-06-30 12:26:59 +00:00
void LauncherDialog : : handleKeyDown ( Common : : KeyState state ) {
Dialog : : handleKeyDown ( state ) ;
2007-03-17 16:05:16 +00:00
updateButtons ( ) ;
2006-10-02 22:28:02 +00:00
}
2007-06-30 12:26:59 +00:00
void LauncherDialog : : handleKeyUp ( Common : : KeyState state ) {
Dialog : : handleKeyUp ( state ) ;
2007-03-17 16:05:16 +00:00
updateButtons ( ) ;
2006-10-02 22:28:02 +00:00
}
2003-11-05 12:25:42 +00:00
void LauncherDialog : : handleCommand ( CommandSender * sender , uint32 cmd , uint32 data ) {
2003-11-10 23:40:48 +00:00
int item = _list - > getSelected ( ) ;
2003-11-05 12:25:42 +00:00
switch ( cmd ) {
case kAddGameCmd :
addGame ( ) ;
2002-11-21 13:11:29 +00:00
break ;
2003-11-05 12:25:42 +00:00
case kRemoveGameCmd :
removeGame ( item ) ;
break ;
case kEditGameCmd :
editGame ( item ) ;
2002-10-17 22:43:13 +00:00
break ;
2008-07-30 21:48:45 +00:00
case kLoadGameCmd :
loadGame ( item ) ;
break ;
2002-11-21 13:11:29 +00:00
case kOptionsCmd : {
2006-03-09 05:18:00 +00:00
GlobalOptionsDialog options ;
2002-12-12 23:22:48 +00:00
options . runModal ( ) ;
2002-11-21 13:11:29 +00:00
}
2002-10-17 22:43:13 +00:00
break ;
2003-09-08 18:09:32 +00:00
case kAboutCmd : {
2003-11-02 02:18:16 +00:00
AboutDialog about ;
2003-09-08 18:09:32 +00:00
about . runModal ( ) ;
}
break ;
2002-09-30 00:55:47 +00:00
case kStartCmd :
2003-11-18 23:47:08 +00:00
case kListItemActivatedCmd :
2002-09-27 23:27:14 +00:00
case kListItemDoubleClickedCmd :
2002-09-30 00:55:47 +00:00
// Print out what was selected
2002-10-01 23:11:19 +00:00
assert ( item > = 0 ) ;
2006-05-05 00:26:03 +00:00
ConfMan . setActiveDomain ( _domains [ item ] ) ;
2002-10-01 23:11:19 +00:00
close ( ) ;
2007-07-17 21:59:44 +00:00
break ;
case kListItemRemovalRequestCmd :
removeGame ( item ) ;
2002-10-01 23:11:19 +00:00
break ;
2002-12-01 12:47:13 +00:00
case kListSelectionChangedCmd :
updateButtons ( ) ;
2002-09-27 23:27:14 +00:00
break ;
case kQuitCmd :
2006-06-11 21:41:04 +00:00
ConfMan . setActiveDomain ( " " ) ;
2004-12-25 22:13:44 +00:00
setResult ( - 1 ) ;
2003-04-30 13:57:57 +00:00
close ( ) ;
2002-09-27 23:27:14 +00:00
break ;
default :
Dialog : : handleCommand ( sender , cmd , data ) ;
}
}
2002-12-01 12:47:13 +00:00
void LauncherDialog : : updateButtons ( ) {
bool enable = ( _list - > getSelected ( ) > = 0 ) ;
if ( enable ! = _startButton - > isEnabled ( ) ) {
_startButton - > setEnabled ( enable ) ;
_startButton - > draw ( ) ;
}
if ( enable ! = _editButton - > isEnabled ( ) ) {
_editButton - > setEnabled ( enable ) ;
_editButton - > draw ( ) ;
}
if ( enable ! = _removeButton - > isEnabled ( ) ) {
_removeButton - > setEnabled ( enable ) ;
_removeButton - > draw ( ) ;
}
2008-09-14 18:19:22 +00:00
if ( enable ! = _loadButton - > isEnabled ( ) ) {
_loadButton - > setEnabled ( enable ) ;
_loadButton - > draw ( ) ;
}
2007-03-17 16:05:16 +00:00
// Update the label of the "Add" button depending on whether shift is pressed or not
int modifiers = g_system - > getEventManager ( ) - > getModifierState ( ) ;
2007-03-17 19:02:05 +00:00
const char * newAddButtonLabel = ( ( modifiers & Common : : KBD_SHIFT ) ! = 0 )
2008-10-29 19:02:45 +00:00
? " Mass Add "
: " Add Game " ;
2007-03-17 16:05:16 +00:00
2009-05-24 15:17:42 +00:00
if ( _addButton - > getLabel ( ) ! = newAddButtonLabel )
2007-03-17 16:05:16 +00:00
_addButton - > setLabel ( newAddButtonLabel ) ;
2002-12-01 12:47:13 +00:00
}
2003-11-10 23:40:48 +00:00
2006-08-04 13:55:53 +00:00
void LauncherDialog : : reflowLayout ( ) {
2006-04-16 20:33:52 +00:00
# ifndef DISABLE_FANCY_THEMES
2008-08-08 18:30:16 +00:00
if ( g_gui . xmlEval ( ) - > getVar ( " Globals.ShowLauncherLogo " ) = = 1 & & g_gui . theme ( ) - > supportsImages ( ) ) {
2008-08-09 18:34:16 +00:00
StaticTextWidget * ver = ( StaticTextWidget * ) findWidget ( " Launcher.Version " ) ;
2006-04-19 01:05:28 +00:00
if ( ver ) {
2008-11-12 14:30:16 +00:00
ver - > setAlign ( ( Graphics : : TextAlign ) g_gui . xmlEval ( ) - > getVar ( " Launcher.Version.Align " , Graphics : : kTextAlignCenter ) ) ;
2006-04-19 01:05:28 +00:00
ver - > setLabel ( gScummVMVersionDate ) ;
}
2006-04-17 18:50:33 +00:00
if ( ! _logo )
2008-08-08 18:30:16 +00:00
_logo = new GraphicsWidget ( this , " Launcher.Logo " ) ;
2006-05-29 14:55:43 +00:00
_logo - > useThemeTransparency ( true ) ;
2008-11-10 11:24:55 +00:00
_logo - > setGfx ( g_gui . theme ( ) - > getImageSurface ( ThemeEngine : : kImageLogo ) ) ;
2006-04-17 18:50:33 +00:00
} else {
2008-08-08 18:30:16 +00:00
StaticTextWidget * ver = ( StaticTextWidget * ) findWidget ( " Launcher.Version " ) ;
2006-04-19 01:05:28 +00:00
if ( ver ) {
2008-11-12 14:30:16 +00:00
ver - > setAlign ( ( Graphics : : TextAlign ) g_gui . xmlEval ( ) - > getVar ( " Launcher.Version.Align " , Graphics : : kTextAlignCenter ) ) ;
2006-04-19 01:05:28 +00:00
ver - > setLabel ( gScummVMFullVersion ) ;
}
if ( _logo ) {
2007-03-16 20:47:41 +00:00
removeWidget ( _logo ) ;
2006-04-19 01:05:28 +00:00
_logo - > setNext ( 0 ) ;
delete _logo ;
_logo = 0 ;
}
2006-04-16 20:33:52 +00:00
}
# endif
2006-04-19 01:05:28 +00:00
_w = g_system - > getOverlayWidth ( ) ;
_h = g_system - > getOverlayHeight ( ) ;
2006-08-04 13:55:53 +00:00
Dialog : : reflowLayout ( ) ;
2006-04-16 20:33:52 +00:00
}
2003-11-10 23:40:48 +00:00
} // End of namespace GUI