Skip to content

Commit

Permalink
Merge remote-tracking branch 'sync/master' into prince-malik
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Zbróg committed Dec 2, 2013
2 parents 0f013bf + ccc92b2 commit f19f61a
Show file tree
Hide file tree
Showing 36 changed files with 2,429 additions and 1,905 deletions.
1 change: 1 addition & 0 deletions backends/platform/symbian/S60v3/BLD.INF.in
Expand Up @@ -8,5 +8,6 @@ PRJ_MMPFILES

//STOP_AUTO_PROJECTS//
gnumakefile icons.mk
gnumakefile ..\help\build_help.mk
.\ScummVM_A0000658_S60v3.mmp
.\ScummVM_S60v3.mmp
3 changes: 3 additions & 0 deletions backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg
Expand Up @@ -57,6 +57,9 @@
"..\..\..\..\README"-"!:\resource\apps\scummvm\README"
"..\..\..\..\NEWS"-"!:\resource\apps\scummvm\NEWS"

; Scummvm help
"..\help\ScummVM.hlp"-"!:\resource\help\ScummVM.hlp"

; Common datafiles needed for some games
"..\..\..\..\dists\engine-data\drascula.dat"-"c:\data\scummvm\drascula.dat"
"..\..\..\..\dists\engine-data\hugo.dat"-"c:\data\scummvm\hugo.dat"
Expand Down
Expand Up @@ -65,6 +65,9 @@
"..\..\..\..\README"-"!:\resource\apps\scummvm\README"
"..\..\..\..\NEWS"-"!:\resource\apps\scummvm\NEWS"

; Scummvm help
"..\help\ScummVM.hlp"-"!:\resource\help\ScummVM.hlp"

; Common datafiles needed for some games
"..\..\..\..\dists\engine-data\drascula.dat"-"c:\data\scummvm\drascula.dat"
"..\..\..\..\dists\engine-data\hugo.dat"-"c:\data\scummvm\hugo.dat"
Expand Down Expand Up @@ -105,6 +108,7 @@
"..\..\..\..\gui\themes\fonts\helvBO12.bdf"-"c:\data\scummvm\helvBO12.bdf"
"..\..\..\..\gui\themes\fonts\helvR12-iso-8859-1.bdf"-"c:\data\scummvm\helvR12-iso-8859-1.bdf"
"..\..\..\..\gui\themes\fonts\helvR12.bdf"-"c:\data\scummvm\helvR12.bdf"
;"..\..\..\..\gui\themes\"-"c:\data\scummvm\"

; Config/log files: 'empty' will automagically be removed on uninstall
""-"c:\data\scummvm\scummvm.ini",FILENULL
Expand Down
18 changes: 18 additions & 0 deletions backends/platform/symbian/help/Custom.xml
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE cshcust SYSTEM "/cshlpcmp/dtd/CSHcust.dtd">
<?xml:stylesheet href="/cshlpcmp/xsl/cshcust.xsl" title="CS-Help customization" type="text/xsl"?>
<cshcust>
<parastyle name="body" font="sansserif" size="10"/>
<parastyle name="tip" font="sansserif" size="10" left="20"></parastyle>
<parastyle name="note" font="sansserif" size="10" left="20"></parastyle>
<parastyle name="important" font="sansserif" size="10" left="20"></parastyle>
<body style="body"/>
<titlestyle fontstyle="sansserif" size="10"/>
<listbullet1style bulletchar="8226"/>
<listbullet2style bulletchar="8226"/>
<lists leftindent="20"/>
</cshcust>




266 changes: 266 additions & 0 deletions backends/platform/symbian/help/ScummVM.rtf

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions backends/platform/symbian/help/ScummVM.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet href="\epoc32\tools\cshlpcmp\xsl\CSHproj.xsl" title="CS Help project" type="text/xsl"?>
<!DOCTYPE cshproj SYSTEM "\epoc32\tools\cshlpcmp\dtd\CSHproj.dtd">

<cshproj>
<helpfileUID>0x100039ce</helpfileUID> <!-- From help file -->
<directories>
<input></input>
<output></output>
<working></working>
</directories>
<files>
<source>
<file>ScummVM.rtf</file>
</source>
<destination>ScummVM.hlp</destination>
<customization>custom.xml</customization>
</files>
</cshproj>
29 changes: 29 additions & 0 deletions backends/platform/symbian/help/build_help.mk
@@ -0,0 +1,29 @@
# ============================================================================
# Name : help.mk
# Part of : ScummVM
#
# Description: This is file for creating .hlp file
#
# ============================================================================


makmake :
cshlpcmp ScummVM.xml

ifeq (WINS,$(findstring WINS, $(PLATFORM)))
copy ScummVM.hlp $(EPOCROOT)epoc32\$(PLATFORM)\c\resource\help
endif

clean :
del ScummVM.hlp
del ScummVM.hlp.hrh

bld :
cshlpcmp ScummVM.xml

ifeq (WINS,$(findstring WINS, $(PLATFORM)))
copy ScummVM.hlp $(EPOCROOT)epoc32\$(PLATFORM)\c\resource\help
endif

freeze lib cleanlib final resource savespace releasables :

1 change: 1 addition & 0 deletions devtools/create_project/create_project.cpp
Expand Up @@ -43,6 +43,7 @@
#include <stack>
#include <algorithm>
#include <iomanip>
#include <iterator>

#include <cstring>
#include <cstdlib>
Expand Down
3 changes: 3 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -187,10 +187,12 @@ namespace Fullpipe {
#define QU_EGTR_MD2_SHOW 4698
#define QU_EGTR_MD1_SHOW 4697
#define QU_EGTR_SLIMSHOW 4883
#define QU_HND_TAKEBOTTLE 1443
#define QU_IN2_DO 5144
#define QU_INTR_FINISH 5138
#define QU_INTR_GETUPMAN 5136
#define QU_INTR_STARTINTRO 5133
#define QU_KOZAW_WALK 505
#define QU_PNK_CLICK 550
#define QU_SC3_ENTERLIFT 2779
#define QU_SC3_EXITLIFT 2808
Expand Down Expand Up @@ -258,6 +260,7 @@ namespace Fullpipe {
#define ST_EGTR_MID1 2863
#define ST_EGTR_MID2 2869
#define ST_EGTR_SLIM 336
#define ST_HND_EMPTY 603
#define ST_IN1MAN_SLEEP 5112
#define ST_KZW_EMPTY 498
#define ST_LBN_0N 2832
Expand Down
1 change: 1 addition & 0 deletions engines/fullpipe/fullpipe.h
Expand Up @@ -142,6 +142,7 @@ class FullpipeEngine : public ::Engine {
void toggleMute();
void playSound(int id, int flag);
void startSceneTrack();
void stopSoundStream2();

int _sfxVolume;

Expand Down
14 changes: 13 additions & 1 deletion engines/fullpipe/gfx.cpp
Expand Up @@ -464,6 +464,8 @@ Picture::~Picture() {
}

void Picture::freePicture() {
debug(5, "Picture::freePicture(): file: %s", _memfilename);

if (_bitmap) {
if (testFlags() && !_field_54) {
freeData();
Expand Down Expand Up @@ -519,7 +521,7 @@ bool Picture::load(MfcArchive &file) {

getData();

debug(5, "Picture::load: <%s>", _memfilename);
debug(5, "Picture::load: loaded <%s>", _memfilename);

return true;
}
Expand All @@ -539,6 +541,10 @@ void Picture::setAOIDs() {
}

void Picture::init() {
debug(5, "Picture::init(), %s", _memfilename);

MemoryObject::getData();

_bitmap = new Bitmap();

getDibInfo();
Expand Down Expand Up @@ -567,6 +573,12 @@ void Picture::getDibInfo() {
warning("Uneven data size: 0x%x", _dataSize);
}

if (!_data) {
warning("Picture::getDibInfo: data is empty <%s>", _memfilename);

MemoryObject::load();
}

Common::MemoryReadStream *s = new Common::MemoryReadStream(_data + off - 32, 32);

_bitmap->load(s);
Expand Down
4 changes: 3 additions & 1 deletion engines/fullpipe/motion.cpp
Expand Up @@ -765,7 +765,7 @@ MessageQueue *MovGraph2::buildMovInfo1MessageQueue(MovInfo1 *movInfo) {

MessageQueue *mq2 = genMovement(&movinfo);

if (mq2) {
if (!mq2) {
delete mq;
return 0;
}
Expand Down Expand Up @@ -979,6 +979,8 @@ MessageQueue *MovGraph2::doWalkTo(StaticANIObject *obj, int xpos, int ypos, int
if (minPath < 0.0 || ((linkInfoSource.node != linkInfoDest.node || !linkInfoSource.node) && !tempLinkList.size()))
return 0;

memset(&movInfo1, 0, sizeof(movInfo1));

movInfo1.subIndex = idxsub;
movInfo1.pt1.x = obj->_ox;
movInfo1.pt1.y = obj->_oy;
Expand Down
10 changes: 7 additions & 3 deletions engines/fullpipe/scenes.cpp
Expand Up @@ -76,10 +76,13 @@ Vars::Vars() {
scene04_sceneClickX = 0;
scene04_sceneClickY = 0;

scene04_dudePosX = 0;
scene04_dudePosY = 0;

scene04_var01 = 0;
scene04_var02 = 0;
scene04_var04 = 0;
scene04_var05 = 0;
scene04_walkingKozyawka = 0;
scene04_var06 = 0;
scene04_var07 = 0;
scene04_var08 = 0;
Expand All @@ -90,12 +93,13 @@ Vars::Vars() {
scene04_var13 = 0;
scene04_var14 = 0;
scene04_var15 = 0;
scene04_var16 = 0;
scene04_var17 = 0;
scene04_speakerVariant = 0;
scene04_speakerPhase = 0;
scene04_var18 = 0;
scene04_var19 = 0;
scene04_var20 = 0;
scene04_var24 = 0;
scene04_bottleY = 0;

selector = 0;
}
Expand Down
13 changes: 7 additions & 6 deletions engines/fullpipe/scenes.h
Expand Up @@ -89,9 +89,9 @@ class Vars {
Common::Point scene04_jumpingKozyawki[20];
Common::Point scene04_jumpRotateKozyawki[20];

Common::Array<StaticANIObject *> scene04_kozyawkiObjList;
Common::Array<GameObject *> scene04_bottleObjList;
Common::Array<StaticANIObject *> scene04_kozyawkiAni;
Common::List<StaticANIObject *> scene04_kozyawkiObjList;
Common::List<GameObject *> scene04_bottleObjList;
Common::List<StaticANIObject *> scene04_kozyawkiAni;

int scene04_ladder;
bool scene04_coinPut;
Expand All @@ -105,7 +105,7 @@ class Vars {
int scene04_var01;
int scene04_var02;
int scene04_var04;
StaticANIObject *scene04_var05;
StaticANIObject *scene04_walkingKozyawka;
int scene04_var06;
int scene04_var07;
int scene04_var08;
Expand All @@ -116,12 +116,13 @@ class Vars {
int scene04_var13;
int scene04_var14;
int scene04_var15;
int scene04_var16;
int scene04_var17;
int scene04_speakerVariant;
int scene04_speakerPhase;
int scene04_var18;
int scene04_var19;
int scene04_var20;
StaticANIObject *scene04_var24;
int scene04_bottleY;

PictureObject *selector;
};
Expand Down

0 comments on commit f19f61a

Please sign in to comment.