Commit Graph

73 Commits

Author SHA1 Message Date
Eugene Sandulenko
f4024d7d14 SWORD25: Fix initialization.
svn-id: r53245
2010-10-12 22:46:35 +00:00
Eugene Sandulenko
fbdbc089e0 SWORD25: Fix package manager. Now scripts run.
svn-id: r53244
2010-10-12 22:46:13 +00:00
Eugene Sandulenko
992c504968 SWORD25: Further fixes for package manager
svn-id: r53243
2010-10-12 22:45:53 +00:00
Eugene Sandulenko
06fc35ffe8 SWORD25: Make Lua package registering more robust.
svn-id: r53242
2010-10-12 22:45:32 +00:00
Eugene Sandulenko
4b1b3e5034 SWORD25: Better detection entry.
svn-id: r53241
2010-10-12 22:45:14 +00:00
Eugene Sandulenko
3f69477b44 SWORD25: Portability fixes. Now compiles and runs under Linux.
svn-id: r53240
2010-10-12 22:44:55 +00:00
Eugene Sandulenko
8977f88834 SWORD25: started fixing pakage manager
svn-id: r53239
2010-10-12 22:44:29 +00:00
Eugene Sandulenko
c97aee132a SWORD25: Fix log output.
svn-id: r53238
2010-10-12 22:44:11 +00:00
Eugene Sandulenko
3a8e1622af SWORD25: Fix conversion bugs in BS_LuaBindhelper::_CreateTable()
svn-id: r53237
2010-10-12 22:43:55 +00:00
Eugene Sandulenko
72130c284d SWORD25: Fix couple more warnings
svn-id: r53236
2010-10-12 22:43:36 +00:00
Eugene Sandulenko
43959cc6bd SWORD25: Turn on debugging by default
svn-id: r53235
2010-10-12 22:43:05 +00:00
Eugene Sandulenko
031a2fc88e SWORD25: Final linking fixes. Now it links!
svn-id: r53234
2010-10-12 22:42:44 +00:00
Eugene Sandulenko
5cf67ce36f SWORD25: Stubbed FMODExSound class
svn-id: r53233
2010-10-12 22:42:22 +00:00
Eugene Sandulenko
9be75f0acc SWORD25: Added missing file
svn-id: r53232
2010-10-12 22:42:01 +00:00
Eugene Sandulenko
2be2f8331b SWORD25: Get rid of glsprites library
svn-id: r53231
2010-10-12 22:41:44 +00:00
Eugene Sandulenko
fa224de16f SWORD25: Temporarily added tinyxml code
To speedup linking, added the code. It has to be replaced with our
XML parser.

svn-id: r53230
2010-10-12 22:41:04 +00:00
Eugene Sandulenko
23eace8f7d SWORD25: Next step of graphics code conversion.
Now it does not depend on glsprite library and may even show something

svn-id: r53229
2010-10-12 22:40:20 +00:00
Eugene Sandulenko
f010c4e2ad SWORD25: Fix linking
svn-id: r53228
2010-10-12 22:39:41 +00:00
Eugene Sandulenko
fd40021a72 SWORD25: Started rewriting gfx subsystem
svn-id: r53227
2010-10-12 22:39:23 +00:00
Eugene Sandulenko
d50dcb80ad SWORD25: Linking fixes.
svn-id: r53226
2010-10-12 22:38:49 +00:00
Eugene Sandulenko
ad5b74c9de SWORD25: Clean compile!
Under MinGW, with OpenGL and tinyxml.

svn-id: r53225
2010-10-12 22:38:23 +00:00
Eugene Sandulenko
ab85540a1b SWORD25: More compilation fixes
Now almost everything compiles fine. Several files were tricked
and there are references to tinyxml.h and of course fmod and agg.

OpenGL gfx renderer removed from the project, we need to create
our own from the scratch.

svn-id: r53224
2010-10-12 22:37:13 +00:00
Eugene Sandulenko
7257ee345b SWORD25: More compilation fixes
svn-id: r53223
2010-10-12 22:36:30 +00:00
Eugene Sandulenko
47904bc7b2 SWORD25: Mass-astyle.
svn-id: r53222
2010-10-12 22:35:55 +00:00
Eugene Sandulenko
ca17def625 SWORD25: Fix callbackregistry.h compilation
svn-id: r53221
2010-10-12 22:31:38 +00:00
Paul Gilbert
a5819c1e0a SWORD25: Converted remainder of package/ folder
svn-id: r53220
2010-10-12 22:31:18 +00:00
Eugene Sandulenko
a17ec87b7d SWORD25: Number of compilation and warning fixes
svn-id: r53219
2010-10-12 22:30:57 +00:00
Eugene Sandulenko
6dcf9f0ee5 SWORD25: std::string -> Common::String in gfx/
svn-id: r53218
2010-10-12 22:29:37 +00:00
Eugene Sandulenko
c1b5e5acb8 SWORD25: Fix warnings and compilation
svn-id: r53217
2010-10-12 22:28:54 +00:00
Paul Gilbert
87553862d9 SWORD25: Converted remainder of Kernel/ folder
svn-id: r53216
2010-10-12 22:28:21 +00:00
Eugene Sandulenko
bf53914c2a SWORD25: Fix compilation and several warnings
svn-id: r53215
2010-10-12 22:27:32 +00:00
Eugene Sandulenko
de0fe1db49 SWORD25: Mass-putting of all files in gfx/ into Sword25 namespace
svn-id: r53214
2010-10-12 22:27:03 +00:00
Eugene Sandulenko
eb30ebde2a SWORD25: Finish preliminary implementation of Theora decoder
svn-id: r53213
2010-10-12 22:25:18 +00:00
Paul Gilbert
6b755174bd SWORD25: Fixed some potentially uninitialised variable warnings
svn-id: r53212
2010-10-12 22:24:58 +00:00
Paul Gilbert
ccba0891fd SWORD25: Converted further files from old hashmap.h to Common::HashMap
This commit includes a class pointer hash function added in objectregistry.h that should be double-checked to see if it's correct.

svn-id: r53211
2010-10-12 22:24:37 +00:00
Paul Gilbert
7bc8cd284a SWORD25: Fixed string comparisons against pointers rather than contents
svn-id: r53210
2010-10-12 22:24:03 +00:00
Paul Gilbert
6984d24d06 SWORD25: Removed redundant kernel/hashmap.h
This was only used by the callbackregistery file, which is being converted to use the Common::HashMap class

svn-id: r53209
2010-10-12 22:23:43 +00:00
Paul Gilbert
49ea23c532 SWORD25: Fix for void * conversion errors
It turns out that strict C++ doesn't allow function pointers to be converted to void pointers and vice versa. Since there are two callback function pointer types - one with a KEY_COMMANDS enum parameter, and the other with an unsigned char type, I changed all void * occurances to a function pointer type with an 'int' parameter, and changed all implementation methods to take in an int parameter.

svn-id: r53208
2010-10-12 22:23:24 +00:00
Eugene Sandulenko
1e3b3af5c0 SWORD25: Start of plugging audio to Theora decoder
svn-id: r53207
2010-10-12 22:22:56 +00:00
Eugene Sandulenko
9b3e26e7a2 SWORD25: Start for VideoDecoder-compatible Theora player.
svn-id: r53206
2010-10-12 22:22:33 +00:00
Paul Gilbert
8533538c83 SWORD25: Mostly converted input/inputengine_script.cpp
I have the same problem with this file as inputengine.cpp.. I'm getting errors converting between 'void *' and CommandCallback function pointers.

svn-id: r53205
2010-10-12 22:22:03 +00:00
Paul Gilbert
f0b1aa92c2 SWORD25: Mostly converted callbackregistry.cpp
There is still one reference to 'It->second' that I haven't changed to 'It->value'.. if I do it, I start getting errors in ScummVM's hashmap.h, which I'm not sure how to resolve

svn-id: r53204
2010-10-12 22:21:43 +00:00
Paul Gilbert
86bef1508c SWORD25: Converted the input engine to use the ScummVM event manager
svn-id: r53203
2010-10-12 22:21:24 +00:00
Paul Gilbert
fab86ba222 SWORD25: Converted Savegame Load/Save code
In addition to converting the loading/saving of savefiles to use the SaveFileManager interface, also converted the date/time code to use the ScummVM TimeDate structure.

svn-id: r53202
2010-10-12 22:20:41 +00:00
Paul Gilbert
b9044a6a27 SWORD25: Changing service registration to use replacement ScummVM Package Manager
svn-id: r53201
2010-10-12 22:20:11 +00:00
Paul Gilbert
56d82aade1 SWORD25: Converted inputengine.cpp
svn-id: r53200
2010-10-12 22:19:03 +00:00
Paul Gilbert
2006e564a1 SWORD25: Moved the Lua library into it's own namespace
Previously with some of the files I was leaving the #include references to the library inside the global namespace. However, since the engine itself is now inside a namespace, I had to do a lot of changes, such as lua_State to ::lua_State. This way is cleaner, and I just need to add a 'using namespace Lua' where needed.

svn-id: r53198
2010-10-12 22:18:35 +00:00
Paul Gilbert
53a9d2d0a1 SWORD25: Converted the math folder files
svn-id: r53197
2010-10-12 22:17:11 +00:00
Paul Gilbert
2d8e94e4ff SWORD25: Converted Lua interface classes
svn-id: r53195
2010-10-12 22:16:21 +00:00
Paul Gilbert
ea29e41b86 SWORD25: Reimplemented package manager for ScummVM using Common::Archive
svn-id: r53194
2010-10-12 22:15:42 +00:00