Skip to content

Commit 5078b4b

Browse files
committed
ci: fix lint action
1 parent 0431302 commit 5078b4b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/discord/core.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#pragma once
44

55
#include <core/helper/expected.hpp>
6+
#include <core/helper/types.hpp>
67

78
#include "../helper/windows.hpp"
89

@@ -26,7 +27,8 @@ namespace constants::discord {
2627
#elif defined(__CONSOLE__)
2728
#error "Not supported"
2829
#elif defined(FLATPAK_BUILD)
29-
constexpr const char* platform_dependent_launch_arguments = "flatpak run io.github.openbrickprotocolfoundation.oopetris --discord";
30+
constexpr const char* platform_dependent_launch_arguments =
31+
"flatpak run io.github.openbrickprotocolfoundation.oopetris --discord";
3032
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
3133
constexpr const char* platform_dependent_launch_arguments = "oopetris.exe --discord";
3234
#elif defined(__APPLE__)
@@ -38,7 +40,7 @@ namespace constants::discord {
3840
#endif
3941

4042
// manually synchronized to https://discord.com/developers/applications/1220147916371394650/rich-presence/assets
41-
enum class ArtAsset { logo };
43+
enum class ArtAsset : u8 { logo };
4244

4345
OOPETRIS_GRAPHICS_EXPORTED [[nodiscard]] std::string get_asset_key(ArtAsset asset);
4446

tools/dependencies/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ if build_application
338338

339339
discord_sdk_dep = dependency(
340340
'discord-game-sdk',
341+
allow_fallback: true,
341342
required: not meson.is_cross_build() and get_option('build_installer'),
342343
# only with msvc we need a static library, all others work without adding __declspec() everywhere
343344
static: c.get_id() == 'msvc',

0 commit comments

Comments
 (0)