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
3bd041f5
There was an error fetching the commit references. Please try again later.
Commit
3bd041f5
authored
11 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
changed some naming/misc cleanups
parent
2a7d7ce5
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/core/hle.cpp
+3
-3
3 additions, 3 deletions
src/core/hle.cpp
src/core/hle/hle.h
+15
-13
15 additions, 13 deletions
src/core/hle/hle.h
src/core/hle/hle_syscall.cpp
+2
-2
2 additions, 2 deletions
src/core/hle/hle_syscall.cpp
src/core/hle/hle_syscall.h
+0
-3
0 additions, 3 deletions
src/core/hle/hle_syscall.h
with
20 additions
and
21 deletions
src/core/hle.cpp
+
3
−
3
View file @
3bd041f5
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
namespace
HLE
{
namespace
HLE
{
static
std
::
vector
<
HLE
Module
>
g_module_db
;
static
std
::
vector
<
Module
Def
>
g_module_db
;
void
RegisterModule
(
const
char
*
name
,
int
num_functions
,
const
HLE
Function
*
func_table
)
{
void
RegisterModule
(
std
::
string
name
,
int
num_functions
,
const
Function
Def
*
func_table
)
{
HLE
Module
module
=
{
name
,
num_functions
,
func_table
};
Module
Def
module
=
{
name
,
num_functions
,
func_table
};
g_module_db
.
push_back
(
module
);
g_module_db
.
push_back
(
module
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/hle.h
+
15
−
13
View file @
3bd041f5
...
@@ -9,29 +9,31 @@
...
@@ -9,29 +9,31 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
typedef
void
(
*
HLEFunc
)();
#define PARAM(n) Core::g_app_core->GetReg(n)
#define RETURN(n) Core::g_app_core->SetReg(0, n)
////////////////////////////////////////////////////////////////////////////////////////////////////
namespace
HLE
{
struct
HLEFunction
{
typedef
void
(
*
Func
)();
struct
FunctionDef
{
u32
id
;
u32
id
;
HLE
Func
func
;
Func
func
;
const
char
*
name
;
std
::
string
name
;
};
};
struct
HLE
Module
{
struct
Module
Def
{
const
char
*
name
;
std
::
string
name
;
int
num_funcs
;
int
num_funcs
;
const
HLE
Function
*
func_table
;
const
Function
Def
*
func_table
;
};
};
#define PARAM(n) Core::g_app_core->GetReg(n)
#define RETURN(n) Core::g_app_core->SetReg(0, n)
namespace
HLE
{
void
Init
();
void
Init
();
void
Shutdown
();
void
Shutdown
();
void
RegisterModule
(
const
char
*
name
,
int
num_functions
,
const
HLE
Function
*
func_table
);
void
RegisterModule
(
std
::
string
name
,
int
num_functions
,
const
Function
Def
*
func_table
);
}
// namespace
}
// namespace
This diff is collapsed.
Click to expand it.
src/core/hle/hle_syscall.cpp
+
2
−
2
View file @
3bd041f5
...
@@ -15,10 +15,10 @@ Result SVC_ConnectToPort(void* out, const char* port_name) {
...
@@ -15,10 +15,10 @@ Result SVC_ConnectToPort(void* out, const char* port_name) {
return
0
;
return
0
;
}
}
const
HLEFunction
SysCallTable
[]
=
{
const
HLE
::
Function
Def
SysCall
_
Table
[]
=
{
{
0x2D
,
WrapI_VC
<
SVC_ConnectToPort
>
,
"svcConnectToPort"
},
{
0x2D
,
WrapI_VC
<
SVC_ConnectToPort
>
,
"svcConnectToPort"
},
};
};
void
Register_SysCall
()
{
void
Register_SysCall
()
{
HLE
::
RegisterModule
(
"SysCallTable"
,
ARRAY_SIZE
(
SysCallTable
),
SysCallTable
);
HLE
::
RegisterModule
(
"SysCallTable"
,
ARRAY_SIZE
(
SysCall
_
Table
),
SysCall
_
Table
);
}
}
This diff is collapsed.
Click to expand it.
src/core/hle/hle_syscall.h
+
0
−
3
View file @
3bd041f5
...
@@ -34,7 +34,4 @@
...
@@ -34,7 +34,4 @@
// }
// }
//};
//};
void
Register_SysCall
();
void
Register_SysCall
();
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