mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 05:34:11 -04:00
Loader: Automatically unload NRRs on service close.
This commit is contained in:
parent
e7aa5c246b
commit
2e7b6de195
3 changed files with 38 additions and 14 deletions
|
@ -18,6 +18,12 @@ class RelocatableObjectsService : IServiceObject {
|
|||
bool has_initialized;
|
||||
public:
|
||||
RelocatableObjectsService() : process_handle(0), process_id(U64_MAX), has_initialized(false) { }
|
||||
~RelocatableObjectsService() {
|
||||
Registration::CloseRoService(this, this->process_handle);
|
||||
if (this->has_initialized) {
|
||||
svcCloseHandle(this->process_handle);
|
||||
}
|
||||
}
|
||||
virtual Result dispatch(IpcParsedCommand &r, IpcCommand &out_c, u64 cmd_id, u8 *pointer_buffer, size_t pointer_buffer_size);
|
||||
virtual Result handle_deferred() {
|
||||
/* This service will never defer. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue