Skip to content
Snippets Groups Projects
Commit f8ee9f6d authored by Lach's avatar Lach
Browse files

CMake: Locate and install SUGOI asset

parent 36c452e0
No related branches found
No related tags found
No related merge requests found
Pipeline #3973 passed
......@@ -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}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment