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
9a35d1fb
There was an error fetching the commit references. Please try again later.
Commit
9a35d1fb
authored
8 years ago
by
Emmanuel Gil Peyrot
Browse files
Options
Downloads
Patches
Plain Diff
Loader: Add a GetFileType method to get the type of a loaded file
parent
8fc9c031
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/loader/3dsx.h
+8
-0
8 additions, 0 deletions
src/core/loader/3dsx.h
src/core/loader/elf.h
+8
-0
8 additions, 0 deletions
src/core/loader/elf.h
src/core/loader/loader.h
+6
-0
6 additions, 0 deletions
src/core/loader/loader.h
src/core/loader/ncch.h
+8
-0
8 additions, 0 deletions
src/core/loader/ncch.h
with
30 additions
and
0 deletions
src/core/loader/3dsx.h
+
8
−
0
View file @
9a35d1fb
...
@@ -27,6 +27,14 @@ public:
...
@@ -27,6 +27,14 @@ public:
*/
*/
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
/**
* Returns the type of this file
* @return FileType corresponding to the loaded file
*/
FileType
GetFileType
()
override
{
return
IdentifyType
(
file
);
}
/**
/**
* Load the bootable file
* Load the bootable file
* @return ResultStatus result of function
* @return ResultStatus result of function
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/elf.h
+
8
−
0
View file @
9a35d1fb
...
@@ -27,6 +27,14 @@ public:
...
@@ -27,6 +27,14 @@ public:
*/
*/
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
/**
* Returns the type of this file
* @return FileType corresponding to the loaded file
*/
FileType
GetFileType
()
override
{
return
IdentifyType
(
file
);
}
/**
/**
* Load the bootable file
* Load the bootable file
* @return ResultStatus result of function
* @return ResultStatus result of function
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/loader.h
+
6
−
0
View file @
9a35d1fb
...
@@ -131,6 +131,12 @@ public:
...
@@ -131,6 +131,12 @@ public:
AppLoader
(
FileUtil
::
IOFile
&&
file
)
:
file
(
std
::
move
(
file
))
{
}
AppLoader
(
FileUtil
::
IOFile
&&
file
)
:
file
(
std
::
move
(
file
))
{
}
virtual
~
AppLoader
()
{
}
virtual
~
AppLoader
()
{
}
/**
* Returns the type of this file
* @return FileType corresponding to the loaded file
*/
virtual
FileType
GetFileType
()
=
0
;
/**
/**
* Load the application
* Load the application
* @return ResultStatus result of function
* @return ResultStatus result of function
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/ncch.h
+
8
−
0
View file @
9a35d1fb
...
@@ -173,6 +173,14 @@ public:
...
@@ -173,6 +173,14 @@ public:
*/
*/
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
static
FileType
IdentifyType
(
FileUtil
::
IOFile
&
file
);
/**
* Returns the type of this file
* @return FileType corresponding to the loaded file
*/
FileType
GetFileType
()
override
{
return
IdentifyType
(
file
);
}
/**
/**
* Load the application
* Load the application
* @return ResultStatus result of function
* @return ResultStatus result of function
...
...
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