mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Change API enums to enum class, remove now redundant prefixing
* This gives a little nicer syntax, a bit better type safety, and also reflects better for SWIG bindings. Overall it's a minor change but better. * We don't update the C# UI at all, since it's soon to be removed and not worth the effort/code churn. * For now so we're ABI compatible with C#, all enums are uint32_t, but that is an obvious optimisation in future to reduce struct packing. * We avoid 'None' as an enum value, because it's a reserved word in python so will cause problems generating bindings.
This commit is contained in:
@@ -63,21 +63,20 @@ void RemoteHost::CheckStatus()
|
||||
}
|
||||
|
||||
IRemoteServer *rend = NULL;
|
||||
ReplayCreateStatus status =
|
||||
RENDERDOC_CreateRemoteServerConnection(Hostname.toUtf8().data(), 0, &rend);
|
||||
ReplayStatus status = RENDERDOC_CreateRemoteServerConnection(Hostname.toUtf8().data(), 0, &rend);
|
||||
|
||||
if(status == eReplayCreate_Success)
|
||||
if(status == ReplayStatus::Succeeded)
|
||||
{
|
||||
ServerRunning = true;
|
||||
VersionMismatch = Busy = false;
|
||||
}
|
||||
else if(status == eReplayCreate_NetworkRemoteBusy)
|
||||
else if(status == ReplayStatus::NetworkRemoteBusy)
|
||||
{
|
||||
ServerRunning = true;
|
||||
Busy = true;
|
||||
VersionMismatch = false;
|
||||
}
|
||||
else if(status == eReplayCreate_NetworkVersionMismatch)
|
||||
else if(status == ReplayStatus::NetworkVersionMismatch)
|
||||
{
|
||||
ServerRunning = true;
|
||||
Busy = true;
|
||||
|
||||
Reference in New Issue
Block a user