Commit Graph

255 Commits

Author SHA1 Message Date
Einar Johan Trøan Sømåen
dbebaaf50d WINTERMUTE: Get a fallback font to at least draw something for BFontTT 2012-06-03 16:55:38 +02:00
Einar Johan Trøan Sømåen
c69f3bf8b6 WINTERMUTE: Add detection for the white chamber v1.7 2012-06-03 03:49:56 +02:00
Einar Johan Trøan Sømåen
d79549964c WINTERMUTE: Make the engine atleast register keypresses. 2012-06-03 03:16:57 +02:00
Einar Johan Trøan Sømåen
ca1e62035d WINTERMUTE: Add back Theora support to AdEntity. 2012-06-03 02:52:33 +02:00
Einar Johan Trøan Sømåen
9a3fdd4cc4 WINTERMUTE: Make Theora-playback behave a bit more as expected. 2012-06-03 02:33:10 +02:00
Einar Johan Trøan Sømåen
15796f0eed WINTERMUTE: Add JPEG-support to BSurfaceSDL 2012-06-03 02:32:36 +02:00
Einar Johan Trøan Sømåen
f0a0f5c35c WINTERMUTE: Actually register all DCPs. 2012-06-03 02:32:13 +02:00
Einar Johan Trøan Sømåen
9f66bed4b5 WINTERMUTE: Don't delete the fonts gotten from FontMan, they are const. 2012-06-03 01:16:20 +02:00
Einar Johan Trøan Sømåen
071c5a1d83 WINTERMUTE: Add detection for the J.U.L.I.A.-demo 2012-06-03 01:15:49 +02:00
Einar Johan Trøan Sømåen
af518b7433 WINTERMUTE: Clean up Theora support quite a bit. 2012-06-02 21:36:42 +02:00
Einar Johan Trøan Sømåen
a647ef3afb WINTERMUTE: Add hacky, but working video playback 2012-06-02 19:41:18 +02:00
Einar Johan Trøan Sømåen
cafdcd1c8a WINTERMUTE: Add in more of the missing Video-pieces, also, copy over the TheoraPlayer from SWORD25 2012-06-02 18:46:17 +02:00
Einar Johan Trøan Sømåen
74ff79e90b WINTERMUTE: Implement IsTransparentAtLite, to fix the BitmapFont-drawing. 2012-06-02 14:28:58 +02:00
Einar Johan Trøan Sømåen
e7a802700c WINTERMUTE: Add color-keying for BSurfaceSDL BMPs 2012-06-02 13:48:26 +02:00
Einar Johan Trøan Sømåen
2db2566055 WINTERMUTE: Convert 8bpp images to 32 bpp 2012-06-02 13:10:07 +02:00
Einar Johan Trøan Sømåen
5fd8d1360f WINTERMUTE: Mark BSaveThumbFile for future refactoring. 2012-06-02 13:10:05 +02:00
Einar Johan Trøan Sømåen
4a10bc8b14 WINTERMUTE: Revamp the file-system to deliver Common::-streams directly 2012-06-02 13:09:58 +02:00
Einar Johan Trøan Sømåen
afe5567421 WINTERMUTE: Start refactoring the file-files in Base. 2012-06-02 13:09:54 +02:00
Einar Johan Trøan Sømåen
5fde51cd23 WINTERMUTE: Protect CBFile's private members. 2012-06-02 13:09:50 +02:00
Einar Johan Trøan Sømåen
84601ca89e WINTERMUTE: Move the file-related classes into Base/file 2012-06-02 13:09:47 +02:00
Einar Johan Trøan Sømåen
b02b3ebb21 WINTERMUTE: Add folders for utils and video 2012-06-02 13:09:41 +02:00
Einar Johan Trøan Sømåen
221490a93d WINTERMUTE: Add subfolders for math, UI, tinyxml and Sys 2012-06-02 13:09:34 +02:00
Einar Johan Trøan Sømåen
e6729615ea WINTERMUTE: Move the B and Part files into Base/ 2012-06-02 13:09:24 +02:00
Einar Johan Trøan Sømåen
2317b3538f WINTERMUTE: Move all the Ad files to Ad/ 2012-06-02 13:09:20 +02:00
Einar Johan Trøan Sømåen
b1e4f58fed WINTERMUTE: Use const Common::String& for the file-accessors. 2012-06-02 13:07:45 +02:00
Einar Johan Trøan Sømåen
b94c379263 WINTERMUTE: Let blitting of non 32bpp surfaces fail with a warning instead of an error for now. 2012-06-02 13:07:42 +02:00
Einar Johan Trøan Sømåen
ed88f83d54 WINTERMUTE: Add detection for Rosemary 2012-06-02 13:07:40 +02:00
Einar Johan Trøan Sømåen
96a8874a92 WINTERMUTE: Use the resolution asked for by the engines. 2012-06-02 13:07:37 +02:00
Einar Johan Trøan Sømåen
79f86732b8 WINTERMUTE: Fix Windows build under MSVC2010 2012-06-02 13:07:29 +02:00
Einar Johan Trøan Sømåen
2f02bec21f WINTERMUTE: Add in, and stub the VideoPlayer-files 2012-06-02 13:07:22 +02:00
Einar Johan Trøan Sømåen
0cee403067 WINTERMUTE: Fix a few warnings. 2012-06-02 13:07:18 +02:00
Einar Johan Trøan Sømåen
bfcffbea60 WINTERMUTE: Fix Linux-build 2012-06-02 13:07:15 +02:00
Einar Johan Trøan Sømåen
03284a3f88 WINTERMUTE: Add TGA-support to BSurfaceSDL 2012-06-02 13:07:08 +02:00
Einar Johan Trøan Sømåen
c05059ea8a WINTERMUTE: Use AdvancedDetector, and add another game. 2012-06-02 13:05:54 +02:00
Einar Johan Trøan Sømåen
ebbf92578d WINTERMUTE: Re-enable scaling. 2012-06-02 13:05:52 +02:00
Einar Johan Trøan Sømåen
ae48c3f7e1 WINTERMUTE: Add transparentSurface internally for now, to allow alpha-blended blits. 2012-06-02 13:05:42 +02:00
Einar Johan Trøan Sømåen
a53fa953a4 WINTERMUTE: Don't use unsigned datatypes in rects. 2012-06-02 13:02:51 +02:00
Einar Johan Trøan Sømåen
753781f972 WINTERMUTE: Break the binary interface, to fix another truckload of warnings. 2012-06-02 13:02:47 +02:00
Einar Johan Trøan Sømåen
16f1a45844 WINTERMUTE: Fix more warnings, mostly missing switch-cases. 2012-06-02 13:02:42 +02:00
Einar Johan Trøan Sømåen
e13929b7f1 WINTERMUTE: Fix another bunch of warnings
Mostly SAFE_DELETE-macro removal
2012-06-02 13:02:35 +02:00
Einar Johan Trøan Sømåen
c97705cedf WINTERMUTE: Fix a few more warnings 2012-06-02 13:02:27 +02:00
Einar Johan Trøan Sømåen
e57364959f WINTERMUTE: Add protected to ScValue 2012-06-02 13:02:22 +02:00
Einar Johan Trøan Sømåen
7c8785d846 WINTERMUTE: Require 32bpp for now. 2012-06-02 13:02:19 +02:00
Einar Johan Trøan Sømåen
11aadc5690 WINTERMUTE: Solve some const-char related warnings. 2012-06-02 13:02:10 +02:00
Einar Johan Trøan Sømåen
25f08ba402 WINTERMUTE: Remove a few defines from wintypes.h 2012-06-02 13:02:01 +02:00
Einar Johan Trøan Sømåen
c9058b5448 WINTERMUTE: Remove a few of the __WIN32__ macros. 2012-06-02 13:01:53 +02:00
Einar Johan Trøan Sømåen
7616fabf67 WINTERMUTE: Make Sprites draw again. 2012-06-02 13:01:50 +02:00
Einar Johan Trøan Sømåen
987fd67ce0 WINTERMUTE: Handle a few more forbidden symbols. 2012-06-02 13:01:45 +02:00
Einar Johan Trøan Sømåen
0d9ec2a0a9 WINTERMUTE: Remove a few warnings. 2012-06-02 13:01:36 +02:00
Einar Johan Trøan Sømåen
ff1b42259a WINTERMUTE: Unify license-headers, and header-guards. 2012-06-02 13:01:27 +02:00
Einar Johan Trøan Sømåen
ba6a2ac66e WINTERMUTE: Run Astyle on code-files to reformat. 2012-06-02 13:01:15 +02:00
Einar Johan Trøan Sømåen
2ee58d2dc3 WINTERMUTE: Add const to even more char* (Possibly the last ones) 2012-06-02 12:59:27 +02:00
Einar Johan Trøan Sømåen
ded3c2a4b4 WINTERMUTE: Add const to even more char-pointers. 2012-06-02 12:59:18 +02:00
Einar Johan Trøan Sømåen
61945782d6 WINTERMUTE: Add const to almost all char *Filename instances.
Although done semi-automatically, almost all of these accesses don't need write-access
to the string, this simplifies debugging a bit, and opens the possibility of adding in
Common::String as a replacement down the line.

This DOES change quite a bit of code, and has regressions wrt drawing, probably some
super-classes don't fully match their sub-classes wrt virtual functions any more.
2012-06-02 12:59:09 +02:00
Einar Johan Trøan Sømåen
7bd6151127 WINTERMUTE: Add empty virtual destructors to the Debugger-classes, to silence a few warnings. 2012-06-02 12:59:02 +02:00
Einar Johan Trøan Sømåen
076cd93d21 WINTERMUTE: Preliminary fontwork. 2012-06-02 12:58:53 +02:00
Einar Johan Trøan Sømåen
6faf92bfda WINTERMUTE: Fix a few swtich-related warnings in PlatformSDL. 2012-06-02 12:56:35 +02:00
Einar Johan Trøan Sømåen
26226afc5a WINTERMUTE: Fix a few warnings in BRenderSDL.h 2012-06-02 12:56:30 +02:00
Einar Johan Trøan Sømåen
6acc470bc6 WINTERMUTE: Disable fonts, and remove FreeType2. 2012-06-02 12:56:05 +02:00
Einar Johan Trøan Sømåen
7339ca988f WINTERMUTE: Fix StringUtil::EndsWith 2012-06-02 12:42:11 +02:00
Einar Johan Trøan Sømåen
ffffd68f19 WINTERMUTE: Make CBSoundBuffer initialize it's SoundHandle. 2012-06-02 12:42:11 +02:00
Einar Johan Trøan Sømåen
ab98efe595 WINTERMUTE: Make ScEngine use Common::String to avoid some double-frees. 2012-06-02 12:42:11 +02:00
Einar Johan Trøan Sømåen
d4fd90e064 WINTERMUTE: Fix font-related crash. 2012-06-02 12:42:11 +02:00
Einar Johan Trøan Sømåen
858989a685 WINTERMUTE: Comment out Mac OS X specific code. 2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
d2d43da4f0 WINTERMUTE: Cleanup the includes in Platform SDL
This should remove the last SDL-include in-engine
2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
4cf1d67140 WINTERMUTE: Remove a few SDL-includes. 2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
2e12f9fe4d WINTERMUTE: Initial conversion of events from SDL2->OSystem 2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
f07690cb96 WINTERMUTE: Make the messiest warnings warn just once. 2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
b6f512f392 WINTERMUTE: Some refactoring in BSoundMgr. 2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
23dd928733 WINTERMUTE: Add in basic sound-support.
Right now, all that is supported is triggering OGG-files,
the choice of codec is hardcoded, and stopping/pausing etc isn't added in.
2012-06-02 12:42:10 +02:00
Einar Johan Trøan Sømåen
0b8ac2f3b4 WINTERMUTE: Add a simple alpha-hack for rendering.
This is not pretty, but atleast it shows the entire first screen for 'Dirty Split' drawing fine.
2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
9355850d07 WINTERMUTE: Make the engine atleast draw something. 2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
21033f631f WINTERMUTE: Cleanup the debug-warnings a bit. 2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
e31f23d75d WINTERMUTE: Make the mainloop run after initialization. 2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
620b45e517 WINTERMUTE: Start work on porting BRenderSDL away from SDL2
In particular this stubs away a few troublesome SDL-calls, that stopped us
from getting the engine to start right now.
2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
66602bcd9c WINTERMUTE: Silence an error when trying to set window-title
Currently we don't set the window-title anyhow, so why trigger an error about
the text-encoding?
2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
ecc03331db WINTERMUTE: Correct assumptions about PathUtil::GetExtension
This puts it in line with Common::lastPathComponent, i.e. not including the '.'
2012-06-02 12:42:09 +02:00
Einar Johan Trøan Sømåen
2f7fe9f443 WINTERMUTE: Make BPkgFiles use SubStreams for non-compressed files too.
Since we already do the assumption that we don't need to do the same package-seeks
for compressed files, this assumption needs to be carried for uncompressed files too.
2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
466596eae4 WINTERMUTE: Make BSurfaceSDL init its filename again. 2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
59dffd5e86 WINTERMUTE: Correct the default-resolution to 640x480 2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
cb06258124 WINTERMUTE: Avoid touching SDL_Quit in-engine 2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
3a3304e324 WINTERMUTE: Make BPkgFile use zlib-streams and substreams.
Note that there is still much that could be simplified here by using
substreams more extensively, instead of the specific WinterMute-solutions
that are currently in place for dcp-files.
2012-06-02 12:42:08 +02:00
Eugene Sandulenko
28c78b956d WINTERMUTE: Mass rename m_FooBar -> _fooBar 2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
84fd9d0dac WINTERMUTE: Add in the Particle-stuff, now everything links, and the AdGame-constructor starts. 2012-06-02 12:42:08 +02:00
Einar Johan Trøan Sømåen
a5d992d513 WINTERMUTE: Add the missing TinyXML-parts 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
f4b95a0d73 WINTERMUTE: Remove STL from ScValue 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
5b01f6a284 WINTERMUTE: Add BKeyboardState to build 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
46458bfc00 WINTERMUTE: Add BDiskFile to build 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
fd3e4b7a92 WINTERMUTE: Stub and add BRenderSDL to the build 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
f32d924017 WINTERMUTE: Add BSurfaceSDL to build 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
403839cd70 WINTERMUTE: Add crc to the build 2012-06-02 12:42:07 +02:00
Einar Johan Trøan Sømåen
85adc3a3ba WINTERMUTE: Add ScEngine, ScValue, SXStore, SXString, SXFile and PlatformSDL to build 2012-06-02 12:41:15 +02:00
Einar Johan Trøan Sømåen
a7c12a7bd1 WINTERMUTE: Add simple detection for WinterMute 2012-06-02 12:12:37 +02:00
Einar Johan Trøan Sømåen
afee4aeacc WINTERMUTE: One big and ugly commit that resolves most of the forbidden-symbols.
The StringUtils aren't complete or tested, and the SysClasses are a hack,
and there are a few "FORBIDDEN_SYMBOL_EXCEPTIONS".

Expect this commit to need a bunch of cleanup going forwards.
2012-06-02 12:12:36 +02:00
Einar Johan Trøan Sømåen
f33e2d1824 WINTERMUTE: Silence a few SAFE_DELETE-related warnings. 2012-06-02 12:12:34 +02:00
Einar Johan Trøan Sømåen
4b2b236abd WINTERMUTE: Add most of the missing classes to the build. 2012-06-02 12:12:33 +02:00
Einar Johan Trøan Sømåen
d5b4474c36 WINTERMUTE: Make BGame almost compilable 2012-06-02 12:12:32 +02:00
Einar Johan Trøan Sømåen
ff64c8d107 WINTERMUTE: Add most of the Ad-Classes to module.mk 2012-06-02 12:12:31 +02:00
Einar Johan Trøan Sømåen
2b586a768f WINTERMUTE: Add the AD-classfiles 2012-06-02 12:12:29 +02:00
Einar Johan Trøan Sømåen
5a2cf6f36f WINTERMUTE: Add the UI-classes. 2012-06-02 12:12:27 +02:00
Einar Johan Trøan Sømåen
c609c778cc WINTERMUTE: Add most of the B-classes to module.mk 2012-06-02 12:12:24 +02:00
Einar Johan Trøan Sømåen
b602b51160 WINTERMUTE: Add the files for the rest of the B-classes. 2012-06-02 12:12:22 +02:00
Einar Johan Trøan Sømåen
72a44cdc7b WINTERMUTE: Add the script-classes 2012-06-02 12:12:20 +02:00
Einar Johan Trøan Sømåen
997c5df430 WINTERMUTE: Add BBase and BParser, and make them compile. 2012-06-02 12:12:18 +02:00
Einar Johan Trøan Sømåen
ec5f5c739e WINTERMUTE: Add in the engine-shell from the ScummVM-wiki 2012-06-02 12:12:17 +02:00