Added ogg and addon support for Symbian.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3096 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2008-10-18 17:35:09 +00:00
parent e90a064766
commit a8d9aeb24e
5 changed files with 56 additions and 19 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ config.alwaysgl = no
config.sfxvol = 20
config.iconicscan = no
config.pulseshield = no
config.3domusic = no
config.3domusic = yes
config.smoothmelee = no
config.positionalsfx = no
config.resheight = 240
@@ -20,7 +20,7 @@ config.subtitles = yes
config.3domovies = yes
config.scanlines = no
config.showfps = no
config.speechvol = 0
config.speechvol = 20
config.remixmusic = no
config.smoothscroll = no
config.audioquality = low
+3 -1
View File
@@ -33,11 +33,13 @@ LIBRARY eikcore.lib
LIBRARY ws32.lib
LIBRARY bafl.lib
LIBRARY euser.lib
LIBRARY efsrv.lib
LIBRARY sdl.lib
LIBRARY libc.lib
LIBRARY libm.lib
LIBRARY libz.lib
LIBRARY libpthread.lib
LIBRARY libpthread.lib
STATICLIBRARY uqm.lib
STATICLIBRARY SDL_image.lib
STATICLIBRARY tremor.lib
+29 -3
View File
@@ -6,6 +6,7 @@
#include <aknnotewrappers.h>
#include <eikstart.h>
#include <badesca.h>
#include <bautils.h>
#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL_keysym.h>
@@ -84,6 +85,7 @@ private:
void DoExit(TInt aErr);
void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination);
void HandleResourceChangeL(TInt aType);
void AddCmdLineParamsL(CDesC8Array& aArgs);
private:
CExitWait* iWait;
CSDLWin* iSDLWin;
@@ -163,8 +165,10 @@ void CSdlAppUi::ConstructL()
iSdl->DisableKeyBlocking(*this);
iWait = new (ELeave) CExitWait(*this);
CDesC8ArrayFlat* args = new (ELeave)CDesC8ArrayFlat(10);
iSdl->CallMainL(iWait->iStatus, *args, CSDL::ENoParamFlags, 81920);
CDesC8ArrayFlat* args = new (ELeave)CDesC8ArrayFlat(10);
AddCmdLineParamsL(*args);
iSdl->CallMainL(iWait->iStatus, *args, CSDL::ENoFlags, 81920);
delete args;
iWait->Start();
@@ -217,7 +221,29 @@ void CSdlAppUi::HandleResourceChangeL(TInt aType)
}
}
}
void CSdlAppUi::AddCmdLineParamsL(CDesC8Array& aArgs)
{
_LIT8(KAddonParam, "--addondir=?:\\uqm-addons");
_LIT16(KTestFolder, "?:\\uqm-addons");
RFs fs;
fs.Connect();
for (TInt8 c = 'e'; c < 'z'; ++c)
{
TBuf16<32> buf(KTestFolder);
buf[0] = c;
if (BaflUtils::FolderExists(fs, buf))
{
TBuf8<32> arg(KAddonParam);
arg[11] = c;
aArgs.AppendL(arg);
break;
}
}
fs.Close();
}
CSdlAppUi::~CSdlAppUi()
{
if(iWait != NULL)