Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Moonlight - add build var to control 'MOONLIGHT GAME STREAMING' setti…
Browse files Browse the repository at this point in the history
…ngs menu
  • Loading branch information
porschemad911 committed Aug 4, 2024
1 parent ca817b5 commit 7b008ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ option(ENABLE_TTS "Set to ON to enable text to speech" OFF)
option(ENABLE_UPDATES "Set to ON to enable online updates." ${ENABLE_UPDATES})
option(PANFROST "Set to 1 to enable panfrost settings." ${PANFROST})
option(WLROOTS "Set to 1 to enable wlroots settings." ${WLROOTS})
option(MOONLIGHT "Set to 1 to enable moonlight settings." ${MOONLIGHT})

# emuelec
option(ENABLE_EMUELEC "Set to ON to enable EmuELEC changes" ${ENABLE_EMUELEC})
Expand Down Expand Up @@ -52,6 +53,10 @@ if("${WLROOTS}" STREQUAL "1")
add_definitions(-D_WLROOTS)
endif()

if("${MOONLIGHT}" STREQUAL "1")
add_definitions(-D_MOONLIGHT)
endif()

# emuelec
if("${ENABLE_EMUELEC}" STREQUAL "1")
add_definitions(-D_ENABLEEMUELEC)
Expand Down
2 changes: 1 addition & 1 deletion es-app/src/guis/GuiMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ GuiMenu::GuiMenu(Window *window, bool animate) : GuiComponent(window), mMenu(win

if (ApiSystem::getInstance()->isScriptingSupported(ApiSystem::WIFI)) {
addEntry(_("NETWORK SETTINGS").c_str(), true, [this] { openNetworkSettings_batocera(); }, "iconNetwork");
#if defined(AMD64) || defined(RK3326) || defined(RK3566) || defined(RK3566_X55) || defined(RK3588) || defined(RK3399)
#ifdef _MOONLIGHT
addEntry(_("MOONLIGHT GAME STREAMING").c_str(), true, [this] { GuiMoonlight::show(mWindow); }, "iconGames");
#endif
}
Expand Down

0 comments on commit 7b008ad

Please sign in to comment.