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
b24e6f2b
There was an error fetching the commit references. Please try again later.
Commit
b24e6f2b
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
cleanups to service HLE
parent
68e19847
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/service.cpp
+6
-6
6 additions, 6 deletions
src/core/hle/service/service.cpp
src/core/hle/service/service.h
+2
-2
2 additions, 2 deletions
src/core/hle/service/service.h
with
8 additions
and
8 deletions
src/core/hle/service/service.cpp
+
6
−
6
View file @
b24e6f2b
...
@@ -75,7 +75,7 @@ public:
...
@@ -75,7 +75,7 @@ public:
* Gets the string name used by CTROS for a service
* Gets the string name used by CTROS for a service
* @return String name of service
* @return String name of service
*/
*/
std
::
string
GetName
()
{
std
::
string
GetName
()
const
{
return
"ServiceManager"
;
return
"ServiceManager"
;
}
}
...
@@ -83,7 +83,7 @@ public:
...
@@ -83,7 +83,7 @@ public:
* Gets the string name used by CTROS for a service
* Gets the string name used by CTROS for a service
* @return Port name of service
* @return Port name of service
*/
*/
std
::
string
GetPortName
()
{
std
::
string
GetPortName
()
const
{
return
"srv:"
;
return
"srv:"
;
}
}
...
@@ -92,8 +92,8 @@ public:
...
@@ -92,8 +92,8 @@ public:
* @return Return result of svcSendSyncRequest passed back to user app
* @return Return result of svcSendSyncRequest passed back to user app
*/
*/
Syscall
::
Result
Sync
()
{
Syscall
::
Result
Sync
()
{
ERROR_LOG
(
HLE
,
"Unimplemented function
ServiceManager
::Sync"
);
ERROR_LOG
(
HLE
,
"Unimplemented function
Interface_SRV
::Sync"
);
return
-
1
;
return
0
;
}
}
};
};
...
@@ -102,13 +102,13 @@ public:
...
@@ -102,13 +102,13 @@ public:
void
Init
()
{
void
Init
()
{
g_manager
=
new
Manager
;
g_manager
=
new
Manager
;
g_manager
->
AddService
(
new
Interface_SRV
);
g_manager
->
AddService
(
new
Interface_SRV
);
NOTICE_LOG
(
HLE
,
"Service
Manager
initialized OK"
);
NOTICE_LOG
(
HLE
,
"Service
s
initialized OK"
);
}
}
/// Shutdown ServiceManager
/// Shutdown ServiceManager
void
Shutdown
()
{
void
Shutdown
()
{
delete
g_manager
;
delete
g_manager
;
NOTICE_LOG
(
HLE
,
"Service
Manager
shutdown OK"
);
NOTICE_LOG
(
HLE
,
"Service
s
shutdown OK"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/service.h
+
2
−
2
View file @
b24e6f2b
...
@@ -40,7 +40,7 @@ public:
...
@@ -40,7 +40,7 @@ public:
* Gets the string name used by CTROS for a service
* Gets the string name used by CTROS for a service
* @return String name of service
* @return String name of service
*/
*/
virtual
std
::
string
GetName
()
{
virtual
std
::
string
GetName
()
const
{
return
"[UNKNOWN SERVICE NAME]"
;
return
"[UNKNOWN SERVICE NAME]"
;
}
}
...
@@ -48,7 +48,7 @@ public:
...
@@ -48,7 +48,7 @@ public:
* Gets the string name used by CTROS for a service
* Gets the string name used by CTROS for a service
* @return Port name of service
* @return Port name of service
*/
*/
virtual
std
::
string
GetPortName
()
{
virtual
std
::
string
GetPortName
()
const
{
return
"[UNKNOWN SERVICE PORT]"
;
return
"[UNKNOWN SERVICE PORT]"
;
}
}
...
...
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