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
e2971081
There was an error fetching the commit references. Please try again later.
Commit
e2971081
authored
7 years ago
by
shinyquagsire23
Browse files
Options
Downloads
Patches
Plain Diff
file_sys: Style tweaks
Asdf
parent
487f8bc0
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/file_sys/program_metadata.cpp
+0
-3
0 additions, 3 deletions
src/core/file_sys/program_metadata.cpp
src/core/file_sys/program_metadata.h
+5
-8
5 additions, 8 deletions
src/core/file_sys/program_metadata.h
with
5 additions
and
11 deletions
src/core/file_sys/program_metadata.cpp
+
0
−
3
View file @
e2971081
...
@@ -8,9 +8,6 @@
...
@@ -8,9 +8,6 @@
#include
"core/file_sys/program_metadata.h"
#include
"core/file_sys/program_metadata.h"
#include
"core/loader/loader.h"
#include
"core/loader/loader.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// FileSys namespace
namespace
FileSys
{
namespace
FileSys
{
Loader
::
ResultStatus
ProgramMetadata
::
Load
(
const
std
::
string
&
file_path
)
{
Loader
::
ResultStatus
ProgramMetadata
::
Load
(
const
std
::
string
&
file_path
)
{
...
...
This diff is collapsed.
Click to expand it.
src/core/file_sys/program_metadata.h
+
5
−
8
View file @
e2971081
...
@@ -15,9 +15,6 @@ namespace Loader {
...
@@ -15,9 +15,6 @@ namespace Loader {
enum
class
ResultStatus
;
enum
class
ResultStatus
;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// FileSys namespace
namespace
FileSys
{
namespace
FileSys
{
enum
class
ProgramAddressSpaceType
:
u8
{
enum
class
ProgramAddressSpaceType
:
u8
{
...
@@ -100,7 +97,7 @@ private:
...
@@ -100,7 +97,7 @@ private:
u32_le
sac_size
;
u32_le
sac_size
;
u32_le
kac_offset
;
u32_le
kac_offset
;
u32_le
kac_size
;
u32_le
kac_size
;
std
::
array
<
u8
,
0x8
>
padding
;
INSERT_PADDING_BYTES
(
0x8
)
;
};
};
static_assert
(
sizeof
(
AcidHeader
)
==
0x240
,
"ACID header structure size is wrong"
);
static_assert
(
sizeof
(
AcidHeader
)
==
0x240
,
"ACID header structure size is wrong"
);
...
@@ -109,14 +106,14 @@ private:
...
@@ -109,14 +106,14 @@ private:
std
::
array
<
char
,
4
>
magic
;
std
::
array
<
char
,
4
>
magic
;
std
::
array
<
u8
,
0xC
>
reserved
;
std
::
array
<
u8
,
0xC
>
reserved
;
u64_le
title_id
;
u64_le
title_id
;
std
::
array
<
u8
,
0x8
>
padding
;
INSERT_PADDING_BYTES
(
0x8
)
;
u32_le
fah_offset
;
u32_le
fah_offset
;
u32_le
fah_size
;
u32_le
fah_size
;
u32_le
sac_offset
;
u32_le
sac_offset
;
u32_le
sac_size
;
u32_le
sac_size
;
u32_le
kac_offset
;
u32_le
kac_offset
;
u32_le
kac_size
;
u32_le
kac_size
;
std
::
array
<
u8
,
0x8
>
padding_2
;
INSERT_PADDING_BYTES
(
0x8
)
;
};
};
static_assert
(
sizeof
(
AciHeader
)
==
0x40
,
"ACI0 header structure size is wrong"
);
static_assert
(
sizeof
(
AciHeader
)
==
0x40
,
"ACI0 header structure size is wrong"
);
...
@@ -125,7 +122,7 @@ private:
...
@@ -125,7 +122,7 @@ private:
struct
FileAccessControl
{
struct
FileAccessControl
{
u8
version
;
u8
version
;
std
::
array
<
u8
,
3
>
padding
;
INSERT_PADDING_BYTES
(
3
)
;
u64_le
permissions
;
u64_le
permissions
;
std
::
array
<
u8
,
0x20
>
unknown
;
std
::
array
<
u8
,
0x20
>
unknown
;
};
};
...
@@ -134,7 +131,7 @@ private:
...
@@ -134,7 +131,7 @@ private:
struct
FileAccessHeader
{
struct
FileAccessHeader
{
u8
version
;
u8
version
;
std
::
array
<
u8
,
3
>
padding
;
INSERT_PADDING_BYTES
(
3
)
;
u64_le
permissions
;
u64_le
permissions
;
u32_le
unk_offset
;
u32_le
unk_offset
;
u32_le
unk_size
;
u32_le
unk_size
;
...
...
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