Skip to content

Commit e6063eb

Browse files
committed
Bump rtrp version to fix missing include, and build MacOS
1 parent 9a4b316 commit e6063eb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Windows
1616
os: windows-latest
1717

18+
- name: macOS
19+
os: macos-latest
20+
1821
- name: Android32
1922
os: ubuntu-latest
2023
target: Android32

cmake/rtrp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include(FetchContent)
33
FetchContent_Declare(
44
RTRP
55
GIT_REPOSITORY https://github.com/SpaghettDev/RTRP.git
6-
GIT_TAG 6e838a4fc5069f9c240dccd52ba7d86b6114f0e6
6+
GIT_TAG 2a9d23dcc05483256f5a963356e927c11ec9ffdb
77
GIT_PROGRESS TRUE
88
)
99
message("Fetching RTRP")

src/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ namespace rl
103103
const rtrp::objects::LevelObject& level
104104
) {
105105
auto it = std::find_if(creators.cbegin(), creators.cend(), [&](const auto& creator) {
106-
return creator.userID == level.creatorID;
106+
return creator.userID == level.creatorUserID;
107107
});
108108

109-
return it != creators.cend() ? creators[it - creators.cbegin()] : rtrp::objects::CreatorObject{ level.creatorID, "-", 0 };
109+
return it != creators.cend() ? creators[it - creators.cbegin()] : rtrp::objects::CreatorObject{ level.creatorUserID, "-", 0 };
110110
}
111111

112112
inline GJDifficulty getDifficultyFromResponse(const rtrp::objects::LevelObject& level)

0 commit comments

Comments
 (0)