mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 21:26:12 +00:00
Add string messages to returned result codes to display to user
* Most of the main entry points that can fail with relevant reasons now has a way of specifying a message to return with it. This message can be displayed to the user to give more information or context about an error.
This commit is contained in:
@@ -83,9 +83,9 @@ CrashDialog::CrashDialog(PersistantConfig &cfg, QVariantMap crashReportJSON, QWi
|
||||
|
||||
ICaptureFile *cap = RENDERDOC_OpenCaptureFile();
|
||||
|
||||
ReplayStatus status = cap->OpenFile(capInfo.absoluteFilePath(), "", NULL);
|
||||
ResultDetails result = cap->OpenFile(capInfo.absoluteFilePath(), "", NULL);
|
||||
|
||||
if(status == ReplayStatus::Succeeded)
|
||||
if(result.OK())
|
||||
{
|
||||
Thumbnail thumb = cap->GetThumbnail(FileType::Raw, 320);
|
||||
QImage i = QImage(thumb.data.data(), (int)thumb.width, (int)thumb.height, QImage::Format_RGB888)
|
||||
|
||||
Reference in New Issue
Block a user