We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2ceac commit 040dc67Copy full SHA for 040dc67
Library/Includes/Framework/ProcessPlus.hpp
@@ -137,6 +137,7 @@ namespace CTRPluginFramework {
137
* \return The value of the address
138
*/
139
static u16 Read16(u32 address);
140
+ static u16 Read16(u32 pointer, u32 offset);
141
142
/**
143
* \brief Safely read 32 bits
Library/Sources/Framework/ProcessPlus.cpp
@@ -203,6 +203,12 @@ namespace CTRPluginFramework {
203
return *(volatile unsigned short*)(address);
204
}
205
206
+ u16 ProcessPlus::Read16(u32 pointer, u32 offset) {
207
+ u16 data;
208
+ Process::Read16(pointer, data);
209
+ return *(volatile unsigned short*)(data + offset);
210
+ }
211
+
212
u32 ProcessPlus::Read32(u32 address) {
213
return *(volatile unsigned int*)(address);
214
0 commit comments