Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
081d2441
Commit
081d2441
authored
Mar 12, 2010
by
anotherguest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for Symbian main. Play at least ending scene since this looks nice.
parent
9a9d034d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
main.cpp
src/main.cpp
+15
-13
No files found.
src/main.cpp
View file @
081d2441
...
...
@@ -53,6 +53,9 @@ extern int volume;
extern
int
volume_direction
;
#endif
#ifdef __SYMBIAN32__
extern
char
KOpenJazzPath
[
256
];
#endif
int
loadMain
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -77,6 +80,7 @@ int loadMain (int argc, char *argv[]) {
#else
firstPath
=
new
Path
(
firstPath
,
createString
(
"c:
\\
data
\\
openjazz
\\
"
));
#endif
firstPath
=
new
Path
(
firstPath
,
createString
(
KOpenJazzPath
));
#endif
...
...
@@ -662,10 +666,10 @@ int loop (int type) {
int
main
(
int
argc
,
char
*
argv
[])
{
/*
Scene *scene;
*/
Scene
*
scene
=
NULL
;
int
scene_result
=
E_NONE
;
// Initialise SDL
if
(
SDL_Init
(
SDL_INIT_VIDEO
|
SDL_INIT_AUDIO
|
SDL_INIT_JOYSTICK
|
...
...
@@ -704,11 +708,11 @@ int main(int argc, char *argv[]) {
}
if (scene->play() != E_QUIT) {
delete scene;
*/
scene_result = scene->play();
delete scene;
scene = NULL;*/
if
(
scene_result
!=
E_QUIT
)
{
// Load the menu
try
{
...
...
@@ -728,7 +732,7 @@ int main(int argc, char *argv[]) {
// Show the ending cutscene
/*
try {
try
{
scene
=
new
Scene
(
F_END_0SC
);
...
...
@@ -745,15 +749,13 @@ int main(int argc, char *argv[]) {
scene
->
play
();
delete
scene
;
*/
}
delete
menu
;
/*
} else delete scene;
*/
}
freeMain
();
SDL_Quit
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment