Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
d314a977
Commit
d314a977
authored
3 months ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Consistency
parent
f2a4e762
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2614
Use deh_strlcpy instead of strncpy or strlcpy in SOC parser
Pipeline
#6800
passed
3 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/doomstat.h
+12
-12
12 additions, 12 deletions
src/doomstat.h
src/m_menu.h
+6
-6
6 additions, 6 deletions
src/m_menu.h
with
18 additions
and
18 deletions
src/doomstat.h
+
12
−
12
View file @
d314a977
...
...
@@ -209,19 +209,19 @@ typedef struct
UINT8
picmode
;
// sequence mode after displaying last pic, 0 = persist, 1 = loop, 2 = destroy
UINT8
pictoloop
;
// if picmode == loop, which pic to loop to?
UINT8
pictostart
;
// initial pic number to show
char
picname
[
MAX_PROMPT_PICS
][
9
];
char
picname
[
MAX_PROMPT_PICS
][
8
+
1
];
UINT8
pichires
[
MAX_PROMPT_PICS
];
UINT16
xcoord
[
MAX_PROMPT_PICS
];
// gfx
UINT16
ycoord
[
MAX_PROMPT_PICS
];
// gfx
UINT16
picduration
[
MAX_PROMPT_PICS
];
char
musswitch
[
7
];
char
musswitch
[
6
+
1
];
UINT16
musswitchflags
;
UINT8
musicloop
;
char
tag
[
3
3
];
// page tag
char
name
[
3
4
];
// narrator name, extra char for color
char
iconname
[
9
];
// narrator icon lump
char
tag
[
3
2
+
1
];
// page tag
char
name
[
3
2
+
2
];
// narrator name, extra char for color
char
iconname
[
8
+
1
];
// narrator icon lump
boolean
rightside
;
// narrator side, false = left, true = right
boolean
iconflip
;
// narrator flip icon horizontally
UINT8
hidehud
;
// hide hud, 0 = show all, 1 = hide depending on prompt position (top/bottom), 2 = hide all
...
...
@@ -233,7 +233,7 @@ typedef struct
sfxenum_t
textsfx
;
// sfx_ id for printing text
UINT8
nextprompt
;
// next prompt to jump to, one-based. 0 = current prompt
UINT8
nextpage
;
// next page to jump to, one-based. 0 = next page within prompt->numpages
char
nexttag
[
3
3
];
// next tag to jump to. If set, this overrides nextprompt and nextpage.
char
nexttag
[
3
2
+
1
];
// next tag to jump to. If set, this overrides nextprompt and nextpage.
INT32
timetonext
;
// time in tics to jump to next page automatically. 0 = don't jump automatically
char
*
text
;
}
textpage_t
;
...
...
@@ -287,8 +287,8 @@ typedef struct
// (This is not ifdeffed so the map header structure can stay identical, just in case.)
typedef
struct
{
char
option
[
3
2
];
// 31 usable characters
char
value
[
25
6
];
// 255 usable characters. If this seriously isn't enough then wtf.
char
option
[
3
1
+
1
];
// 31 usable characters
char
value
[
25
5
+
1
];
// 255 usable characters. If this seriously isn't enough then wtf.
}
customoption_t
;
/** Map header information.
...
...
@@ -303,7 +303,7 @@ typedef struct
INT16
nextlevel
;
///< Map number of next level, or 1100-1102 to end.
INT16
marathonnext
;
///< See nextlevel, but for Marathon mode. Necessary to support hub worlds ala SUGOI.
char
keywords
[
32
+
1
];
///< Keywords separated by space to search for. 32 characters.
char
musname
[
7
];
///< Music track to play. "" for no music.
char
musname
[
6
+
1
];
///< Music track to play. "" for no music.
UINT16
mustrack
;
///< Subsong to play. Only really relevant for music modules and specific formats supported by GME. 0 to ignore.
UINT32
muspos
;
///< Music position to jump to.
char
forcecharacter
[
16
+
1
];
///< (SKINNAMESIZE+1) Skin to switch to or "" to disable.
...
...
@@ -330,7 +330,7 @@ typedef struct
UINT16
levelflags
;
///< LF_flags: merged booleans into one UINT16 for space, see below
UINT8
menuflags
;
///< LF2_flags: options that affect record attack / nights mode menus
char
selectheading
[
2
2
];
///< Level select heading. Allows for controllable grouping.
char
selectheading
[
2
1
+
1
];
///< Level select heading. Allows for controllable grouping.
UINT16
startrings
;
///< Number of rings players start with.
INT32
sstimer
;
///< Timer for special stages.
UINT32
ssspheres
;
///< Sphere requirement in special stages.
...
...
@@ -352,9 +352,9 @@ typedef struct
// Music stuff.
UINT32
musinterfadeout
;
///< Fade out level music on intermission screen in milliseconds
char
musintername
[
7
];
///< Intermission screen music.
char
musintername
[
6
+
1
];
///< Intermission screen music.
char
muspostbossname
[
7
];
///< Post-bossdeath music.
char
muspostbossname
[
6
+
1
];
///< Post-bossdeath music.
UINT16
muspostbosstrack
;
///< Post-bossdeath track.
UINT32
muspostbosspos
;
///< Post-bossdeath position
UINT32
muspostbossfadein
;
///< Post-bossdeath fade-in milliseconds.
...
...
This diff is collapsed.
Click to expand it.
src/m_menu.h
+
6
−
6
View file @
d314a977
...
...
@@ -143,7 +143,7 @@ typedef enum
typedef
struct
{
char
bgname
[
9
];
// name for background gfx lump; lays over titlemap if this is set
char
bgname
[
8
+
1
];
// name for background gfx lump; lays over titlemap if this is set
SINT8
fadestrength
;
// darken background when displaying this menu, strength 0-31 or -1 for undefined
INT32
bgcolor
;
// fill color, overrides bg name. -1 means follow bg name rules.
INT32
titlescrollxspeed
;
// background gfx scroll per menu; inherits global setting
...
...
@@ -153,13 +153,13 @@ typedef struct
SINT8
hidetitlepics
;
// hide title gfx per menu; -1 means undefined, inherits global setting
ttmode_enum
ttmode
;
// title wing animation mode; default TTMODE_OLD
UINT8
ttscale
;
// scale of title wing gfx (FRACUNIT / ttscale); -1 means undefined, inherits global setting
char
ttname
[
9
];
// lump name of title wing gfx. If name length is <= 6, engine will attempt to load numbered frames (TTNAMExx)
char
ttname
[
8
+
1
];
// lump name of title wing gfx. If name length is <= 6, engine will attempt to load numbered frames (TTNAMExx)
INT16
ttx
;
// X position of title wing
INT16
tty
;
// Y position of title wing
INT16
ttloop
;
// # frame to loop; -1 means dont loop
UINT16
tttics
;
// # of tics per frame
char
musname
[
7
];
///< Music track to play. "" for no music.
char
musname
[
6
+
1
];
///< Music track to play. "" for no music.
UINT16
mustrack
;
///< Subsong to play. Only really relevant for music modules and specific formats supported by GME. 0 to ignore.
boolean
muslooping
;
///< Loop the music
boolean
musstop
;
///< Don't play any music
...
...
@@ -370,8 +370,8 @@ extern menu_t OP_JoystickSetDef;
typedef
struct
{
boolean
used
;
char
notes
[
441
];
char
picname
[
9
];
char
notes
[
44
0
+
1
];
char
picname
[
8
+
1
];
char
skinname
[
SKINNAMESIZE
*
2
+
2
];
// skin&skin\0
patch_t
*
charpic
;
UINT8
prev
;
...
...
@@ -379,7 +379,7 @@ typedef struct
char
displayname
[
SKINNAMESIZE
+
1
];
INT16
skinnum
[
2
];
UINT16
oppositecolor
;
char
nametag
[
9
];
char
nametag
[
8
+
1
];
patch_t
*
namepic
;
UINT16
tagtextcolor
;
UINT16
tagoutlinecolor
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment