mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-09 04:10:05 +00:00
Update archive_artic.cpp
dont clear cache
This commit is contained in:
parent
71eca05af1
commit
bcff2765aa
1 changed files with 5 additions and 2 deletions
|
@ -41,9 +41,11 @@ Result ArticArchive::RespResult(const std::optional<Network::ArticBase::Client::
|
||||||
}
|
}
|
||||||
|
|
||||||
ArticArchive::~ArticArchive() {
|
ArticArchive::~ArticArchive() {
|
||||||
|
/*
|
||||||
if (clear_cache_on_close) {
|
if (clear_cache_on_close) {
|
||||||
cache_provider->ClearAllCache();
|
cache_provider->ClearAllCache();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (archive_handle != -1) {
|
if (archive_handle != -1) {
|
||||||
auto req = client->NewRequest("FSUSER_CloseArchive");
|
auto req = client->NewRequest("FSUSER_CloseArchive");
|
||||||
req.AddParameterS64(archive_handle);
|
req.AddParameterS64(archive_handle);
|
||||||
|
@ -57,7 +59,7 @@ ArticArchive::~ArticArchive() {
|
||||||
ResultVal<std::unique_ptr<ArchiveBackend>> ArticArchive::Open(
|
ResultVal<std::unique_ptr<ArchiveBackend>> ArticArchive::Open(
|
||||||
std::shared_ptr<Network::ArticBase::Client>& client, Service::FS::ArchiveIdCode archive_id,
|
std::shared_ptr<Network::ArticBase::Client>& client, Service::FS::ArchiveIdCode archive_id,
|
||||||
const Path& path, Core::PerfStats::PerfArticEventBits report_artic_event,
|
const Path& path, Core::PerfStats::PerfArticEventBits report_artic_event,
|
||||||
ArticCacheProvider& cache_provider, bool clear_cache_on_close) {
|
ArticCacheProvider& cache_provider/*, bool clear_cache_on_close*/) {
|
||||||
|
|
||||||
auto req = client->NewRequest("FSUSER_OpenArchive");
|
auto req = client->NewRequest("FSUSER_OpenArchive");
|
||||||
|
|
||||||
|
@ -83,10 +85,11 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArticArchive::Open(
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArticArchive::Close() {
|
void ArticArchive::Close() {
|
||||||
|
/*
|
||||||
if (clear_cache_on_close) {
|
if (clear_cache_on_close) {
|
||||||
cache_provider->ClearAllCache();
|
cache_provider->ClearAllCache();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
auto req = client->NewRequest("FSUSER_CloseArchive");
|
auto req = client->NewRequest("FSUSER_CloseArchive");
|
||||||
req.AddParameterS64(archive_handle);
|
req.AddParameterS64(archive_handle);
|
||||||
if (RespResult(client->Send(req)).IsSuccess()) {
|
if (RespResult(client->Send(req)).IsSuccess()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue