update gui

This commit is contained in:
Logan McNaughton
2022-04-03 09:43:19 -06:00
parent 02004ff0cf
commit ee252cb1d5
5 changed files with 18 additions and 17 deletions
+4 -4
View File
@@ -168,10 +168,10 @@ m64p_error loadROM(QString filename)
if (filename.endsWith(".7z") || filename.endsWith(".zip") || filename.endsWith(".ZIP"))
{
QProcess process;
QString command = "7za e -so \"";
command += filename;
command += "\" *64";
process.start(command);
process.setProgram("7za");
QStringList arguments = { "e", "-so", filename, "*64" };
process.setArguments(arguments);
process.start();
process.waitForFinished(-1);
QByteArray data = process.readAllStandardOutput();
romlength = data.size();