mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Save captures to /sdcard, so that APK can replay it immediately.
This commit is contained in:
@@ -58,17 +58,12 @@ namespace FileIO
|
||||
{
|
||||
const char *GetTempRootPath()
|
||||
{
|
||||
static string ret;
|
||||
GetExecutableFilename(ret);
|
||||
|
||||
// This folder is writable even if the APK does not have manifest write permissions.
|
||||
ret = "/data/data/" + ret + "/files";
|
||||
return ret.c_str();
|
||||
return "/sdcard";
|
||||
}
|
||||
|
||||
string GetAppFolderFilename(const string &filename)
|
||||
{
|
||||
return GetTempRootPath() + filename;
|
||||
return GetTempRootPath() + string("/") + filename;
|
||||
}
|
||||
|
||||
// For RenderDocCmd.apk, this returns "org.renderdoc.renderdoccmd"
|
||||
|
||||
Reference in New Issue
Block a user