mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-03 21:30:59 +00:00
Add configuration system for core renderdoc module
* This allows persistent config storage and registering tweak variables that works independent of the UI's configuration. * Config vars can be debug only, which means they will be compiled out in stable version releases. This allows for debug-logging tweaks that are available in all builds (including nightly builds) for diagnostic purposes, but have zero overhead in stable releases. * Variables have a loose hierarchy defined with _ or . to separate nodes.
This commit is contained in:
@@ -24,9 +24,18 @@
|
||||
|
||||
#include "common/formatting.h"
|
||||
#include "core/core.h"
|
||||
#include "core/settings.h"
|
||||
#include "strings/string_utils.h"
|
||||
#include "android_utils.h"
|
||||
|
||||
RDOC_CONFIG(rdcstr, Android_SDKDirPath, "",
|
||||
"The location of the root of the Android SDK. This path "
|
||||
"should contain folders such as build-tools and platform-tools.");
|
||||
|
||||
RDOC_CONFIG(rdcstr, Android_JDKDirPath, "",
|
||||
"The location of the root of the Java JDK. This path "
|
||||
"should contain folders such as bin and lib.");
|
||||
|
||||
namespace Android
|
||||
{
|
||||
static bool adbKillServer = false;
|
||||
@@ -178,8 +187,8 @@ rdcstr getToolPath(ToolDir subdir, const rdcstr &toolname, bool checkExist)
|
||||
// its client-server setup, so if we run our bundled adb that might be newer than the user's, they
|
||||
// will then get fighting back and forth when trying to run their own.
|
||||
|
||||
rdcstr sdk = RenderDoc::Inst().GetConfigSetting("androidSDKPath");
|
||||
rdcstr jdk = RenderDoc::Inst().GetConfigSetting("androidJDKPath");
|
||||
rdcstr sdk = Android_SDKDirPath;
|
||||
rdcstr jdk = Android_JDKDirPath;
|
||||
|
||||
ToolPathCache &cache = getCache();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user