Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
40db288a
There was an error fetching the commit references. Please try again later.
Commit
40db288a
authored
6 years ago
by
David Marcec
Browse files
Options
Downloads
Patches
Plain Diff
Renamed CheckIfOperationChanged to OnDockedModeChanged
parent
fd1ef252
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/yuzu/configuration/configure_general.cpp
+22
-20
22 additions, 20 deletions
src/yuzu/configuration/configure_general.cpp
src/yuzu/configuration/configure_general.h
+1
-1
1 addition, 1 deletion
src/yuzu/configuration/configure_general.h
with
23 additions
and
21 deletions
src/yuzu/configuration/configure_general.cpp
+
22
−
20
View file @
40db288a
...
@@ -41,25 +41,27 @@ void ConfigureGeneral::PopulateHotkeyList(const HotkeyRegistry& registry) {
...
@@ -41,25 +41,27 @@ void ConfigureGeneral::PopulateHotkeyList(const HotkeyRegistry& registry) {
ui
->
widget
->
Populate
(
registry
);
ui
->
widget
->
Populate
(
registry
);
}
}
void
ConfigureGeneral
::
CheckIfOperationChanged
(
bool
last_state
,
bool
new_state
)
{
void
ConfigureGeneral
::
OnDockedModeChanged
(
bool
last_state
,
bool
new_state
)
{
if
(
last_state
!=
new_state
)
{
if
(
last_state
==
new_state
)
{
Core
::
System
&
system
{
Core
::
System
::
GetInstance
()};
return
;
Service
::
SM
::
ServiceManager
&
sm
=
system
.
ServiceManager
();
}
// Message queue is shared between these services, we just need to signal an operation
Core
::
System
&
system
{
Core
::
System
::
GetInstance
()};
// change to one and it will handle both automatically
Service
::
SM
::
ServiceManager
&
sm
=
system
.
ServiceManager
();
auto
applet_oe
=
sm
.
GetService
<
Service
::
AM
::
AppletOE
>
(
"appletOE"
);
auto
applet_ae
=
sm
.
GetService
<
Service
::
AM
::
AppletAE
>
(
"appletAE"
);
// Message queue is shared between these services, we just need to signal an operation
bool
has_signalled
=
false
;
// change to one and it will handle both automatically
auto
applet_oe
=
sm
.
GetService
<
Service
::
AM
::
AppletOE
>
(
"appletOE"
);
if
(
applet_oe
!=
nullptr
)
{
auto
applet_ae
=
sm
.
GetService
<
Service
::
AM
::
AppletAE
>
(
"appletAE"
);
applet_oe
->
GetMessageQueue
()
->
OperationModeChanged
();
bool
has_signalled
=
false
;
has_signalled
=
true
;
}
if
(
applet_oe
!=
nullptr
)
{
applet_oe
->
GetMessageQueue
()
->
OperationModeChanged
();
if
(
applet_ae
!=
nullptr
&&
!
has_signalled
)
{
has_signalled
=
true
;
applet_ae
->
GetMessageQueue
()
->
OperationModeChanged
();
}
}
if
(
applet_ae
!=
nullptr
&&
!
has_signalled
)
{
applet_ae
->
GetMessageQueue
()
->
OperationModeChanged
();
}
}
}
}
...
@@ -72,7 +74,7 @@ void ConfigureGeneral::applyConfiguration() {
...
@@ -72,7 +74,7 @@ void ConfigureGeneral::applyConfiguration() {
Settings
::
values
.
use_cpu_jit
=
ui
->
use_cpu_jit
->
isChecked
();
Settings
::
values
.
use_cpu_jit
=
ui
->
use_cpu_jit
->
isChecked
();
const
bool
pre_docked_mode
=
Settings
::
values
.
use_docked_mode
;
const
bool
pre_docked_mode
=
Settings
::
values
.
use_docked_mode
;
Settings
::
values
.
use_docked_mode
=
ui
->
use_docked_mode
->
isChecked
();
Settings
::
values
.
use_docked_mode
=
ui
->
use_docked_mode
->
isChecked
();
CheckIfOperation
Changed
(
pre_docked_mode
,
Settings
::
values
.
use_docked_mode
);
OnDockedMode
Changed
(
pre_docked_mode
,
Settings
::
values
.
use_docked_mode
);
Settings
::
values
.
enable_nfc
=
ui
->
enable_nfc
->
isChecked
();
Settings
::
values
.
enable_nfc
=
ui
->
enable_nfc
->
isChecked
();
}
}
This diff is collapsed.
Click to expand it.
src/yuzu/configuration/configure_general.h
+
1
−
1
View file @
40db288a
...
@@ -25,7 +25,7 @@ public:
...
@@ -25,7 +25,7 @@ public:
private:
private:
void
setConfiguration
();
void
setConfiguration
();
void
CheckIfOperation
Changed
(
bool
last_state
,
bool
new_state
);
void
OnDockedMode
Changed
(
bool
last_state
,
bool
new_state
);
std
::
unique_ptr
<
Ui
::
ConfigureGeneral
>
ui
;
std
::
unique_ptr
<
Ui
::
ConfigureGeneral
>
ui
;
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment