aboutsummaryrefslogtreecommitdiff
path: root/base
AgeCommit message (Collapse)Author
2010-12-23PLUGINS: switched plugin manager to inheritance rather than #definesYotam Barnoy
The reason for this was that I found issues where the wrong functions were called in EngineManager for single plugin operation. Rather than inserting more messy #defines, I preferred to change the PluginManager to use virtual functions, which also makes EngineManager simpler. svn-id: r55024
2010-12-23PLUGINS: don't fully load each plugins at startup for single plugin methodYotam Barnoy
The reason to load each plugin was to figure out if it's a sound or engine plugin. Since all our plugin files are currently engines, there's no reason to load every file. If we get dynamic sound plugins, it'd be a good idea to make a quick and easy way to know which kind of plugin it is (e.g. a prefix or suffix in the filename). svn-id: r55021
2010-12-04BASE: Only clear debug channels after destructing the engine object in runGame.Johannes Schickel
This should fix missing debugC output when the engine object uses debugC etc. in its destructor (or functions called from there). In theory all the engines should do that themselves, but to avoid any issues because of them not doing it we still do it here to be safe. svn-id: r54757
2010-11-30I18N: Don't build TranslationManager when translation is disabled.Jordi Vilalta Prat
svn-id: r54684
2010-11-28MAIN: Fix --gfx-mode regressionTorbjörn Andersson
We cannot check for supported graphics mode until after the backend has been initialised, or there won't be a graphics manager to ask. svn-id: r54534
2010-11-19BUILD: Revert r53427.Johannes Schickel
create_project will now use a different approach than recreating base/internal_version.h. This is also because recreating this file might result in accidental commits of the modified file and thus "screw up" the version string on different systems. svn-id: r54383
2010-11-18MAIN: initialized more singletons early to prevent fragmentation.Yotam Barnoy
svn-id: r54315
2010-11-18MAIN: added early call to getAudioCdManager to prevent late allocationYotam Barnoy
This reduces fragmentation. svn-id: r54310
2010-11-16GUI: Rename gui/GuiManager.* to gui/gui-manager.*Max Horn
svn-id: r54265
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-15CONFIGMAN: added defragmentation methods for one-plugin-at-a-timeYotam Barnoy
One-plugin-at-a-time can have fragmentation caused by the ConfigManager if a game changes any configuration value. By reallocating and copying over the ConfigManager, we avoid this problem. svn-id: r54243
2010-11-15PLUGINS: moved plugin-at-a-time unload to be after deleting the engine.Yotam Barnoy
Calling the Engine's destructor after unloading the plugin caused crashes. svn-id: r54242
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-11-05PLUGINS: improved one-at-a-time plugin codeYotam Barnoy
I reduced memory fragmentation using 2 principles: Plugins should be loaded for as little time as possible, and long lasting memory allocations should be allocated before plugins are loaded. There might still be a little fragmentation left. Note that command line settings that require plugins to be loaded don't work yet, but they didn't work (properly) before either. svn-id: r54097
2010-11-05COMMON/GUI/SCI: Changes to the EGA dithering checkboxFilippos Karapetis
- Changed the new dithering checkbox to be more generic (i.e. relevant for all engines that may support such a feature in the future) - Changed the checkbox to be unchecked by default. As discussed on -devel, game enhancements in ScummVM should be off by default, and opt-in - Changed the option from "sci_undither" to "disable_dithering" - Changed theme version style to X.Y.Z and bumped it to 0.8.2 svn-id: r54090
2010-11-04SCI: Set undither to on by default again, like it was. Filippos Karapetis
From our current stance, this is a game enhancement, and should be on by default, like the rest of the game enhancements (AGI mouse, save/load replacement etc) svn-id: r54070
2010-11-04SCI/SCUMMVM: Added an option to enable the dithering removal algorithm (so ↵Filippos Karapetis
called "undithering") in the graphics options tab. The algorithm is now disabled by default, after popular demand. In retrospect, we really shouldn't have made it default, in order to preserve the authenticity of the graphics in early SCI EGA games, and allow the user to opt in and enable the option if needed. Unfortunately, the lack of an easy way to modify the option made it hard to do so. svn-id: r54066
2010-11-03Merge from gsoc2010-pluginsYotam Barnoy
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work. svn-id: r54051
2010-11-01BASE: Destroy TranslationManager when exiting; destroy GuiManager before ↵Max Horn
ConfigManager svn-id: r54024
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-31Updated with latest from trunkYotam Barnoy
svn-id: r53976
2010-10-26BASE: Remove oudated comment, and redundant warningMax Horn
svn-id: r53867
2010-10-24SDL/WIN32: Disable currently unused config entries, added with r53767.Johannes Schickel
This code should be enabled, when we decide to enable m_kiewitz' code to disable the console window. Also we should add the command to the --help output etc. svn-id: r53769
2010-10-24SDL/w32: add ability to hide consoleMartin Kiewitz
feature is currently commented out - waiting till discussion has ended svn-id: r53767
2010-10-24ALL: Fix various typos (patch #3093266)Max Horn
svn-id: r53762
2010-10-18CONFIGURE: Plug in Last Express engineEugene Sandulenko
svn-id: r53580
2010-10-13BASE: Added "Theora" to the features string, when enabled.Torbjörn Andersson
svn-id: r53444
2010-10-13BASE: Add SVN_REVISION placehold to internal_version.h.inMax Horn
Our tools/update-version.pl script always keeps this empty. But it will make integration of the create_project patch smoother. svn-id: r53427
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
2010-10-13SOUND: Add info about TiMidity support in about dialog.Johannes Schickel
svn-id: r53396
2010-10-13SOUND: Allow TiMidity support to be disabled via configure.Johannes Schickel
svn-id: r53395
2010-10-12COMMON: Let --list-targets output all targets in an alphabetical list again.Johannes Schickel
svn-id: r53183
2010-10-12SWORD25: Added detection of libtheora, png an dplugged in the engineEugene Sandulenko
svn-id: r53169
2010-10-08TOON: Merged Toon engine to ScummVM trunkEugene Sandulenko
svn-id: r53087
2010-09-25GUI: Partial fix to bug #3075649 Fonts not found with buit-in themeThierry Crozat
When the locale font are not found when loading the theme, it now fallbacks to default language (i.e. English) and default font. For this to work I had to move the TranslationManager initialization before the Theme is loaded. Therefore it is now initialized when the GuiManager is constructed. svn-id: r52896
2010-09-23COMMON : Initialize translation after system has been initialized (to be ↵Lars Persson
able to access system specific search paths for translations.dat) svn-id: r52865
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-17SOUND: Properly add CMS as plugin.Johannes Schickel
svn-id: r52779
2010-09-17RELEASE: This is 1.3.0svnEugene Sandulenko
svn-id: r52773
2010-09-15PLUGINS: Additional plugin check for the ELF loader.Andre Heider
The ELF loader does not have access to the symbols of the main executable, it just relocates symbols to it via fixed offsets. We need to make sure that loaded plugins are from the same link process to prevent crashes. An embedded build date is used for that. svn-id: r52730
2010-09-15PLUGINS: Don't expect every plugin to load.Andre Heider
svn-id: r52729
2010-09-15PLUGINS: Cleanup.Andre Heider
- Unify ELF loader handling in configure - Rename ELF_LOADER_TARGET to USE_ELF_LOADER svn-id: r52728
2010-09-12TESTBED: Merge gsoc2010-testbed branchEugene Sandulenko
svn-id: r52681
2010-09-06PLUGINS: Fix warning when not using the ELF loader.Andre Heider
svn-id: r52613
2010-09-06PLUGINS: Use the C++ ABI to call dtors when unloading a plugin.Andre Heider
Avoid linking all plugins against libstdc++ to free up some memory (about ~40kb on Wii per plugin). Enable it on GameCube, Wii, DS and PSP (PS2 doesn't have __cxa_atexit support in its libc). svn-id: r52607
2010-09-05MERGE: Merge trunk to branch.Andre Heider
svn-id: r52564
2010-08-19Fix warning & code formattingMax Horn
svn-id: r52202
2010-08-17HUGO: Adding engine to the main treeEugene Sandulenko
svn-id: r52137
2010-08-16added a todo to plugins.cpp and a comment to elf32.h; Collapsed plugin ↵Tony Puccinelli
providers for a few ports into their .h files, removing the corresponding .cpp files svn-id: r52112
2010-08-16Merge trunk, from r51777 to r52105Alejandro Marzini
svn-id: r52108