Commit Graph

52289 Commits

Author SHA1 Message Date
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