mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 00:39:03 +00:00
[ctrtool] Implemented --listromfs & --romfsdir to work directly with NCCH. Also implemented plainrgn extraction.
This commit is contained in:
@@ -120,6 +120,14 @@ filepath* settings_get_content_path(settings* usersettings)
|
||||
return 0;
|
||||
}
|
||||
|
||||
filepath* settings_get_plainrgn_path(settings* usersettings)
|
||||
{
|
||||
if (usersettings)
|
||||
return &usersettings->plainrgnpath;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int settings_get_mediaunit_size(settings* usersettings)
|
||||
{
|
||||
if (usersettings)
|
||||
@@ -255,6 +263,11 @@ void settings_set_romfs_dir_path(settings* usersettings, const char* path)
|
||||
filepath_set(&usersettings->romfsdirpath, path);
|
||||
}
|
||||
|
||||
void settings_set_plainrgn_path(settings* usersettings, const char* path)
|
||||
{
|
||||
filepath_set(&usersettings->plainrgnpath, path);
|
||||
}
|
||||
|
||||
void settings_set_mediaunit_size(settings* usersettings, unsigned int size)
|
||||
{
|
||||
usersettings->mediaunitsize = size;
|
||||
|
||||
Reference in New Issue
Block a user