[Emulator] Separate host and guest cache directories
Since now modules and shaders are stored within cache_host directory. This will require coping modules and shaders directories from previous directory to new one
This commit is contained in:
@@ -422,7 +422,7 @@ bool EmulatorApp::OnInitialize() {
|
|||||||
|
|
||||||
std::filesystem::path cache_root = cvars::cache_root;
|
std::filesystem::path cache_root = cvars::cache_root;
|
||||||
if (cache_root.empty()) {
|
if (cache_root.empty()) {
|
||||||
cache_root = storage_root / "cache";
|
cache_root = storage_root / "cache_host";
|
||||||
// TODO(Triang3l): Point to the app's external storage "cache" directory on
|
// TODO(Triang3l): Point to the app's external storage "cache" directory on
|
||||||
// Android.
|
// Android.
|
||||||
} else {
|
} else {
|
||||||
@@ -433,7 +433,7 @@ bool EmulatorApp::OnInitialize() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cache_root = std::filesystem::absolute(cache_root);
|
cache_root = std::filesystem::absolute(cache_root);
|
||||||
XELOGI("Cache root: {}", xe::path_to_utf8(cache_root));
|
XELOGI("Host cache root: {}", xe::path_to_utf8(cache_root));
|
||||||
|
|
||||||
if (cvars::discord) {
|
if (cvars::discord) {
|
||||||
discord::DiscordPresence::Initialize();
|
discord::DiscordPresence::Initialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user