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
928e78dc
There was an error fetching the commit references. Please try again later.
Commit
928e78dc
authored
6 years ago
by
greggameplayer
Committed by
Unknown
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement GetDefaultDisplayResolutionChangeEvent
Require by Toki Tori and Toki Tori 2+
parent
3fd78f4d
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/core/hle/service/am/am.cpp
+12
-1
12 additions, 1 deletion
src/core/hle/service/am/am.cpp
src/core/hle/service/am/am.h
+1
-0
1 addition, 0 deletions
src/core/hle/service/am/am.h
with
13 additions
and
1 deletion
src/core/hle/service/am/am.cpp
+
12
−
1
View file @
928e78dc
...
@@ -306,7 +306,8 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter"
...
@@ -306,7 +306,8 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter"
{
52
,
nullptr
,
"SwitchLcdBacklight"
},
{
52
,
nullptr
,
"SwitchLcdBacklight"
},
{
55
,
nullptr
,
"IsInControllerFirmwareUpdateSection"
},
{
55
,
nullptr
,
"IsInControllerFirmwareUpdateSection"
},
{
60
,
nullptr
,
"GetDefaultDisplayResolution"
},
{
60
,
nullptr
,
"GetDefaultDisplayResolution"
},
{
61
,
nullptr
,
"GetDefaultDisplayResolutionChangeEvent"
},
{
61
,
&
ICommonStateGetter
::
GetDefaultDisplayResolutionChangeEvent
,
"GetDefaultDisplayResolutionChangeEvent"
},
{
62
,
nullptr
,
"GetHdcpAuthenticationState"
},
{
62
,
nullptr
,
"GetHdcpAuthenticationState"
},
{
63
,
nullptr
,
"GetHdcpAuthenticationStateChangeEvent"
},
{
63
,
nullptr
,
"GetHdcpAuthenticationStateChangeEvent"
},
};
};
...
@@ -341,6 +342,16 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
...
@@ -341,6 +342,16 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
LOG_WARNING
(
Service_AM
,
"(STUBBED) called"
);
LOG_WARNING
(
Service_AM
,
"(STUBBED) called"
);
}
}
void
ICommonStateGetter
::
GetDefaultDisplayResolutionChangeEvent
(
Kernel
::
HLERequestContext
&
ctx
)
{
event
->
Signal
();
IPC
::
ResponseBuilder
rb
{
ctx
,
2
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushCopyObjects
(
event
);
LOG_WARNING
(
Service_AM
,
"(STUBBED) called"
);
}
void
ICommonStateGetter
::
GetOperationMode
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
ICommonStateGetter
::
GetOperationMode
(
Kernel
::
HLERequestContext
&
ctx
)
{
const
bool
use_docked_mode
{
Settings
::
values
.
use_docked_mode
};
const
bool
use_docked_mode
{
Settings
::
values
.
use_docked_mode
};
IPC
::
ResponseBuilder
rb
{
ctx
,
3
};
IPC
::
ResponseBuilder
rb
{
ctx
,
3
};
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/am/am.h
+
1
−
0
View file @
928e78dc
...
@@ -110,6 +110,7 @@ private:
...
@@ -110,6 +110,7 @@ private:
void
GetEventHandle
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetEventHandle
(
Kernel
::
HLERequestContext
&
ctx
);
void
ReceiveMessage
(
Kernel
::
HLERequestContext
&
ctx
);
void
ReceiveMessage
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetCurrentFocusState
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetCurrentFocusState
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetDefaultDisplayResolutionChangeEvent
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetOperationMode
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetOperationMode
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetPerformanceMode
(
Kernel
::
HLERequestContext
&
ctx
);
void
GetPerformanceMode
(
Kernel
::
HLERequestContext
&
ctx
);
...
...
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