Commit graph

42 commits

Author SHA1 Message Date
Sven Hesse
c3aafec1fb Renaming parse.h and parse.cpp to expression.h and expression.cpp
svn-id: r41773
2009-06-22 16:30:35 +00:00
Sven Hesse
487a9bd14b Renaming "Parse" to "Expression"
svn-id: r41772
2009-06-22 16:30:06 +00:00
Sven Hesse
962fc19b57 Encapsulating script file access
svn-id: r41753
2009-06-22 10:13:37 +00:00
Sven Hesse
1dafcabb43 Encapsulated access to _resultStr
svn-id: r41751
2009-06-22 10:11:53 +00:00
Sven Hesse
f6717373b5 Encapsulated access to Parse::_resultInt
svn-id: r41750
2009-06-22 10:11:25 +00:00
Sven Hesse
4562fe248a Removing the useless _vm->_parse->
svn-id: r41645
2009-06-18 21:08:51 +00:00
Sven Hesse
a2afe557ef Encapsulating the Stack and StackFrame a bit
svn-id: r41590
2009-06-16 20:15:19 +00:00
Sven Hesse
1996a8011c Encapsulating stack adjustments
svn-id: r41589
2009-06-16 20:14:56 +00:00
Sven Hesse
434be5c65a Renamed _inter_resStr to _resultStr
svn-id: r41575
2009-06-15 23:11:29 +00:00
Sven Hesse
1b67620d99 Renaming _inter_resVal to _resultInt
svn-id: r41574
2009-06-15 23:11:08 +00:00
Sven Hesse
67a9ff7dd3 Moving _inter_resVal and _inter_resStr from Global to Parse
svn-id: r41573
2009-06-15 23:10:51 +00:00
Sven Hesse
58fbca49f5 Splitting up parseExpr a bit
svn-id: r41572
2009-06-15 23:10:27 +00:00
Sven Hesse
2219533441 Remove some now superfluous comments
svn-id: r41571
2009-06-15 23:10:10 +00:00
Sven Hesse
5c58b9a3a4 Using cmpHelper for OP_NEQ too, since the original does a normal strcmp there as well. No idea where the stricmp came from
svn-id: r41570
2009-06-15 23:09:57 +00:00
Sven Hesse
75b44536b1 Fixing the signness indicated by the OP_ enums
svn-id: r41566
2009-06-15 23:08:44 +00:00
Sven Hesse
e8a89cffb6 Renamed various variables to better reflect their meaning
svn-id: r41564
2009-06-15 23:08:09 +00:00
Sven Hesse
8b5233c5ff Renamed varPos to varBase and split off getVarBase() from parseVarIndex() and parseExpr()
svn-id: r41563
2009-06-15 23:07:55 +00:00
Sven Hesse
0906068bff Merging parseValExpr and parseExpr
svn-id: r41562
2009-06-15 23:07:38 +00:00
Sven Hesse
77f114ffcb Dropping the v1 parser functions in favour of the extended v2 ones
svn-id: r41317
2009-06-07 01:45:09 +00:00
Sven Hesse
896df6daf3 - A new save system for the GobEngine, one that is not fundamentally broken and is versioned. Unfortunately, this invalidates most save games created on big-endian machines, since endian-issues was a main problem with the old system
- Removed the now superfluous variables sizes

svn-id: r41056
2009-05-31 02:15:43 +00:00
Max Horn
f177c7142c Fixed some silly warnings
svn-id: r40165
2009-04-27 14:40:14 +00:00
Sven Hesse
dc8e67900a Fixing the parser-related FIXMEs. 17 and 18 are int16 and int8, respectively
svn-id: r39893
2009-04-07 16:53:38 +00:00
Max Horn
1d1307de01 GOB: Some more cleanup
svn-id: r39890
2009-04-07 13:29:13 +00:00
Max Horn
3f22e4b401 GOB: Gave tons of opcode explicit names. As a result, found potential bugs in parse_v2.cpp (related to OP_LOAD_VAR_UINT8 and OP_LOAD_VAR_UINT16, see FIXME comments in parse.h)
svn-id: r39889
2009-04-07 13:21:20 +00:00
Max Horn
37bfe22a54 GOB: Some more code cleanup. My respect for the developers of the original GOB engine is at an all-time low :)
svn-id: r39888
2009-04-07 13:20:29 +00:00
Max Horn
7444665152 GOB: Gave some numerical constants a name. This codebase is a bit of a mess ;) (tons of duplicate code, unnamed constants, etc.)
svn-id: r39882
2009-04-07 10:41:23 +00:00
Sven Hesse
f785068dc3 Some more Urban Runner changes. Still no cylindrical smoking device, though
svn-id: r35371
2008-12-15 00:27:05 +00:00
Sven Hesse
8da68b2964 Script variables are now always stored in the game version's native endianess.
This should make Woodruff playable on big-endian systems.

svn-id: r32352
2008-05-28 21:15:11 +00:00
Sven Hesse
220d6ce82f Restructured sound code
svn-id: r31937
2008-05-08 00:47:23 +00:00
Paul Gilbert
6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Sven Hesse
8d7d61f1f6 Some more small fixes. Gob3 is completable now :)
svn-id: r26556
2007-04-21 20:13:15 +00:00
Sven Hesse
ec5a9eee31 - Minor cleanup
- Added Inter_v3 (for new opcode o3_getTotTextItemPart)
- Some fixes to let Gob3 start with the first screen

svn-id: r26383
2007-04-05 13:37:20 +00:00
Sven Hesse
53119f2c5d "char *" -> "byte *" where appropriate
svn-id: r26369
2007-04-02 11:05:09 +00:00
Sven Hesse
2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00
Willem Jan Palenstijn
35d242b74b make printExpr, skipExpr accept both gob1 and gob2 expressions
svn-id: r22568
2006-05-21 21:18:23 +00:00
Sven Hesse
8a855b4251 - Stubbed goblinFunc(), it's completeley different; now it at least
doesn't crash anymore
- Reduced valgrind's complains about unitialized memory

svn-id: r22263
2006-05-01 19:11:57 +00:00
Sven Hesse
61a0266a92 More stubs; GOB2 goes in-game for a second, then segfaults in the
Global-constructor; valgrind shows invalid reads in parseValExpr()
and parseExpr() while accessing _inter_variables and _inter_execPtr

svn-id: r22262
2006-05-01 16:04:53 +00:00
Max Horn
8cdee5a931 Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
svn-id: r21500
2006-03-29 15:59:37 +00:00
Max Horn
d9a9fac937 Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
svn-id: r21141
2006-03-08 11:37:25 +00:00
Max Horn
26ee630756 Moved engines to the new engines/ directory
svn-id: r20582
2006-02-11 22:45:04 +00:00
Renamed from gob/parse.cpp (Browse further)