mirror of
				https://git.h3cjp.net/H3cJP/citra.git
				synced 2025-10-31 06:55:03 +00:00 
			
		
		
		
	yuzu: Create screenshot path before capture
Allows screenshots in cases where the screenshots path doesn't already exist.
This commit is contained in:
		
							parent
							
								
									a0379c2db5
								
							
						
					
					
						commit
						dcc0617cc2
					
				|  | @ -2490,6 +2490,11 @@ void GMainWindow::OnCaptureScreenshot() { | ||||||
|                            .arg(title_id, 16, 16, QLatin1Char{'0'}) |                            .arg(title_id, 16, 16, QLatin1Char{'0'}) | ||||||
|                            .arg(date); |                            .arg(date); | ||||||
| 
 | 
 | ||||||
|  |     if (!Common::FS::CreateDir(screenshot_path.toStdString())) { | ||||||
|  |         OnStartGame(); | ||||||
|  |         return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
|     if (UISettings::values.enable_screenshot_save_as) { |     if (UISettings::values.enable_screenshot_save_as) { | ||||||
|         filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, |         filename = QFileDialog::getSaveFileName(this, tr("Capture Screenshot"), filename, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue