Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-10-29 | Applied my own patch #1341495, in an attempt to fix alignment issues | Torbjörn Andersson | |
reported by Crilith. To elaborate a bit, the engine no longer accesses resource data through packed structs. Instead it uses memory streams and the READ/WRITE functions. If data is mainly read, not written, I have replaced the old struct with a new one with a read() function to read the whole thing from memory into the struct's variables, and a write() function to dump the struct's variables to memory. In fact, most of these write() functions remain unused. If data is both read and written, I have replaced the struct with a class with individual get/set functions to replace the old variables. This manipulates memory directly. Since I'm fairly sure that these structs are frequently stored as local variables for a script, all script variables (both local and global) are stored as little-endian and accessed through the READ/WRITE functions, rather than being treated as arrays of 32-bit integers. On a positive note, the functions for doing endian conversion of resources and save games have been removed, and some general cleanups have been made to assist in the rewrite. Initial reports indicate that this patch indeed fixes alignment issues, and that I have not - surprisingly - broken the game on big-endian platforms. At least not in any immediately obvious way. And there's still plenty of time to fix regressions before 0.9.0, too. svn-id: r19366 | |||
2005-10-18 | Update FSF address. Eek. Actually that took place on May 1, 2005 | Eugene Sandulenko | |
svn-id: r19142 | |||
2005-05-12 | Whitespace: "(type *)something" instead of "(type *) something", because | Torbjörn Andersson | |
that's how we write it in most other places. svn-id: r18069 | |||
2005-01-17 | Updated copyright header, as discussed on the mailing list. | Torbjörn Andersson | |
svn-id: r16580 | |||
2005-01-01 | Updated copyright year. | Torbjörn Andersson | |
svn-id: r16397 | |||
2004-01-09 | Removed redundant comments. | Torbjörn Andersson | |
svn-id: r12279 | |||
2004-01-06 | It's a new year in BS2 land, too! | Torbjörn Andersson | |
svn-id: r12181 | |||
2003-12-14 | Mostly cleanups, but I believe this also fixes an endian problem in the | Torbjörn Andersson | |
"restart script" opcode. To actually verify this, though, I'd need to find a case where any other script than script 0 at offset 0 is restarted... svn-id: r11638 | |||
2003-10-21 | Moved some more stuff into the Logic class. | Torbjörn Andersson | |
svn-id: r10923 | |||
2003-10-04 | Changed to use #include "bs2/..." and removed the inclusion of standard C | Torbjörn Andersson | |
headers. Most (all?) of the ones we need should probably come from stdafx.h instead. svn-id: r10588 | |||
2003-10-04 | added namespace Sword2 | Max Horn | |
svn-id: r10581 | |||
2003-09-27 | More cleanup, and I've replaced most - not quite all - of BS2's debug | Torbjörn Andersson | |
message functions with our own. We still need to go through them and assign sensible debug levels to them. svn-id: r10422 | |||
2003-09-20 | cleanup | Torbjörn Andersson | |
svn-id: r10333 | |||
2003-09-07 | more endian fixes | Max Horn | |
svn-id: r10058 | |||
2003-07-30 | rename bs2 to sword2 to have the same name as the original engine. | Oliver Kiehl | |
besides this way all our engines start with an "s" ;) svn-id: r9301 | |||
2003-07-28 | fixed const errors | Max Horn | |
svn-id: r9243 | |||
2003-07-28 | rename _DEBUG define to _BS2_DEBUG to stop it conflicting with VC | Jonathan Gray | |
svn-id: r9237 | |||
2003-07-28 | fixed more warnings | Max Horn | |
svn-id: r9219 | |||
2003-07-28 | bs2 | Jonathan Gray | |
svn-id: r9211 |