Skip to content

Commit

Permalink
Hide option for non-gl device
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Dec 7, 2023
1 parent b49b65f commit 8c330bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
26 changes: 0 additions & 26 deletions scripts/shaders/old_tv.glsl

This file was deleted.

6 changes: 3 additions & 3 deletions wiliwili/source/fragment/player_danmaku_setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ PlayerDanmakuSetting::PlayerDanmakuSetting() {

auto& conf = ProgramConfig::instance();

#ifdef __PSV__
this->cellMask->setVisibility(brls::Visibility::GONE);
#else
#if defined(BOREALIS_USE_OPENGL) && !defined(__PSV__)
this->cellMask->init("wiliwili/player/danmaku/filter/mask"_i18n,
DanmakuCore::DANMAKU_SMART_MASK, [](bool data) {
DanmakuCore::DANMAKU_SMART_MASK = data;
DanmakuCore::save();
return true;
});
#else
this->cellMask->setVisibility(brls::Visibility::GONE);
#endif
this->cellTop->init("wiliwili/player/danmaku/filter/top"_i18n,
DanmakuCore::DANMAKU_FILTER_SHOW_TOP, [](bool data) {
Expand Down

0 comments on commit 8c330bb

Please sign in to comment.