vita3K Update: Init it only in CLI master build.

This commit is contained in:
Zangetsu38
2022-07-14 06:02:41 +02:00
committed by Zangetsu
parent 292c938719
commit 4dfc43e42f
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ if(GIT_HASH STREQUAL "")
set(GIT_COUNT 0)
elseif((GIT_BRANCH STREQUAL "master") OR (GIT_BRANCH STREQUAL "HEAD"))
set(VITA3K_GIT_REV "${GIT_HASH}")
add_definitions(-DUSE_VITA3K_UPDATE)
else()
set(VITA3K_GIT_REV "${GIT_HASH}-${GIT_BRANCH}")
endif()
+2
View File
@@ -183,8 +183,10 @@ void open_user(GuiState &gui, EmuEnvState &emuenv) {
init_theme_start_background(gui, emuenv, gui.users[emuenv.io.user_id].theme_id);
gui.live_area.start_screen = true;
#ifdef USE_VITA3K_UPDATE
if (init_vita3k_update(gui))
gui.help_menu.vita3k_update = true;
#endif
}
static auto get_users_index(GuiState &gui, const std::string &user_name) {