Line 46: |
Line 46: |
| | | |
| == LoadPlugin == | | == LoadPlugin == |
− | Takes an input u64, a handle, two type-0x5 input buffers, no output. | + | Takes an input u64 tmem_size, a TransferMemory handle, two type-0x5 input buffers, no output. |
| + | |
| + | The first buffer contains the [[NRR]], the second buffer contains the [[NRO]]. |
| + | |
| + | The tmem is temporarily mapped & cleared, when any errors this will also be done again. |
| + | |
| + | The input NRR is used with [[RO_services#RegisterModuleInfo2|RegisterModuleInfo2]], then the NRO is used with [[RO_services#LoadModule|LoadModule]] (these are copied into another buffer with the required alignment). Afterwards, various symbol lookup is done with the loaded module. |
| | | |
| == GetCodeAddress == | | == GetCodeAddress == |