mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
Fix indentation + delete contents
This commit is contained in:
@ -993,7 +993,8 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
|||||||
QMenu* menu = menubar->addMenu("File");
|
QMenu* menu = menubar->addMenu("File");
|
||||||
|
|
||||||
actOpenROM = menu->addAction("Open ROM...");
|
actOpenROM = menu->addAction("Open ROM...");
|
||||||
connect(actOpenROM, &QAction::triggered, this, &MainWindow::onOpenFile);
|
connect(actOpenROM, &QAction::triggered, this, &MainWindow::
|
||||||
|
);
|
||||||
|
|
||||||
//actBootFirmware = menu->addAction("Launch DS menu");
|
//actBootFirmware = menu->addAction("Launch DS menu");
|
||||||
actBootFirmware = menu->addAction("Boot firmware");
|
actBootFirmware = menu->addAction("Boot firmware");
|
||||||
@ -1424,7 +1425,7 @@ std::string extractROM(char* zipName, std::string zipDir){
|
|||||||
|
|
||||||
//Write the file (binary mode)
|
//Write the file (binary mode)
|
||||||
std::ofstream(zipDir + "/" + st.name, std::ofstream::binary).write(contents, st.size);
|
std::ofstream(zipDir + "/" + st.name, std::ofstream::binary).write(contents, st.size);
|
||||||
|
delete[] contents;
|
||||||
return zipDir + "/" + st.name;
|
return zipDir + "/" + st.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user