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
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lach
SRB2
Commits
f8ee9f6d
Commit
f8ee9f6d
authored
10 months ago
by
Lach
Browse files
Options
Downloads
Patches
Plain Diff
CMake: Locate and install SUGOI asset
parent
36c452e0
No related branches found
No related tags found
No related merge requests found
Pipeline
#3973
passed
10 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/CMakeLists.txt
+5
-0
5 additions, 0 deletions
assets/CMakeLists.txt
with
5 additions
and
0 deletions
assets/CMakeLists.txt
+
5
−
0
View file @
f8ee9f6d
...
...
@@ -25,6 +25,10 @@ list(TRANSFORM SRB2_ASSETS_DOCS PREPEND "${SRB2_ASSET_DIRECTORY_ABSOLUTE}")
# POST-V2.2 NOTE: Do not forget to add patch.pk3 to the end of this list!
####################
set
(
SRB2_ASSET_SUGOI_EXPRESSION
"sl_sugoi.+
\\
.pk3"
)
file
(
STRINGS ../src/d_main.c SRB2_ASSET_SUGOI REGEX
${
SRB2_ASSET_SUGOI_EXPRESSION
}
)
string
(
REGEX MATCH
${
SRB2_ASSET_SUGOI_EXPRESSION
}
SRB2_ASSET_SUGOI
${
SRB2_ASSET_SUGOI
}
)
set
(
SRB2_ASSETS_GAME
"srb2.pk3"
"player.dta"
...
...
@@ -32,6 +36,7 @@ set(SRB2_ASSETS_GAME
"patch.pk3"
"music.dta"
"models.dat"
${
SRB2_ASSET_SUGOI
}
)
list
(
TRANSFORM SRB2_ASSETS_GAME PREPEND
"/"
)
list
(
TRANSFORM SRB2_ASSETS_GAME PREPEND
"
${
SRB2_ASSET_DIRECTORY_ABSOLUTE
}
"
)
...
...
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