Skip to content

Commit d9749d3

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d4e4645 + 61bbd8b commit d9749d3

63 files changed

Lines changed: 1372 additions & 459 deletions

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
1313

14-
[*.{sh,rb,js,yml,adoc}]
14+
[*.{sh,rb,js,yml,yaml,adoc}]
1515
indent_style = space
1616
indent_size = 2
1717

.github/workflows/linter.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Lint Files
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
name: YAML, CMake & Markdown
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Clone Repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Install tools
18+
run: |
19+
pip install yamllint
20+
pip install cmakelint
21+
22+
- uses: tj-actions/changed-files@v46
23+
if: '!cancelled()'
24+
id: changed-files-yaml
25+
with:
26+
files: |
27+
**/*.yaml
28+
**/*.yml
29+
- name: Lint YAML files
30+
if: steps.changed-files-yaml.outputs.any_changed == 'true'
31+
run: |
32+
yamllint -d "{extends: relaxed, rules: {line-length: {max: 100}}}" \
33+
${{ steps.changed-files-yaml.outputs.all_changed_files }}
34+
# we often have extra long lines, so relaxing the check (from 80)
35+
36+
- uses: tj-actions/changed-files@v46
37+
if: '!cancelled()'
38+
id: changed-files-cmake
39+
with:
40+
files: |
41+
**/*.cmake
42+
**/CMakeLists.txt
43+
- name: Lint CMake files
44+
if: steps.changed-files-cmake.outputs.any_changed == 'true'
45+
run: |
46+
cmakelint --filter=-whitespace/tabs --linelength=120 \
47+
${{ steps.changed-files-cmake.outputs.all_changed_files }}
48+
# we often have extra long lines, so relaxing the check (from 80)
49+
# also do not warn about tabstops
50+
51+
- uses: tj-actions/changed-files@v46
52+
if: '!cancelled()'
53+
id: changed-files-md
54+
with:
55+
files: '**/*.md'
56+
separator: ","
57+
- name: Lint Markdown files
58+
if: steps.changed-files-md.outputs.any_changed == 'true'
59+
uses: DavidAnson/markdownlint-cli2-action@v19
60+
with:
61+
globs: ${{ steps.changed-files-md.outputs.all_changed_files }}
62+
separator: ","

.github/workflows/pr_labels.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Clone repository
1616
uses: actions/checkout@v4
1717
with:
18-
# pull_request_target is run under forks, use main repo source
19-
fetch-depth: 0
20-
repository: EasyRPG/Player
21-
ref: master
18+
# pull_request_target is run under forks, use main repo source
19+
fetch-depth: 0
20+
repository: EasyRPG/Player
21+
ref: master
2222

2323
- name: Update labels
2424
uses: actions/labeler@v5

.github/workflows/stable-compilation.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ defaults:
1919

2020
jobs:
2121
docker:
22-
name: ${{ matrix.image }}
23-
runs-on: ubuntu-latest
22+
name: ${{ matrix.image }} (${{ matrix.os.arch }})
23+
runs-on: ${{ matrix.os.name }}
2424
container:
2525
image: ${{ matrix.image }}
2626

@@ -30,10 +30,22 @@ jobs:
3030
image:
3131
# version of: # CMake | g++ | SDL | support end #
3232
# -------------------------------------------------------------
33-
- ubuntu:20.04 # 3.16.3 | 9.3.0 | 2.0.10 | LTS (4/25) #
3433
- debian:11 # 3.18.4 | 10.2.1 | 2.0.14 | oldstable (8/24) #
35-
- ubuntu:22.04 # 3.22.1 | 11.2.0 | 2.0.20 | LTS (6/27) #
34+
- ubuntu:22.04 # 3.22.1 | 11.2.0 | 2.0.20 | LTS (4/27) #
3635
- debian:12 # 3.25.1 | 12.2.0 | 2.26.5 | stable (6/26) #
36+
- ubuntu:24.04 # 3.28.3 | 13.2.0 | 2.30.0 | LTS (4/29) #
37+
os:
38+
- arch: x86_64
39+
name: ubuntu-latest
40+
- arch: arm64
41+
name: ubuntu-24.04-arm
42+
exclude:
43+
- os:
44+
arch: arm64
45+
image: debian:11
46+
- os:
47+
arch: arm64
48+
image: ubuntu:22.04
3749

3850
steps:
3951
- name: Install dependencies
@@ -45,7 +57,7 @@ jobs:
4557
libicu-dev libexpat1-dev libinih-dev nlohmann-json3-dev \
4658
libsdl2-dev libpng-dev libpixman-1-dev libfmt-dev \
4759
libfreetype6-dev libharfbuzz-dev libmpg123-dev libsndfile-dev \
48-
libvorbis-dev libopusfile-dev libspeexdsp-dev \
60+
libvorbis-dev libopusfile-dev libspeexdsp-dev liblhasa-dev \
4961
libdrm-dev libgbm-dev # only needed for sdl2 on debian 11
5062
5163
- name: Clone Repository

CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
cmake_minimum_required(VERSION 3.16...3.31 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.18...3.31 FATAL_ERROR)
22

3-
project(EasyRPG_Player VERSION 0.8
3+
project(EasyRPG_Player VERSION 0.8.1
44
DESCRIPTION "Interpreter for RPG Maker 2000/2003 games"
55
HOMEPAGE_URL "https://easyrpg.org"
66
LANGUAGES CXX)
@@ -68,8 +68,6 @@ add_library(${PROJECT_NAME} OBJECT
6868
src/baseui.h
6969
src/battle_animation.cpp
7070
src/battle_animation.h
71-
src/battle_message.cpp
72-
src/battle_message.h
7371
src/bitmap.cpp
7472
src/bitmapfont.h
7573
src/bitmapfont_glyph.h
@@ -192,6 +190,8 @@ add_library(${PROJECT_NAME} OBJECT
192190
src/game_map.h
193191
src/game_message.cpp
194192
src/game_message.h
193+
src/game_message_terms.cpp
194+
src/game_message_terms.h
195195
src/game_party_base.cpp
196196
src/game_party_base.h
197197
src/game_party.cpp
@@ -629,7 +629,7 @@ elseif(PLAYER_TARGET_PLATFORM STREQUAL "SDL2")
629629
# SDL2 depends on some systems on SDL2::SDL2main but SDL2::SDL2 is not always a dependency of it
630630
# Manually add the dependencies
631631
player_find_package(NAME SDL2
632-
VERSION 2.0.5
632+
VERSION 2.0.14
633633
TARGET SDL2::SDL2
634634
REQUIRED)
635635

@@ -801,6 +801,10 @@ endif()
801801
# Shared by homebrew platforms
802802
if(NINTENDO_3DS OR NINTENDO_WII OR NINTENDO_WIIU OR NINTENDO_WIIU OR NINTENDO_SWITCH OR VITA)
803803
target_compile_options(${PROJECT_NAME} PUBLIC -fno-exceptions -fno-rtti)
804+
if(VITA)
805+
# This optimisation is unstable on Vita (crashes at the end of MainLoop)
806+
target_compile_options(${PROJECT_NAME} PUBLIC -fno-optimize-sibling-calls)
807+
endif()
804808
set(CMAKE_DL_LIBS "") # hack4icu!
805809
set(PLAYER_ENABLE_TESTS OFF)
806810
option(PLAYER_VERSIONED_PACKAGES "Create zip packages with versioned name (for internal use)" ON)
@@ -942,7 +946,7 @@ if(PLAYER_BUILD_LIBLCF)
942946
target_link_libraries(${PROJECT_NAME} lcf)
943947
else()
944948
# Use system package
945-
player_find_package(NAME liblcf VERSION 0.8
949+
player_find_package(NAME liblcf VERSION 0.8.1
946950
TARGET liblcf::liblcf
947951
REQUIRED)
948952
endif()

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ libeasyrpg_player_a_SOURCES = \
4242
src/baseui.h \
4343
src/battle_animation.cpp \
4444
src/battle_animation.h \
45-
src/battle_message.cpp \
46-
src/battle_message.h \
4745
src/bitmap.cpp \
4846
src/bitmap.h \
4947
src/bitmapfont.h \
@@ -168,6 +166,8 @@ libeasyrpg_player_a_SOURCES = \
168166
src/game_map.h \
169167
src/game_message.cpp \
170168
src/game_message.h \
169+
src/game_message_terms.cpp \
170+
src/game_message_terms.h \
171171
src/game_party.cpp \
172172
src/game_party.h \
173173
src/game_party_base.cpp \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Documentation is available at the documentation wiki: https://wiki.easyrpg.org
1616
### minimal / required
1717

1818
- [liblcf] for RPG Maker data reading.
19-
- SDL3 or SDL2 >= 2.0.5 for screen backend support.
19+
- SDL3 or SDL2 >= 2.0.14 for screen backend support.
2020
- Pixman for low level pixel manipulation.
2121
- libpng for PNG image support.
2222
- zlib for XYZ image and ZIP archive support.

builds/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ android {
55
assetPacks = [":assets"]
66
defaultConfig {
77
applicationId "org.easyrpg.player"
8-
compileSdk 35
8+
compileSdk 34
99
minSdkVersion 21
10-
targetSdkVersion 35
10+
targetSdkVersion 34
1111
versionName VERSION_NAME
1212
versionCode Integer.parseInt(VERSION_CODE)
1313
}

builds/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
<!-- Player's Activity -->
7171
<activity
7272
android:name=".player.EasyRpgPlayerActivity"
73-
android:configChanges="orientation|screenSize" />
73+
android:configChanges="orientation|screenSize"
74+
android:theme="@style/AppThemePlayerActivity"/>
7475
<!-- Settings' Activity -->
7576
<activity
7677
android:name=".settings.SettingsMainActivity"

builds/android/app/src/main/java/org/easyrpg/player/player/EasyRpgPlayerActivity.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ public void onDrawerStateChanged(int newState) {
142142

143143
NavigationView navigationView = findViewById(R.id.nav_view);
144144
navigationView.setNavigationItemSelectedListener(this);
145-
hideStatusBar();
146145

147146
// Screen orientation
148147
if (SettingsManager.isForcedLandscape()) {
@@ -207,12 +206,6 @@ public boolean onNavigationItemSelected(MenuItem item) {
207206
return false;
208207
}
209208

210-
public void hideStatusBar() {
211-
// Hide the status bar
212-
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
213-
WindowManager.LayoutParams.FLAG_FULLSCREEN);
214-
}
215-
216209
@Override
217210
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
218211
if (requestCode == LAYOUT_EDIT) {

0 commit comments

Comments
 (0)