mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
Custom path support (#1333)
also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
This commit is contained in:
@ -62,7 +62,7 @@ AudioSettingsDialog::AudioSettingsDialog(QWidget* parent) : QDialog(parent), ui(
|
||||
connect(grpMicMode, SIGNAL(buttonClicked(int)), this, SLOT(onChangeMicMode(int)));
|
||||
grpMicMode->button(Config::MicInputType)->setChecked(true);
|
||||
|
||||
ui->txtMicWavPath->setText(Config::MicWavPath);
|
||||
ui->txtMicWavPath->setText(QString::fromStdString(Config::MicWavPath));
|
||||
|
||||
bool iswav = (Config::MicInputType == 3);
|
||||
ui->txtMicWavPath->setEnabled(iswav);
|
||||
@ -77,7 +77,7 @@ AudioSettingsDialog::~AudioSettingsDialog()
|
||||
void AudioSettingsDialog::on_AudioSettingsDialog_accepted()
|
||||
{
|
||||
Config::MicInputType = grpMicMode->checkedId();
|
||||
strncpy(Config::MicWavPath, ui->txtMicWavPath->text().toStdString().c_str(), 1023); Config::MicWavPath[1023] = '\0';
|
||||
Config::MicWavPath = ui->txtMicWavPath->text().toStdString();
|
||||
Config::Save();
|
||||
|
||||
closeDlg();
|
||||
|
Reference in New Issue
Block a user