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
1099d834
There was an error fetching the commit references. Please try again later.
Commit
1099d834
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as "override".
parent
2d734bb6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core/file_sys/archive_romfs.h
+4
-4
4 additions, 4 deletions
src/core/file_sys/archive_romfs.h
src/core/loader/elf.h
+2
-2
2 additions, 2 deletions
src/core/loader/elf.h
src/core/loader/ncch.h
+7
-7
7 additions, 7 deletions
src/core/loader/ncch.h
with
13 additions
and
13 deletions
src/core/file_sys/archive_romfs.h
+
4
−
4
View file @
1099d834
...
...
@@ -20,13 +20,13 @@ namespace FileSys {
class
Archive_RomFS
final
:
public
Archive
{
public:
Archive_RomFS
(
const
Loader
::
AppLoader
&
app_loader
);
~
Archive_RomFS
();
~
Archive_RomFS
()
override
;
/**
* Get the IdCode of the archive (e.g. RomFS, SaveData, etc.)
* @return IdCode of the archive
*/
IdCode
GetIdCode
()
const
{
return
IdCode
::
RomFS
;
};
IdCode
GetIdCode
()
const
override
{
return
IdCode
::
RomFS
;
};
/**
* Read data from the archive
...
...
@@ -35,13 +35,13 @@ public:
* @param buffer Buffer to read data into
* @return Number of bytes read
*/
size_t
Read
(
const
u64
offset
,
const
u32
length
,
u8
*
buffer
)
const
;
size_t
Read
(
const
u64
offset
,
const
u32
length
,
u8
*
buffer
)
const
override
;
/**
* Get the size of the archive in bytes
* @return Size of the archive in bytes
*/
size_t
GetSize
()
const
;
size_t
GetSize
()
const
override
;
private
:
std
::
vector
<
u8
>
raw_data
;
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/elf.h
+
2
−
2
View file @
1099d834
...
...
@@ -16,13 +16,13 @@ namespace Loader {
class
AppLoader_ELF
final
:
public
AppLoader
{
public:
AppLoader_ELF
(
const
std
::
string
&
filename
);
~
AppLoader_ELF
();
~
AppLoader_ELF
()
override
;
/**
* Load the bootable file
* @return ResultStatus result of function
*/
ResultStatus
Load
();
ResultStatus
Load
()
override
;
private:
std
::
string
filename
;
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/ncch.h
+
7
−
7
View file @
1099d834
...
...
@@ -148,48 +148,48 @@ namespace Loader {
class
AppLoader_NCCH
final
:
public
AppLoader
{
public:
AppLoader_NCCH
(
const
std
::
string
&
filename
);
~
AppLoader_NCCH
();
~
AppLoader_NCCH
()
override
;
/**
* Load the application
* @return ResultStatus result of function
*/
ResultStatus
Load
();
ResultStatus
Load
()
override
;
/**
* Get the code (typically .code section) of the application
* @param buffer Reference to buffer to store data
* @return ResultStatus result of function
*/
ResultStatus
ReadCode
(
std
::
vector
<
u8
>&
buffer
)
const
;
ResultStatus
ReadCode
(
std
::
vector
<
u8
>&
buffer
)
const
override
;
/**
* Get the icon (typically icon section) of the application
* @param buffer Reference to buffer to store data
* @return ResultStatus result of function
*/
ResultStatus
ReadIcon
(
std
::
vector
<
u8
>&
buffer
)
const
;
ResultStatus
ReadIcon
(
std
::
vector
<
u8
>&
buffer
)
const
override
;
/**
* Get the banner (typically banner section) of the application
* @param buffer Reference to buffer to store data
* @return ResultStatus result of function
*/
ResultStatus
ReadBanner
(
std
::
vector
<
u8
>&
buffer
)
const
;
ResultStatus
ReadBanner
(
std
::
vector
<
u8
>&
buffer
)
const
override
;
/**
* Get the logo (typically logo section) of the application
* @param buffer Reference to buffer to store data
* @return ResultStatus result of function
*/
ResultStatus
ReadLogo
(
std
::
vector
<
u8
>&
buffer
)
const
;
ResultStatus
ReadLogo
(
std
::
vector
<
u8
>&
buffer
)
const
override
;
/**
* Get the RomFS of the application
* @param buffer Reference to buffer to store data
* @return ResultStatus result of function
*/
ResultStatus
ReadRomFS
(
std
::
vector
<
u8
>&
buffer
)
const
;
ResultStatus
ReadRomFS
(
std
::
vector
<
u8
>&
buffer
)
const
override
;
private:
...
...
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