mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2025-02-10 00:22:44 +00:00
Set the correct default DSi NAND option
- I wasn't stripping the sysdir prefix before
This commit is contained in:
parent
534738fc57
commit
b302017c0b
@ -889,15 +889,15 @@ bool MelonDsDs::RegisterCoreOptions() noexcept {
|
||||
memset(dsiNandPathOption->values, 0, sizeof(dsiNandPathOption->values));
|
||||
int length = std::min((int)dsiNandPaths.size(), (int)RETRO_NUM_CORE_OPTION_VALUES_MAX - 1);
|
||||
for (int i = 0; i < length; ++i) {
|
||||
retro::debug("Found a DSi NAND image at \"{}\"", dsiNandPaths[i]);
|
||||
string_view path = dsiNandPaths[i];
|
||||
path.remove_prefix(sysdir->size() + 1);
|
||||
retro::debug("Found a DSi NAND image at \"{}\", presenting it in the options as \"{}\"", dsiNandPaths[i], path);
|
||||
retro_assert(!path_is_absolute(path.data()));
|
||||
dsiNandPathOption->values[i].value = path.data();
|
||||
dsiNandPathOption->values[i].label = nullptr;
|
||||
}
|
||||
|
||||
dsiNandPathOption->default_value = dsiNandPaths[0].c_str();
|
||||
dsiNandPathOption->default_value = dsiNandPathOption->values[0].value;
|
||||
}
|
||||
|
||||
if (!firmware.empty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user