Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
acf39ead
Commit
acf39ead
authored
Jan 08, 2020
by
Jack
Browse files
fixed sound/music toggle options
parent
373171a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/views/menu_view.cpp
View file @
acf39ead
...
...
@@ -65,8 +65,8 @@ MenuView::MenuView(ViewManager* gvm) : _gvm(gvm)
};
optionsMenu
[
SOUND
].
lambda
=
[
this
]()
{
bool
v
=
!
machine
.
sound
().
is
Music
Enabled
();
machine
.
sound
().
toggle
Music
(
v
);
bool
v
=
!
machine
.
sound
().
is
Sound
Enabled
();
machine
.
sound
().
toggle
Sound
(
v
);
updateLabels
();
};
...
...
@@ -124,7 +124,7 @@ void MenuView::handleMouseEvent(const SDL_Event& event)
void
MenuView
::
updateLabels
()
{
optionsMenu
[
MUSIC
].
caption
=
std
::
string
(
"music "
)
+
(
machine
.
sound
().
isMusicEnabled
()
?
"on"
:
"off"
);
optionsMenu
[
SOUND
].
caption
=
std
::
string
(
"sound "
)
+
(
machine
.
sound
().
is
Music
Enabled
()
?
"on"
:
"off"
);
optionsMenu
[
SOUND
].
caption
=
std
::
string
(
"sound "
)
+
(
machine
.
sound
().
is
Sound
Enabled
()
?
"on"
:
"off"
);
optionsMenu
[
SHOW_FPS
].
caption
=
std
::
string
(
"show fps "
)
+
(
_gvm
->
gameView
()
->
isFPSShown
()
?
"on"
:
"off"
);
auto
scaler
=
_gvm
->
gameView
()
->
scaler
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment