Commit graph

50 commits

Author SHA1 Message Date
Strangerke
e88d09d2ec LAB: Fix delete in previous commit 2015-12-23 21:35:33 +01:00
Strangerke
df05be466e LAB: Fix readString when encrypted strings are stored with a wrong size and multiple \0 2015-12-23 21:35:33 +01:00
Strangerke
b53735ba06 LAB: Constify some parameters 2015-12-23 21:35:32 +01:00
Strangerke
af8f87d55d LAB: Fix compilation for non-MSVC compilers 2015-12-23 21:35:31 +01:00
Strangerke
ae9c2fea51 LAB: Replace char* by Common::String in several functions 2015-12-23 21:35:31 +01:00
Strangerke
a41f9076c5 LAB: Fix malloc pointed by eriktorbjorn 2015-12-23 21:35:31 +01:00
Strangerke
7f5826cfcb LAB: Fix check of ending animation, some renaming 2015-12-23 21:35:30 +01:00
Filippos Karapetis
2a80c8066c LAB: Plug all the remaining resource-related memory leaks 2015-12-23 21:35:29 +01:00
Filippos Karapetis
3e8eaa2c35 LAB: Use Common::String for strings, removing a ton of memory leaks
Also, add a method to properly free room views
2015-12-23 21:35:27 +01:00
Filippos Karapetis
c5528a631d LAB: Handle some differences of the Amiga version
The Amiga version is still not working, as the CONTROL and INV files
are missing, and the format of the font files is different
2015-12-23 21:34:09 +01:00
Strangerke
5ed11d721c LAB: Verify the appropriate use of parenthesis in if statements 2015-12-23 21:34:06 +01:00
Strangerke
83126e84ee LAB: Make the use of nullptr consistent through the engine 2015-12-23 21:34:06 +01:00
Strangerke
52d0243eff LAB: Fix the coding style of a some if/else statements 2015-12-23 21:34:05 +01:00
Eugene Sandulenko
167d9c48a3 LAB: Reduced scope of a few more variables 2015-12-23 21:34:05 +01:00
Filippos Karapetis
1524e20ef1 LAB: Simplify the room doors array 2015-12-23 21:34:03 +01:00
Strangerke
67b3960968 LAB: Remove some useless use of g_lab 2015-12-23 21:33:59 +01:00
Strangerke
199fa254f9 LAB: Rename CloseDataPtr pointers, some refactoring 2015-12-23 21:33:59 +01:00
Eugene Sandulenko
e5f753749f LAB: Reduced dependency on processroom.h. Yay! 2015-12-23 21:33:58 +01:00
Eugene Sandulenko
66f2935a22 LAB: Reduced header dependency: dispman.h, eventman.h 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
9a9b752c0e LAB: More header dependency redux 2015-12-23 21:33:57 +01:00
Eugene Sandulenko
d8e01fe23a LAB: Reduce header dependency from music.h 2015-12-23 21:33:56 +01:00
Eugene Sandulenko
eccb852749 LAB: Removed unnecessary includes 2015-12-23 21:33:56 +01:00
Filippos Karapetis
0e886461d0 LAB: Replace some uses of malloc() with new 2015-12-23 21:33:53 +01:00
Filippos Karapetis
87201cfed2 LAB: Rename and clean up some of the scene transition code 2015-12-23 21:33:53 +01:00
Strangerke
5636181b78 LAB: Move text functions to DisplayMan, some renaming 2015-12-23 21:33:52 +01:00
Eugene Sandulenko
d264621832 LAB: Fix compilation 2015-12-23 21:33:52 +01:00
Strangerke
2611b62d5e LAB: Rename parse types 2015-12-23 21:33:52 +01:00
Filippos Karapetis
62c4acc6b3 LAB: Change the gadget lists to use Common::List 2015-12-23 21:33:52 +01:00
Strangerke
803dbcee90 LAB: Move _rooms to LabEngine, some renaming 2015-12-23 21:33:52 +01:00
Strangerke
438e7a24f5 LAB: Get rid of some global variables 2015-12-23 21:33:51 +01:00
Filippos Karapetis
3ac02c1196 LAB: Simplify file handling code 2015-12-23 21:33:50 +01:00
Filippos Karapetis
9ba30835a2 LAB: Refactor the remaining functions in labfile.cpp 2015-12-23 21:33:50 +01:00
Filippos Karapetis
b7faa0bccf LAB: Fix bug in getText() 2015-12-23 21:33:50 +01:00
Eugene Sandulenko
c320e6d0ae LAB: Move inventory to LabEngine class 2015-12-23 21:33:49 +01:00
Filippos Karapetis
359eda3b97 LAB: openDataFile can also be used without checking for a file header 2015-12-23 21:33:49 +01:00
Filippos Karapetis
f76f0d957a LAB: Merge room views into an array 2015-12-23 21:33:48 +01:00
Eugene Sandulenko
88ede5d2d5 LAB: Rename Image class members 2015-12-23 21:33:47 +01:00
Filippos Karapetis
0fbf62f7f0 LAB: Plug several font-related memory leaks. Some cleanup 2015-12-23 21:33:45 +01:00
Filippos Karapetis
24684fe321 LAB: Move getText to the Resource class
Also, make getFont() error out when it can't find a font, and get rid
of BigMsgFont
2015-12-23 21:33:45 +01:00
Strangerke
d0c6c73036 LAB: Rename _music, delete it in engine destructor 2015-12-23 21:33:44 +01:00
Strangerke
05f54b7fe0 LAB: Make _music a member of LabEngine instead of a global 2015-12-23 21:33:44 +01:00
Strangerke
771e558d90 LAB: Move the global variable g_resource to the main engine class 2015-12-23 21:33:44 +01:00
Strangerke
18fc6fd102 LAB: Add some feedback when a file isn't found 2015-12-23 21:33:43 +01:00
Strangerke
8d70f33efe LAB: Rename RoomData members 2015-12-23 21:33:43 +01:00
Filippos Karapetis
12f4a71c73 LAB: Simplify getViewData, get rid of ViewDataPtr and ActionPtr 2015-12-23 21:33:40 +01:00
Filippos Karapetis
93b2e413fd LAB: Change the scene rule list to use a Common::List 2015-12-23 21:33:40 +01:00
Filippos Karapetis
b033b7e539 LAB: Simplify readInitialConditions() 2015-12-23 21:33:40 +01:00
Filippos Karapetis
72f7fbe82b LAB: Bugfixes to the Resource class 2015-12-23 21:33:39 +01:00
Filippos Karapetis
9cd640a6ef LAB: Bugfixes to the Resource class 2015-12-23 21:33:32 +01:00
Filippos Karapetis
c67852d940 LAB: Initial implementation of the Resource class
This will eventually replace all the other resource loading routines
2015-12-15 00:05:02 +01:00