Skip to content

Commit 4055f90

Browse files
authored
Merge branch 'master' into textinput
2 parents 2e887f9 + c88f249 commit 4055f90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1955
-771
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,29 +125,45 @@ jobs:
125125
submodules: true
126126

127127
- name: Cache SDL
128-
uses: actions/cache@v2
128+
id: cache-windows-sdl
129+
uses: actions/cache@v3
129130
env:
130131
cache-name: cache-sdl
131132
with:
132-
path: C:\SDL
133-
key: ${{ runner.os }}-build-${{ env.cache-name }}
133+
path: C:\SDL2-*
134+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.SDL_VERSION }}
134135

135-
- name: Download SDL if not cached
136+
- if: ${{ steps.cache-windows-sdl.outputs.cache-hit != 'true' }}
137+
name: Download SDL if not cached
136138
run: |
137-
if (-Not (Test-Path C:\SDL))
138-
{
139-
Invoke-WebRequest "https://github.com/libsdl-org/SDL/releases/download/release-$env:SDL_VERSION/SDL2-devel-$env:SDL_VERSION-VC.zip" -o C:\SDL.zip
140-
Expand-Archive C:\SDL.zip -DestinationPath C:\
141-
}
139+
Invoke-WebRequest "https://github.com/libsdl-org/SDL/releases/download/release-$env:SDL_VERSION/SDL2-devel-$env:SDL_VERSION-VC.zip" -o C:\SDL.zip
140+
Expand-Archive C:\SDL.zip -DestinationPath C:\
142141
143-
- name: CMake configure (default version)
142+
- name: Cache build folder for this CMakeLists.txt
143+
id: cache-windows-build-folder
144+
uses: actions/cache@v3
145+
env:
146+
cache-name: cache-windows-build-folder-VS2022
147+
with:
148+
path: |
149+
desktop_version/build
150+
desktop_version/CMakeLists.txt
151+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('desktop_version/CMakeLists.txt') }}-SDL${{ env.SDL_VERSION }}
152+
153+
- if: ${{ steps.cache-windows-build-folder.outputs.cache-hit != 'true' }}
154+
name: CMake initial configure/generate
144155
run: |
145156
mkdir $env:SRC_DIR_PATH/build
146157
cd $env:SRC_DIR_PATH/build
147158
$env:LDFLAGS = "/LIBPATH:C:\SDL2-$env:SDL_VERSION\lib\x86 "
148159
cmake -G "Visual Studio 17 2022" -A Win32 `
149160
-DSDL2_INCLUDE_DIRS="C:\SDL2-$env:SDL_VERSION\include" `
150161
-DSDL2_LIBRARIES="SDL2;SDL2main" ..
162+
163+
- name: CMake configure (default version)
164+
run: |
165+
cd $env:SRC_DIR_PATH/build
166+
cmake ..
151167
- name: Build (default version)
152168
run: |
153169
cd $env:SRC_DIR_PATH/build

desktop_version/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ endif()
7171
set(VVV_SRC
7272
src/BinaryBlob.cpp
7373
src/BlockV.cpp
74+
src/ButtonGlyphs.cpp
7475
src/CWrappers.cpp
7576
src/Ent.cpp
7677
src/Entity.cpp
@@ -350,8 +351,9 @@ endif()
350351

351352

352353
if(MSVC)
353-
# Statically link Microsoft's runtime library so end users don't have to install it
354-
list(APPEND GLOBAL_COMPILE_FLAGS /MT)
354+
# Statically link Microsoft's runtime library so end users don't have to install it (/MT)
355+
# Also, build with multiple processors (/MP)
356+
list(APPEND GLOBAL_COMPILE_FLAGS /MT /MP)
355357
endif()
356358

357359

desktop_version/lang/ca/cutscenes.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@
7676
<cutscene id="bigopenworldskip" explanation="">
7777
<dialogue speaker="purple" english="I&apos;ll be right here if you need any help!" translation="Si necessites ajuda, seré aquí!"/>
7878
</cutscene>
79-
<cutscene id="talkpurple_intro" explanation="">
79+
<cutscene id="talkpurple_intro" explanation="***ENTER is OUTDATED***">
8080
<dialogue speaker="player" english="I&apos;m feeling a bit overwhelmed, Doctor." translation="Tot això m’aclapara una mica, doctora."/>
8181
<dialogue speaker="player" english="Where do I begin?" translation="Per on començo?"/>
8282
<dialogue speaker="purple" english="Remember that you can press ENTER to check where you are on the map!" translation="Recorda que pots prémer Retorn per a veure on ets del mapa!"/>
83+
<dialogue speaker="purple" english="Remember that you can press {b_map} to check where you are on the map!" translation="" buttons="1"/>
8384
<dialogue speaker="purple" english="Look for areas where the rest of the crew might be..." translation="Cerca zones on pugui haver-hi altres tripulants..."/>
8485
<dialogue speaker="purple" english="If you get lost, you can get back to the ship from any teleporter." translation="Si et perds, pots tornar a la nau a partir de qualsevol teletransportador."/>
8586
<dialogue speaker="purple" english="And don&apos;t worry! We&apos;ll find everyone!" translation="I no pateixis! Segur que trobarem tothom!"/>

desktop_version/lang/ca/meta.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<!-- On the language screen, hard limit 40 8x8 characters. Space/Z/V sets this as the language -->
1212
<action_hint>Prem Espai, Z o V per a seleccionar</action_hint>
1313

14+
<!-- Same as above, but for a gamepad button (hard limit 40 8x8 characters) -->
15+
<gamepad_hint>Press {button} to select</gamepad_hint>
16+
1417
<!-- Enable automatic word wrapping instead of having to manually insert newlines -->
1518
<autowordwrap>1</autowordwrap>
1619

0 commit comments

Comments
 (0)