mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-08-07 07:59:27 +02:00
fs.mitm: Only create storage interface when needed.
This commit is contained in:
parent
3495f3b319
commit
ded8dd9d09
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include "mitm_query_service.hpp"
|
#include "mitm_query_service.hpp"
|
||||||
|
|
||||||
|
#define RESULT_FORWARD_TO_SESSION 0xCAFEFC
|
||||||
|
|
||||||
class MitmSession final : public ServiceSession {
|
class MitmSession final : public ServiceSession {
|
||||||
private:
|
private:
|
||||||
/* This will be for the actual session. */
|
/* This will be for the actual session. */
|
||||||
@ -149,7 +151,7 @@ class MitmSession final : public ServiceSession {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found_entry) {
|
if (!found_entry || rc == RESULT_FORWARD_TO_SESSION) {
|
||||||
memcpy(armGetTls(), this->backup_tls, sizeof(this->backup_tls));
|
memcpy(armGetTls(), this->backup_tls, sizeof(this->backup_tls));
|
||||||
rc = ForwardRequest(ctx);
|
rc = ForwardRequest(ctx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user