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
bdd19036
There was an error fetching the commit references. Please try again later.
Commit
bdd19036
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
APT: (Subv) Fix bug where start event was being incorrectly signaled.
parent
e08f55b1
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/apt/apt.cpp
+7
-6
7 additions, 6 deletions
src/core/hle/service/apt/apt.cpp
with
7 additions
and
6 deletions
src/core/hle/service/apt/apt.cpp
+
7
−
6
View file @
bdd19036
...
...
@@ -32,7 +32,8 @@ static Kernel::SharedPtr<Kernel::SharedMemory> shared_font_mem = nullptr;
static
Kernel
::
SharedPtr
<
Kernel
::
Mutex
>
lock
=
nullptr
;
static
Kernel
::
SharedPtr
<
Kernel
::
Event
>
notification_event
=
nullptr
;
///< APT notification event
static
Kernel
::
SharedPtr
<
Kernel
::
Event
>
pause_event
=
nullptr
;
///< APT pause event
static
Kernel
::
SharedPtr
<
Kernel
::
Event
>
start_event
=
nullptr
;
///< APT start event
static
std
::
vector
<
u8
>
shared_font
;
static
u32
cpu_percent
=
0
;
///< CPU time available to the running application
...
...
@@ -44,11 +45,11 @@ void Initialize(Service::Interface* self) {
cmd_buff
[
2
]
=
0x04000000
;
// According to 3dbrew, this value should be 0x04000000
cmd_buff
[
3
]
=
Kernel
::
g_handle_table
.
Create
(
notification_event
).
MoveFrom
();
cmd_buff
[
4
]
=
Kernel
::
g_handle_table
.
Create
(
pause
_event
).
MoveFrom
();
cmd_buff
[
4
]
=
Kernel
::
g_handle_table
.
Create
(
start
_event
).
MoveFrom
();
// TODO(bunnei): Check if these events are cleared
/signaled
every time Initialize is called.
// TODO(bunnei): Check if these events are cleared every time Initialize is called.
notification_event
->
Clear
();
pause
_event
->
Signal
();
// Fire start event
start
_event
->
Clear
();
ASSERT_MSG
((
nullptr
!=
lock
),
"Cannot initialize without lock"
);
lock
->
Release
();
...
...
@@ -81,7 +82,7 @@ void NotifyToWait(Service::Interface* self) {
u32
*
cmd_buff
=
Kernel
::
GetCommandBuffer
();
u32
app_id
=
cmd_buff
[
1
];
// TODO(Subv): Verify this, it seems to get SWKBD and Home Menu further.
pause
_event
->
Signal
();
start
_event
->
Signal
();
cmd_buff
[
1
]
=
RESULT_SUCCESS
.
raw
;
// No error
LOG_WARNING
(
Service_APT
,
"(STUBBED) app_id=%u"
,
app_id
);
...
...
@@ -312,7 +313,7 @@ void Init() {
// TODO(bunnei): Check if these are created in Initialize or on APT process startup.
notification_event
=
Kernel
::
Event
::
Create
(
RESETTYPE_ONESHOT
,
"APT_U:Notification"
);
pause
_event
=
Kernel
::
Event
::
Create
(
RESETTYPE_ONESHOT
,
"APT_U:
Pause
"
);
start
_event
=
Kernel
::
Event
::
Create
(
RESETTYPE_ONESHOT
,
"APT_U:
Start
"
);
}
void
Shutdown
()
{
...
...
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