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
5bc14ab0
There was an error fetching the commit references. Please try again later.
Commit
5bc14ab0
authored
7 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
applet_oe: Stub SetFocusHandlingMode, GetCurrentFocusState, SetTerminateResult.
parent
8e2f62c6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/service/am/applet_oe.cpp
+55
-2
55 additions, 2 deletions
src/core/hle/service/am/applet_oe.cpp
with
55 additions
and
2 deletions
src/core/hle/service/am/applet_oe.cpp
+
55
−
2
View file @
5bc14ab0
...
@@ -52,7 +52,23 @@ public:
...
@@ -52,7 +52,23 @@ public:
class
ISelfController
final
:
public
ServiceFramework
<
ISelfController
>
{
class
ISelfController
final
:
public
ServiceFramework
<
ISelfController
>
{
public:
public:
ISelfController
()
:
ServiceFramework
(
"ISelfController"
)
{}
ISelfController
()
:
ServiceFramework
(
"ISelfController"
)
{
static
const
FunctionInfo
functions
[]
=
{
{
13
,
&
ISelfController
::
SetFocusHandlingMode
,
"SetFocusHandlingMode"
},
};
RegisterHandlers
(
functions
);
}
private
:
void
SetFocusHandlingMode
(
Kernel
::
HLERequestContext
&
ctx
)
{
// Takes 3 input u8s with each field located immediately after the previous u8, these are
// bool flags. No output.
IPC
::
RequestBuilder
rb
{
ctx
,
2
};
rb
.
Push
(
RESULT_SUCCESS
);
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
}
};
};
class
ICommonStateGetter
final
:
public
ServiceFramework
<
ICommonStateGetter
>
{
class
ICommonStateGetter
final
:
public
ServiceFramework
<
ICommonStateGetter
>
{
...
@@ -61,6 +77,7 @@ public:
...
@@ -61,6 +77,7 @@ public:
static
const
FunctionInfo
functions
[]
=
{
static
const
FunctionInfo
functions
[]
=
{
{
0
,
&
ICommonStateGetter
::
GetEventHandle
,
"GetEventHandle"
},
{
0
,
&
ICommonStateGetter
::
GetEventHandle
,
"GetEventHandle"
},
{
1
,
&
ICommonStateGetter
::
ReceiveMessage
,
"ReceiveMessage"
},
{
1
,
&
ICommonStateGetter
::
ReceiveMessage
,
"ReceiveMessage"
},
{
9
,
&
ICommonStateGetter
::
GetCurrentFocusState
,
"GetCurrentFocusState"
},
};
};
RegisterHandlers
(
functions
);
RegisterHandlers
(
functions
);
...
@@ -86,12 +103,39 @@ private:
...
@@ -86,12 +103,39 @@ private:
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
}
}
void
GetCurrentFocusState
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
3
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
<
u32
>
(
1
);
// 1: In focus, 2/3: Out of focus(running in "background")
LOG_WARNING
(
Service
,
"(STUBBED) called"
);
}
Kernel
::
SharedPtr
<
Kernel
::
Event
>
event
;
Kernel
::
SharedPtr
<
Kernel
::
Event
>
event
;
};
};
class
IApplicationFunctions
final
:
public
ServiceFramework
<
IApplicationFunctions
>
{
class
IApplicationFunctions
final
:
public
ServiceFramework
<
IApplicationFunctions
>
{
public:
public:
IApplicationFunctions
()
:
ServiceFramework
(
"IApplicationFunctions"
)
{}
IApplicationFunctions
()
:
ServiceFramework
(
"IApplicationFunctions"
)
{
static
const
FunctionInfo
functions
[]
=
{
{
22
,
&
IApplicationFunctions
::
SetTerminateResult
,
"SetTerminateResult"
},
};
RegisterHandlers
(
functions
);
}
private
:
void
SetTerminateResult
(
Kernel
::
HLERequestContext
&
ctx
)
{
// Takes an input u32 Result, no output.
// For example, in some cases official apps use this with error 0x2A2 then uses svcBreak.
IPC
::
RequestParser
rp
{
ctx
};
u32
result
=
rp
.
Pop
<
u32
>
();
IPC
::
RequestBuilder
rb
{
ctx
,
2
};
rb
.
Push
(
RESULT_SUCCESS
);
LOG_WARNING
(
Service
,
"(STUBBED) called, result=0x%08X"
,
result
);
}
};
};
class
ILibraryAppletCreator
final
:
public
ServiceFramework
<
ILibraryAppletCreator
>
{
class
ILibraryAppletCreator
final
:
public
ServiceFramework
<
ILibraryAppletCreator
>
{
...
@@ -120,48 +164,56 @@ private:
...
@@ -120,48 +164,56 @@ private:
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IAudioController
>
();
rb
.
PushIpcInterface
<
IAudioController
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetDisplayController
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetDisplayController
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IDisplayController
>
();
rb
.
PushIpcInterface
<
IDisplayController
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetDebugFunctions
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetDebugFunctions
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IDebugFunctions
>
();
rb
.
PushIpcInterface
<
IDebugFunctions
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetWindowController
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetWindowController
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IWindowController
>
();
rb
.
PushIpcInterface
<
IWindowController
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetSelfController
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetSelfController
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ISelfController
>
();
rb
.
PushIpcInterface
<
ISelfController
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetCommonStateGetter
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetCommonStateGetter
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ICommonStateGetter
>
();
rb
.
PushIpcInterface
<
ICommonStateGetter
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetLibraryAppletCreator
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetLibraryAppletCreator
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
ILibraryAppletCreator
>
();
rb
.
PushIpcInterface
<
ILibraryAppletCreator
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
void
GetApplicationFunctions
(
Kernel
::
HLERequestContext
&
ctx
)
{
void
GetApplicationFunctions
(
Kernel
::
HLERequestContext
&
ctx
)
{
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IApplicationFunctions
>
();
rb
.
PushIpcInterface
<
IApplicationFunctions
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
};
};
...
@@ -169,6 +221,7 @@ void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) {
...
@@ -169,6 +221,7 @@ void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) {
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
IPC
::
RequestBuilder
rb
{
ctx
,
2
,
0
,
0
,
1
};
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
Push
(
RESULT_SUCCESS
);
rb
.
PushIpcInterface
<
IApplicationProxy
>
();
rb
.
PushIpcInterface
<
IApplicationProxy
>
();
LOG_DEBUG
(
Service
,
"called"
);
}
}
AppletOE
::
AppletOE
()
:
ServiceFramework
(
"appletOE"
)
{
AppletOE
::
AppletOE
()
:
ServiceFramework
(
"appletOE"
)
{
...
...
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