mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Use rdc types instead of Qt containers in public QRenderDoc interface
* This is to support python bindings - the pyside implementation of QVector, QString, etc is not available to SWIG, so SWIG treates these all as opaque types. * Rather than trying to set up bindings that work for rdcarray and QList/QVector, or implementing separate bindings, we instead just say that the public interface must use the rdc types. In most cases they seamlessly convert to/from Qt types anyway. * In a couple of places we use an array of pairs instead of a map. In future we probably want an rdcdict or rdcmap with proper dict bindings in python.
This commit is contained in:
@@ -57,7 +57,7 @@ RemoteHost::operator QVariant() const
|
||||
void RemoteHost::CheckStatus()
|
||||
{
|
||||
// special case - this is the local context
|
||||
if(Hostname == lit("localhost"))
|
||||
if(Hostname == "localhost")
|
||||
{
|
||||
ServerRunning = false;
|
||||
VersionMismatch = Busy = false;
|
||||
@@ -65,7 +65,7 @@ void RemoteHost::CheckStatus()
|
||||
}
|
||||
|
||||
IRemoteServer *rend = NULL;
|
||||
ReplayStatus status = RENDERDOC_CreateRemoteServerConnection(Hostname.toUtf8().data(), 0, &rend);
|
||||
ReplayStatus status = RENDERDOC_CreateRemoteServerConnection(Hostname.c_str(), 0, &rend);
|
||||
|
||||
if(status == ReplayStatus::Succeeded)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ void RemoteHost::Launch()
|
||||
|
||||
if(IsHostADB())
|
||||
{
|
||||
RENDERDOC_StartAndroidRemoteServer(Hostname.toUtf8().data());
|
||||
RENDERDOC_StartAndroidRemoteServer(Hostname.c_str());
|
||||
QThread::msleep(WAIT_TIME);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user