Commit Graph
611 Commits
Author SHA1 Message Date
Littleboy 1dec501ac7 BACKENDS: Implement Win32 version of OSystem::displayLogFile interface 2011-06-04 14:27:20 -04:00
Willem Jan Palenstijn 2d87394be9 POSIX: Add TODO/FIXME to displayLogFile 2011-06-04 16:39:39 +02:00
Willem Jan Palenstijn 656c252636 POSIX: Implement displayLogFile in the posix backend
Tested only on Linux, but hopefully this is sufficiently
portable to support the other POSIX platforms.

Using fork/exec instead of the simpler 'system' to avoid quoting issues
and depending on specific shell features to handle a missing xdg-open
gracefully.
2011-06-04 15:12:07 +02:00
Max Horn 6287426db0 MACOSX: Include ApplicationServices header
This should pacify buildbot. Somehow on my system, it does not need it, though.
2011-06-03 18:31:29 +02:00
Max Horn 59646053a3 MACOSX: Fix indention 2011-06-03 18:25:57 +02:00
Max Horn 279a5b4f32 BACKENDS: Add OSystem::displayLogFile interface + OSX implementation 2011-06-03 13:36:04 +02:00
Max Horn 39076ef972 BUILD: Rename UNIX #define to POSIX 2011-05-25 13:23:03 +02:00
Max Horn 6c5f50c246 COMMON: Add exit() to list of forbidden symbols 2011-05-23 19:39:26 +02:00
Max Horn 6f6051a9e1 COMMON: Mark more symbols as forbidden 2011-05-23 19:12:26 +02:00
Pawel Kolodziejski 944e0be209 SAMSUNGTV: update port 2011-05-23 18:11:40 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Joost Peters e28b402295 IRIX: Fix compilation 2011-05-08 01:25:09 +02:00
Johannes Schickel 297834017a WIN32: Embed engine data files and theme files into executable.
This embeds all the engine data files from dists/engine-data into the
executable in case the engines using them are included statically.

Furthermore it includes the theme dist files in the executable.
2011-05-05 20:22:37 +02:00
Max Horn 3d4e9fe674 BACKENDS: Allow various files to use stuff from time.h 2011-05-03 11:27:44 +02:00
Max Horn 59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Paul Gilbert c6fa23a3d1 JANITORIAL: Add in necessary include files to fix compilation in MSVC 2011-04-28 22:32:12 +10:00
Ori Avtalion 9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Eugene Sandulenko ce0cc0ee85 COMMON: Partial fix for #3087922: COMMON/BASE/BACKENDS: Code analysis warnings 2011-04-17 15:25:06 +03:00
Klaus Reimer 91e43bb136 WEBOS: Correct indentation of WEBOS preprocessor check 2011-04-12 11:11:18 +02:00
Klaus Reimer a4e757834e WEBOS: Create webos backend with custom events
Currently only contains test code.
2011-04-12 11:05:35 +02:00
Klaus Reimer 72d206dc73 WEBOS: Add WEBOS define
Using SDL_INIT_VIDEO flag for WebOS because without it the application
won't start.
2011-04-12 11:05:07 +02:00
David-John Willis 0fb15847c6 SDL/POSIX: Update main guard to add OpenPandora.
- Also mention GPH_DEVICE not each backend on it's own.
2011-03-24 21:24:05 +00:00
Johannes Schickel f3ea868cf6 SDL: Prevent graphics manager hotswapping on startup. (This time for real) 2011-02-24 23:04:34 +01:00
dhewg 273a324a71 SDL: Prevent unnecessary gfx manager hotswap 2011-02-24 20:24:58 +01:00
Max Horn 47dbd520bb WIN32: Try to fix compiler error for mingw-w64 buildbot build
svn-id: r55785
2011-02-05 10:34:37 +00:00
Max Horn 73cf5dba99 SDL: Add Mac OS X log file support
svn-id: r54589
2010-11-29 19:54:55 +00:00
Johannes Schickel 39aad6ece7 SDL: Move createLogFile implementions to the OSystem_SDL subclasses.
svn-id: r54581
2010-11-29 18:30:23 +00:00
Max Horn 4bed2b3ff5 SDL: Trying to cleanup the FORBIDDEN_SYMBOL situation
svn-id: r54575
2010-11-29 16:35:29 +00:00
Max Horn f0fdff21f6 SDL: Revert r54554, and add explanatory comment (fix for bug #3121841)
svn-id: r54574
2010-11-29 16:22:04 +00:00
Max Horn df05ed1a46 BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
svn-id: r54573
2010-11-29 16:18:43 +00:00
Max Horn 4e0e406181 SDL: Move #include <SDL.h> into a special wrapper file
svn-id: r54572
2010-11-29 16:16:50 +00:00
Filippos Karapetis 39e5973a41 COMMON: Applied patch #3121969 - "WIN32_LEAN_AND_MEAN in incorrect place"
svn-id: r54567
2010-11-29 07:52:38 +00:00
Max Horn 460a65d2aa SDL: Reduce redundant deletes from OSystem_SDL destructor
svn-id: r54554
2010-11-28 22:05:05 +00:00
Max Horn b634249609 SDL: Compiled POSIX sub-backend only on unix systems
svn-id: r54538
2010-11-28 17:42:47 +00:00
Filippos Karapetis 96f7c2e225 SDL: Added missing #define FORBIDDEN_SYMBOL_ALLOW_ALL for the Win32 SDL backend
svn-id: r54527
2010-11-28 15:47:54 +00:00
Max Horn 8f37f6634c SDL: Merge deinit() into OSystem_SDL destructor and overload fatalError
svn-id: r54526
2010-11-28 15:44:34 +00:00
Johannes Schickel 11b254a938 SDL: Fix compilation on Windows too.
svn-id: r54524
2010-11-28 15:11:27 +00:00
Johannes Schickel 27016b303f SDL: Make SDL backend compile again.
svn-id: r54523
2010-11-28 15:06:36 +00:00
Max Horn 7760077cf5 Merging the gsoc2010-opengl branch
svn-id: r54518
2010-11-28 14:56:31 +00:00
Johannes Schickel 1ad63b431e BACKEND: Switch OSystem::getSystemLanguage return type to Common::String.
This is done as discussed on -devel.

svn-id: r54516
2010-11-28 02:12:33 +00:00
Jordi Vilalta Prat 10476048f8 I18N: Fix language detection in UNIX (not everyone speaks German yet)
svn-id: r54494
2010-11-26 10:40:19 +00:00
Johannes Schickel 03df495563 SDL: Hook up file logger to log on Windows.
For now the log file will be either "%APPDATA%/ScummVM/Logs/scummvm.log" or
"%USERPROFILE%/Application Data/ScummVM/Logs/scummvm.log" to match the
location of the default ScummVM configuration file.

svn-id: r54490
2010-11-26 00:52:04 +00:00
Johannes Schickel 425f284050 SDL: Hook up file logger to log on UNIX-like systems.
As discussed on -devel this always logs to ~/.scummvm/logs/scummvm.log.

svn-id: r54489
2010-11-26 00:51:42 +00:00
Johannes Schickel 189c9bf216 OSYSTEM: Add API to query the system locale.
I also adapted the SDL backend to implement the API.

svn-id: r54479
2010-11-25 18:40:56 +00:00
Johannes Schickel e1030e53a5 BACKENDS: Implement logging API proposed by Max on -devel.
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".

I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).

svn-id: r54339
2010-11-18 19:12:14 +00:00
Max Horn 82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
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-08 22:53:36 +00:00
Max Horn 44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
Martin Kiewitz 27ee12e6a5 SDL/win32: fix lf, thx msvc
svn-id: r53768
2010-10-24 19:04:35 +00:00
Martin Kiewitz c9c9eafbbb SDL/w32: add ability to hide console
feature is currently commented out - waiting till discussion has ended

svn-id: r53767
2010-10-24 18:34:08 +00:00
Fabio Battaglia 74a53df11b DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/*
and move graphics related code to backends/graphics/dinguxsdl/*
Subclass OSystem_POSIX instead of OSystem_SDL

svn-id: r53730
2010-10-23 09:30:26 +00:00