mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2025-02-25 16:40:50 +00:00
Ensure that the path defined in the core options is relative to the system directory
This commit is contained in:
parent
5a9ceaaca9
commit
488402becb
@ -892,6 +892,7 @@ bool MelonDsDs::RegisterCoreOptions() noexcept {
|
|||||||
retro::debug("Found a DSi NAND image at \"{}\"", dsiNandPaths[i]);
|
retro::debug("Found a DSi NAND image at \"{}\"", dsiNandPaths[i]);
|
||||||
string_view path = dsiNandPaths[i];
|
string_view path = dsiNandPaths[i];
|
||||||
path.remove_prefix(sysdir->size() + 1);
|
path.remove_prefix(sysdir->size() + 1);
|
||||||
|
retro_assert(!path_is_absolute(path.data()));
|
||||||
dsiNandPathOption->values[i].value = path.data();
|
dsiNandPathOption->values[i].value = path.data();
|
||||||
dsiNandPathOption->values[i].label = nullptr;
|
dsiNandPathOption->values[i].label = nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user