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
0769aa59
There was an error fetching the commit references. Please try again later.
Commit
0769aa59
authored
6 years ago
by
Lioncash
Browse files
Options
Downloads
Patches
Plain Diff
loader/nca: Remove unnecessary includes and member variables
parent
c8e3f98c
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/loader/nca.cpp
+3
-11
3 additions, 11 deletions
src/core/loader/nca.cpp
src/core/loader/nca.h
+8
-9
8 additions, 9 deletions
src/core/loader/nca.h
with
11 additions
and
20 deletions
src/core/loader/nca.cpp
+
3
−
11
View file @
0769aa59
...
...
@@ -3,28 +3,22 @@
// Refer to the license.txt file included.
#include
<utility>
#include
<vector>
#include
"common/file_util.h"
#include
"common/logging/log.h"
#include
"common/string_util.h"
#include
"common/swap.h"
#include
"core/core.h"
#include
"core/file_sys/content_archive.h"
#include
"core/file_sys/program_metadata.h"
#include
"core/gdbstub/gdbstub.h"
#include
"core/hle/kernel/process.h"
#include
"core/hle/kernel/resource_limit.h"
#include
"core/hle/service/filesystem/filesystem.h"
#include
"core/loader/deconstructed_rom_directory.h"
#include
"core/loader/nca.h"
#include
"core/loader/nso.h"
#include
"core/memory.h"
namespace
Loader
{
AppLoader_NCA
::
AppLoader_NCA
(
FileSys
::
VirtualFile
file_
)
:
AppLoader
(
std
::
move
(
file_
)),
nca
(
std
::
make_unique
<
FileSys
::
NCA
>
(
file
))
{}
AppLoader_NCA
::~
AppLoader_NCA
()
=
default
;
FileType
AppLoader_NCA
::
IdentifyType
(
const
FileSys
::
VirtualFile
&
file
)
{
FileSys
::
NCA
nca
(
file
);
...
...
@@ -83,6 +77,4 @@ ResultStatus AppLoader_NCA::ReadProgramId(u64& out_program_id) {
return
ResultStatus
::
Success
;
}
AppLoader_NCA
::~
AppLoader_NCA
()
=
default
;
}
// namespace Loader
This diff is collapsed.
Click to expand it.
src/core/loader/nca.h
+
8
−
9
View file @
0769aa59
...
...
@@ -4,20 +4,24 @@
#pragma once
#include
<string>
#include
"common/common_types.h"
#include
"core/file_sys/content_archive.h"
#include
"core/file_sys/program_metadata.h"
#include
"core/file_sys/vfs.h"
#include
"core/hle/kernel/object.h"
#include
"core/loader/loader.h"
#include
"deconstructed_rom_directory.h"
namespace
FileSys
{
class
NCA
;
}
namespace
Loader
{
class
AppLoader_DeconstructedRomDirectory
;
/// Loads an NCA file
class
AppLoader_NCA
final
:
public
AppLoader
{
public:
explicit
AppLoader_NCA
(
FileSys
::
VirtualFile
file
);
~
AppLoader_NCA
()
override
;
/**
* Returns the type of the file
...
...
@@ -35,12 +39,7 @@ public:
ResultStatus
ReadRomFS
(
FileSys
::
VirtualFile
&
dir
)
override
;
ResultStatus
ReadProgramId
(
u64
&
out_program_id
)
override
;
~
AppLoader_NCA
();
private
:
FileSys
::
ProgramMetadata
metadata
;
FileSys
::
NCAHeader
header
;
std
::
unique_ptr
<
FileSys
::
NCA
>
nca
;
std
::
unique_ptr
<
AppLoader_DeconstructedRomDirectory
>
directory_loader
;
};
...
...
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