Skip to content

Commit

Permalink
* fix default for audio volume
Browse files Browse the repository at this point in the history
* add default bools for battery settings
  • Loading branch information
Arisotura committed Jun 17, 2024
1 parent eb2bd73 commit 626d237
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/frontend/qt_sdl/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DefaultList<int> DefaultInts =
{"Instance*.Firmware.BirthdayDay", 1},
{"MP.AudioMode", 1},
{"MP.RecvTimeout", 25},
{"Audio.Volume", 256},
{"Instance*.Audio.Volume", 256},
{"Mic.InputType", 1},
{"Mouse.HideSeconds", 5},
{"Instance*.DSi.Battery.Level", 0xF},
Expand Down Expand Up @@ -99,6 +99,8 @@ DefaultList<bool> DefaultBools =
{"LimitFPS", true},
{"Window*.ShowOSD", true},
{"Emu.DirectBoot", true},
{"Instance*.DS.Battery.LevelOkay", true},
{"Instance*.DSi.Battery.Charging", true},
#ifdef JIT_ENABLED
{"JIT.BranchOptimisations", true},
{"JIT.LiteralOptimisations", true},
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/qt_sdl/EmuInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ std::string EmuInstance::getEffectiveFirmwareSavePath()
// OR the path to the wi-fi settings.
void EmuInstance::initFirmwareSaveManager() noexcept
{
firmwareSave = std::make_unique<SaveManager>(getEffectiveFirmwareSavePath());
firmwareSave = std::make_unique<SaveManager>(getEffectiveFirmwareSavePath() + instanceFileSuffix());
}

std::string EmuInstance::getSavestateName(int slot)
Expand Down
1 change: 1 addition & 0 deletions src/frontend/qt_sdl/Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ void WriteGBASave(const u8* savedata, u32 savelen, u32 writeoffset, u32 writelen
void WriteFirmware(const Firmware& firmware, u32 writeoffset, u32 writelen, void* userdata)
{
EmuInstance* inst = (EmuInstance*)userdata;
printf("saving firmware for instance %d\n", inst->getInstanceID());
if (!inst->firmwareSave)
return;

Expand Down

0 comments on commit 626d237

Please sign in to comment.