summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-01-13 15:16:10 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-01-13 15:16:10 +0000
commit028e8e9ee25048e9413907b5cae9d04c6a7c6e47 (patch)
tree231da5b1176d00896e07000ea72604958b75e5cb
parent20171c181fb97475b0ec8fd54eb9e0e461229994 (diff)
downloadrockbox-028e8e9ee25048e9413907b5cae9d04c6a7c6e47.tar.gz
rockbox-028e8e9ee25048e9413907b5cae9d04c6a7c6e47.zip
Change the gamedata folder for doom to /.rockbox/doom to go in line with other game plugins. Closes FS#5903. Adjust manual too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11998 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/doom/g_game.c2
-rw-r--r--apps/plugins/doom/rockmacros.h2
-rw-r--r--manual/plugins/doom.tex70
3 files changed, 38 insertions, 36 deletions
diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c
index b5944eae54..cd6ab45ade 100644
--- a/apps/plugins/doom/g_game.c
+++ b/apps/plugins/doom/g_game.c
@@ -2770,7 +2770,7 @@ boolean G_CheckDemoStatus (void)
2770 int endtime = I_GetTime (); 2770 int endtime = I_GetTime ();
2771 // killough -- added fps information and made it work for longer demos: 2771 // killough -- added fps information and made it work for longer demos:
2772 unsigned realtics = endtime-starttime; 2772 unsigned realtics = endtime-starttime;
2773 int fd=open("/games/doom/timedemo.txt",O_WRONLY | O_CREAT); 2773 int fd=open(GAMEBASE "timedemo.txt",O_WRONLY | O_CREAT);
2774 fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second", 2774 fdprintf (fd,"Timed %d gametics in %d realtics = %d frames per second",
2775 (unsigned) gametic, realtics, 2775 (unsigned) gametic, realtics,
2776 (unsigned) gametic * (double) TICRATE / realtics); 2776 (unsigned) gametic * (double) TICRATE / realtics);
diff --git a/apps/plugins/doom/rockmacros.h b/apps/plugins/doom/rockmacros.h
index 7be7c39ea1..901aa5513d 100644
--- a/apps/plugins/doom/rockmacros.h
+++ b/apps/plugins/doom/rockmacros.h
@@ -89,7 +89,7 @@ char *my_strtok( char * s, const char * delim );
89inline void* memcpy(void* dst, const void* src, size_t size); 89inline void* memcpy(void* dst, const void* src, size_t size);
90 90
91#define PACKEDATTR __attribute__((packed)) // Needed for a few things 91#define PACKEDATTR __attribute__((packed)) // Needed for a few things
92#define GAMEBASE "/games/doom/" 92#define GAMEBASE ROCKBOX_DIR "/doom/"
93//#define SIMPLECHECKS 93//#define SIMPLECHECKS
94#define NO_PREDEFINED_LUMPS 94#define NO_PREDEFINED_LUMPS
95#define TABLES_AS_LUMPS // This frees up alot of space in the plugin buffer 95#define TABLES_AS_LUMPS // This frees up alot of space in the plugin buffer
diff --git a/manual/plugins/doom.tex b/manual/plugins/doom.tex
index 14137b28b7..abdcc15547 100644
--- a/manual/plugins/doom.tex
+++ b/manual/plugins/doom.tex
@@ -5,18 +5,19 @@ This is the famous Doom game.
5 5
6\subsubsection{Getting started} 6\subsubsection{Getting started}
7For the game to run you need \fname{.wad} game files located in 7For the game to run you need \fname{.wad} game files located in
8\fname{/games/doom/} on your player. Create the directory and save the 8\fname{/.rockbox/doom/} on your player. Create the directory and save the
9following files there: 9following files there:
10\begin{description} 10\begin{description}
11\item[rockdoom.wad] The Rockbox \fname{.wad}, based on \fname{prboom.wad} 11\item[rockdoom.wad.] The Rockbox \fname{.wad}, based on \fname{prboom.wad}
12from prboom-2.2.6 12from prboom-2.2.6
13\item[Your wad files] Copy all Doom wads you wish to play into that directory. 13\item[Your wad files.] Copy all Doom wads you wish to play into that directory.
14\end{description} 14\end{description}
15The needed files can be found at 15The needed files can be found at
16\wikilink{PluginDoom} 16\wikilink{PluginDoom}
17 17
18To play addon wads create the \fname{addons} directory within doom. 18To play addon wads create the \fname{addons} directory within the doom folder.
19Place wad files in this directory. Currently doom only supports 10 addons 19Place \fname{wad} files in this directory. Currently doom only supports
20a maximum number of 10 addons
20in the directory. 21in the directory.
21 22
22A free alternative for Doom 2 is FreeDoom (\url{http://freedoom.sourceforge.net}). 23A free alternative for Doom 2 is FreeDoom (\url{http://freedoom.sourceforge.net}).
@@ -25,49 +26,50 @@ Doom, by placing it in the \fname{addons} directory.
25 26
26\subsubsection{Menus} 27\subsubsection{Menus}
27\begin{description} 28\begin{description}
28 \item[Rockdoom Menu: ] The Rockdoom menu is shown when Doom is first launched. 29 \item[Rockdoom Menu. ] The Rockdoom menu is shown when Doom is first launched.
29This is the only time it can be accessed (before starting the game). To re-adjust 30This is the only time it can be accessed (before starting the game). To re-adjust
30Rockdoom options, you will need to quit your current game and restart the plugin. 31Rockdoom options, you will need to quit your current game and restart the plugin.
31 \item[Main Menu: ] 32 \item[Main Menu. ]
32 The Doom plugin has a main menu, which is brought up before a game is started. It 33 The Doom plugin has a main menu, which is brought up before a game is started. It
33 has the following entries: 34 has the following entries:
34 35
35 \emph{Game } Select which (official) wad to launch\\ 36 \emph{Game. } Select which (official) wad to launch\\
36 \emph{Addon } Select which unofficial addon wad to launch (From /games/doom/addons directory)\\ 37 \emph{Addon. } Select which unofficial addon wad to launch (From
37 \emph{Demos } Select which demo file to play on game start\\ 38 \fname{/.rockbox/doom/addons} directory)\\
38 \emph{Options } Configure low-level Doom options\\ 39 \emph{Demos. } Select which demo file to play on game start\\
39 \emph{Play Game } Launch the wad/addon/Demo chosen%\\ 40 \emph{Options. } Configure low-level Doom options\\
41 \emph{Play Game. } Launch the wad/addon/Demo chosen%\\
40 42
41 \item[Options Menu: ]This menu has the following options: 43 \item[Options Menu. ]This menu has the following options:
42 44
43 \emph{Sound } Enable or Disable sound in Doom\\ 45 \emph{Sound. } Enable or Disable sound in Doom\\
44 \emph{Set Keys } Change the game key configuration\\ 46 \emph{Set Keys. } Change the game key configuration\\
45 \emph{Time Demo } Run a timed demo, to test game speed on a player (Only runs on Doom Shareware)\\ 47 \emph{Time Demo. } Run a timed demo, to test game speed on a player (Only runs on Doom Shareware)\\
46 \emph{Player Bobbing } Enable or Disable player up/Down movement\\ 48 \emph{Player Bobbing. } Enable or Disable player up/Down movement\\
47 \emph{Translucency } Enable or Disable sprite translucency (Fireballs, Plasma...)\\ 49 \emph{Translucency. } Enable or Disable sprite translucency (Fireballs, Plasma...)\\
48 \emph{Fake Contrast} Enable or Disable modified game lighting\\ 50 \emph{Fake Contrast.} Enable or Disable modified game lighting\\
49 \emph{Always Run} Make the player always run\\ 51 \emph{Always Run.} Make the player always run\\
50 \emph{Headsup Display} Show the player status when in fullscreen\\ 52 \emph{Headsup Display.} Show the player status when in fullscreen\\
51 \emph{Statusbar Always Red} Disable color response statusbar%\\ 53 \emph{Statusbar Always Red.} Disable color response statusbar%\\
52 54
53 \item[InGame Main Menu: ]This menu can only be accessed from within a running game, and is displayed by 55 \item[InGame Main Menu. ]This menu can only be accessed from within a running game, and is displayed by
54 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{pressing \ButtonOff} 56 \opt{IRIVER_H100_PAD,IRIVER_H300_PAD}{pressing \ButtonOff}
55 \opt{IPOD_3G_PAD,IPOD_4G_PAD}{flipping your hold switch a couple of times} 57 \opt{IPOD_3G_PAD,IPOD_4G_PAD}{flipping your hold switch a couple of times}
56 \opt{IAUDIO_X5_PAD,IRIVER_H10_PAD}{pressing \ButtonPower} 58 \opt{IAUDIO_X5_PAD,IRIVER_H10_PAD}{pressing \ButtonPower}
57 59
58 \emph{New Game } Start a new game\\ 60 \emph{New Game. } Start a new game\\
59 \emph{Options } In game options\\ 61 \emph{Options. } In game options\\
60 \emph{Load Game } Load a saved game\\ 62 \emph{Load Game. } Load a saved game\\
61 \emph{Save Game } Save the current game\\ 63 \emph{Save Game. } Save the current game\\
62 \emph{Quit } Quit the game%\\ 64 \emph{Quit. } Quit the game%\\
63 65
64 \item[InGame Options Menu: ]This menu has the folloing options: 66 \item[InGame Options Menu. ]This menu has the folloing options:
65 67
66 \emph{End Game } Ends the current game\\ 68 \emph{End Game. } Ends the current game\\
67 \emph{Messages } Enable or Disable in game messages\\ 69 \emph{Messages. } Enable or Disable in game messages\\
68 \emph{Screen Size } Shrink or Enlarge the displayed portion of the game\\ 70 \emph{Screen Size. } Shrink or Enlarge the displayed portion of the game\\
69 \emph{Gamma } Change the brightness (Gamma) of the game\\ 71 \emph{Gamma. } Change the brightness (Gamma) of the game\\
70 \emph{Sound Volume } Change the sound, music and system volume%\\ 72 \emph{Sound Volume. } Change the sound, music and system volume%\\
71 \note{In game music is not currently supported} 73 \note{In game music is not currently supported}
72 74
73\end{description} 75\end{description}