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
f9ba5a7e
There was an error fetching the commit references. Please try again later.
Commit
f9ba5a7e
authored
7 years ago
by
David Marcec
Browse files
Options
Downloads
Patches
Plain Diff
Changed .istorage to .romfs
parent
35517ca9
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/deconstructed_rom_directory.cpp
+4
-4
4 additions, 4 deletions
src/core/loader/deconstructed_rom_directory.cpp
src/core/loader/deconstructed_rom_directory.h
+1
-1
1 addition, 1 deletion
src/core/loader/deconstructed_rom_directory.h
with
5 additions
and
5 deletions
src/core/loader/deconstructed_rom_directory.cpp
+
4
−
4
View file @
f9ba5a7e
...
...
@@ -29,7 +29,7 @@ static std::string FindRomFS(const std::string& directory) {
// Verify extension
const
std
::
string
extension
=
physical_name
.
substr
(
physical_name
.
find_last_of
(
"."
)
+
1
);
if
(
Common
::
ToLower
(
extension
)
!=
"
istorage
"
)
{
if
(
Common
::
ToLower
(
extension
)
!=
"
romfs
"
)
{
return
true
;
}
...
...
@@ -38,7 +38,7 @@ static std::string FindRomFS(const std::string& directory) {
return
false
;
};
// Search the specified directory recursively, looking for the first .
istorage
file, which will
// Search the specified directory recursively, looking for the first .
romfs
file, which will
// be used for the RomFS
FileUtil
::
ForeachDirectoryEntry
(
nullptr
,
directory
,
callback
);
...
...
@@ -128,10 +128,10 @@ ResultStatus AppLoader_DeconstructedRomDirectory::Load(
Kernel
::
ResourceLimit
::
GetForCategory
(
Kernel
::
ResourceLimitCategory
::
APPLICATION
);
process
->
Run
(
Memory
::
PROCESS_IMAGE_VADDR
,
48
,
Kernel
::
DEFAULT_STACK_SIZE
);
// Find the RomFS by searching for a ".
istorage
" file in this directory
// Find the RomFS by searching for a ".
romfs
" file in this directory
filepath_romfs
=
FindRomFS
(
directory
);
// Register the RomFS if a ".
istorage
" file was found
// Register the RomFS if a ".
romfs
" file was found
if
(
!
filepath_romfs
.
empty
())
{
Service
::
FileSystem
::
RegisterFileSystem
(
std
::
make_unique
<
FileSys
::
RomFS_Factory
>
(
*
this
),
Service
::
FileSystem
::
Type
::
RomFS
);
...
...
This diff is collapsed.
Click to expand it.
src/core/loader/deconstructed_rom_directory.h
+
1
−
1
View file @
f9ba5a7e
...
...
@@ -15,7 +15,7 @@ namespace Loader {
* This class loads a "deconstructed ROM directory", which are the typical format we see for Switch
* game dumps. The path should be a "main" NSO, which must be in a directory that contains the other
* standard ExeFS NSOs (e.g. rtld, sdk, etc.). It will automatically find and load these.
* Furthermore, it will look for the first .
istorage
file (optionally) and use this for the RomFS.
* Furthermore, it will look for the first .
romfs
file (optionally) and use this for the RomFS.
*/
class
AppLoader_DeconstructedRomDirectory
final
:
public
AppLoader
{
public:
...
...
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