@@ -155,38 +155,29 @@ void BBLauncher::WIPButton_isPressed() {
155
155
QMessageBox::warning (
156
156
this , " On hold" ,
157
157
" Work on trophy manager will be put on-hold until it's easier to dump trophy keys" );
158
- UpdateSettingsList ();
159
158
}
160
159
161
160
void BBLauncher::ShadSelectButton_isPressed () {
162
161
163
- std::string ShadLocString ;
162
+ QString ShadLoc ;
164
163
#if defined(__linux__)
165
- QString ShadLoc = QFileDialog::getOpenFileName (
164
+ ShadLoc = QFileDialog::getOpenFileName (
166
165
this ,
167
166
" Select ShadPS4 executable (ex. /usr/bin/shadps4, "
168
167
" Shadps4-qt.AppImage, etc.)" ,
169
168
QDir::homePath (),
170
169
" QT AppImage (Shadps4-qt.AppImage);;SDL AppImage (Shadps4-sdl.AppImage);;"
171
170
" non-AppImage (shadps4)" ,
172
171
0 , QFileDialog::DontUseNativeDialog);
173
- ShadLocString = ShadLoc.toStdString ();
174
- if (ShadLocString != " " )
175
- shadPs4Executable = std::filesystem::u8path (ShadLocString);
176
172
#elif defined(__APPLE__)
177
- QString ShadLoc =
178
- QFileDialog::getOpenFileName (this , " Select ShadPS4 executable (ex. shadps4.app)" ,
179
- QDir::homePath (), " App Bundle (shadps4.app)" );
180
- ShadLocString = ShadLoc.toStdString ();
181
- if (ShadLocString != " " )
182
- shadPs4Executable = std::filesystem::u8path (ShadLocString);
173
+ ShadLoc = QFileDialog::getOpenFileName (this , " Select ShadPS4 executable (ex. shadps4.app)" ,
174
+ QDir::homePath (), " App Bundle (shadps4.app)" );
183
175
#endif
184
176
185
- if (ShadLocString != " " ) {
186
- SaveConfigPath (" shadPath" , PathToU8 (shadPs4Executable));
187
- QString shadLabelString;
188
- PathToQString (shadLabelString, shadPs4Executable);
189
- ui->ShadLabel ->setText (shadLabelString);
177
+ if (ShadLoc != " " ) {
178
+ shadPs4Executable = PathFromQString (ShadLoc);
179
+ SaveConfigPath (" shadPath" , shadPs4Executable);
180
+ ui->ShadLabel ->setText (ShadLoc);
190
181
}
191
182
}
192
183
0 commit comments