Shared Database services: Difference between revisions
No edit summary |
No edit summary |
||
Line 216: | Line 216: | ||
== NotifyAppletEvent == | == NotifyAppletEvent == | ||
Takes an input u8 | Takes an input u8 [[#AppletEvent]], an u8 [[Applet_Manager_services#AppletId|AppletId]], an u8 [[Filesystem_services#StorageId|StorageId]], an u8 '''event_xE''', an u32 '''event_x8''', and an u64 '''titleID'''. Returns no output. | ||
When '''event_xE''' is 2 this will immediately return 0. | When '''event_xE''' is 2 this will immediately return 0. | ||
Line 222: | Line 222: | ||
Logs a new [[#PlayEvent]] with the following data: | Logs a new [[#PlayEvent]] with the following data: | ||
* Clears the 0x10-bytes at +0x10. | * Clears the 0x10-bytes at +0x10. | ||
* u8 +0xF = | * u8 +0xF = [[#AppletEvent]]. | ||
* Sets the 3 timestamps. | * Sets the 3 timestamps. | ||
* Converts '''titleID''' and writes it to +0x0. | * Converts '''titleID''' and writes it to +0x0. | ||
* u32 +0x8 = '''event_x8'''. | * u32 +0x8 = '''event_x8'''. | ||
* u8 +0xC = | * u8 +0xC = [[Applet_Manager_services#AppletId|AppletId]], u8 +0xD = [[Filesystem_services#StorageId|StorageId]], and u8 +0xE = '''event_xE'''. | ||
After the initial logging, additional code runs with some of the above input params. | After the initial logging, additional code runs with some of the above input params. | ||
Line 253: | Line 253: | ||
== Cmd8 == | == Cmd8 == | ||
Takes an input u8 | Takes an input u8 [[#AppletEvent]], an u8 '''event_x9''', an u8 [[Applet_Manager_services#AppletId|AppletId]], an u8 [[Filesystem_services#StorageId|StorageId]], an u8 '''event_xE''', and an u64 '''titleID'''. Returns no output. | ||
This is similar to [[#NotifyAppletEvent]]. | This is similar to [[#NotifyAppletEvent]]. | ||
Line 261: | Line 261: | ||
Logs a new [[#PlayEvent]] with the following data: | Logs a new [[#PlayEvent]] with the following data: | ||
* Clears the 0x20-bytes at +0x0. | * Clears the 0x20-bytes at +0x0. | ||
* u8 +0xF = | * u8 +0xF = [[#AppletEvent]]. | ||
* Sets the 3 timestamps. | * Sets the 3 timestamps. | ||
* Converts '''titleID''' and writes it to +0x0. | * Converts '''titleID''' and writes it to +0x0. | ||
* u8 +0x9 = '''event_x9'''. | * u8 +0x9 = '''event_x9'''. | ||
* u8 +0x8 = 1. | * u8 +0x8 = 1. | ||
* u8 +0xC = | * u8 +0xC = [[Applet_Manager_services#AppletId|AppletId]], u8 +0xD = [[Filesystem_services#StorageId|StorageId]], and u8 +0xE = '''event_xE'''. | ||
After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that the value passed for '''event_x8''' is value 0 here. | After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that the value passed for '''event_x8''' is value 0 here. | ||
== Cmd9 == | == Cmd9 == | ||
Takes an input u8 | Takes an input u8 [[#AppletEvent]], an u8 [[Applet_Manager_services#AppletId|AppletId]], an u8 [[Filesystem_services#StorageId|StorageId]], an 0x20-byte struct, an u8 bool flag, an u8 '''event_xE''', an u32 '''event_x8''', and an u64 '''titleID'''. Returns no output. | ||
This is identical to [[#NotifyAppletEvent]] except for the additional struct/flag params. | This is identical to [[#NotifyAppletEvent]] except for the additional struct/flag params. | ||
Line 279: | Line 279: | ||
Logs a new [[#PlayEvent]] with the following data: | Logs a new [[#PlayEvent]] with the following data: | ||
* Clears the 0x10-bytes at +0x10. | * Clears the 0x10-bytes at +0x10. | ||
* u8 +0xF = | * u8 +0xF = [[#AppletEvent]]. | ||
* Sets the 3 timestamps. | * Sets the 3 timestamps. | ||
* Converts '''titleID''' and writes it to +0x0. | * Converts '''titleID''' and writes it to +0x0. | ||
* u32 +0x8 = '''event_x8''' | * u32 +0x8 = '''event_x8''' | ||
* u8 +0xC = | * u8 +0xC = [[Applet_Manager_services#AppletId|AppletId]], u8 +0xD = [[Filesystem_services#StorageId|StorageId]], and u8 +0xE = '''event_xE'''. | ||
After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that when the u8 bool flag is set the input struct is used with this. | After the initial logging, additional code runs with some of the above input params. This is handled the same as [[#NotifyAppletEvent]], except that when the u8 bool flag is set the input struct is used with this. |