File tree 3 files changed +17
-13
lines changed
3 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,16 @@ jobs:
84
84
run : |
85
85
source /opt/toolchains/dc/kos/environ.sh && cd build && kos-make
86
86
87
+ # diabdat.mpq isn't available so this doesn't do anything, but I'll leave it here for documentation purposes
87
88
- name : Patch RAM-heavy assets
89
+ if : ${{ hashFiles('DIABDAT.MPQ') != '' }}
88
90
run : |
89
- [ -e build/data/diabdat ] && \
90
- cp build/data/ diabdat/monsters/snake/snakbl.trn build/data/ diabdat/monsters/snake/snakb.trn && \
91
- cp blackd.clx build/data/ diabdat/monsters/black/blackd.clx && \
92
- cp diablod.clx build/data/ diabdat/monsters/diablo/diablod.clx && \
93
- cp diablon.clx build/data/ diabdat/monsters/diablo/diablon.clx && \
94
- patch build/data/txt /monsters/monstdat.tsv -l -p0 < monstdat.patch
91
+ unpack_and_minify_mpq DIABDAT.MPQ && \
92
+ cp diabdat/monsters/snake/snakbl.trn diabdat/monsters/snake/snakb.trn && \
93
+ cp blackd.clx diabdat/monsters/black/blackd.clx && \
94
+ cp diablod.clx diabdat/monsters/diablo/diablod.clx && \
95
+ cp diablon.clx diabdat/monsters/diablo/diablon.clx && \
96
+ patch build/data/txtdata /monsters/monstdat.tsv -l -p0 < monstdat.patch
95
97
96
98
- name : Generate .cdi
97
99
run : |
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ RUN echo "Compiling..."
52
52
RUN source /opt/toolchains/dc/kos/environ.sh && cd build && kos-make
53
53
54
54
RUN echo "Patching RAM-heavy assets..."
55
- RUN [ -e build/data/ diabdat ] && \
56
- cp build/data/ diabdat/monsters/snake/snakbl.trn build/data/ diabdat/monsters/snake/snakb.trn && \
57
- cp blackd.clx build/data/ diabdat/monsters/black/blackd.clx && \
58
- cp diablod.clx build/data/ diabdat/monsters/diablo/diablod.clx && \
59
- cp diablon.clx build/data/ diabdat/monsters/diablo/diablon.clx && \
60
- patch build/data/txt /monsters/monstdat.tsv -l -p0 < monstdat.patch
55
+ RUN [ -e diabdat ] && \
56
+ cp diabdat/monsters/snake/snakbl.trn diabdat/monsters/snake/snakb.trn && \
57
+ cp blackd.clx diabdat/monsters/black/blackd.clx && \
58
+ cp diablod.clx diabdat/monsters/diablo/diablod.clx && \
59
+ cp diablon.clx diabdat/monsters/diablo/diablon.clx && \
60
+ patch build/data/txtdata /monsters/monstdat.tsv -l -p0 < monstdat.patch
61
61
62
62
RUN echo "Generating CDI"
63
63
RUN source /opt/toolchains/dc/kos/environ.sh && \
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ include(functions/devilutionx_library)
3
3
include (functions/genex)
4
4
5
5
set (libdevilutionx_SRCS
6
- memory_stats.cpp
7
6
appfat.cpp
8
7
automap.cpp
9
8
capture.cpp
@@ -282,6 +281,9 @@ if(DEVILUTIONX_SCREENSHOT_FORMAT STREQUAL DEVILUTIONX_SCREENSHOT_FORMAT_PNG)
282
281
utils/surface_to_png.cpp
283
282
)
284
283
endif ()
284
+ if (PLATFORM_DREAMCAST)
285
+ list (APPEND libdevilutionx_SRCS memory_stats.cpp)
286
+ endif ()
285
287
286
288
add_devilutionx_library(libdevilutionx OBJECT ${libdevilutionx_SRCS} )
287
289
target_include_directories (libdevilutionx PUBLIC ${CMAKE_CURRENT_BINARY_DIR} )
You can’t perform that action at this time.
0 commit comments