[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:
Gliniak 2023-10-21 18:28:14 +02:00
parent a9dd1c89bc
commit 91c67b9af2
1 changed files with 2 additions and 2 deletions

View File

@ -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();