Author Topic: SceShellSvc - some useful functions/music playback using SceShell  (Read 4510 times)

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Operations with SceTextClipboardStorage

SceTextClipboardStorage is cached memory block with usable size of 0x1FFD bytes allocated by SceShellSvc on startup.
Normally you would access this storage with clipboard sysmodule, however it can also be accessed directly with SceShellSvc functions.
This memory can be accesed from any part of the system and is managed by SceShell.
For example, you can write to it in one application and access written data from the other.
Or you can write to it in application and access written data from the plugin.

int SceShellUtil_C4810C56(const void* data, SceSize size) /* sceShellUtilTextClipboardWrite */

data - pointer to the data to write
size - size of data to write. Must not exceed 0x1FFD.

int SceShellUtil_1B186905(void* data, SceSize size, SceSize *textlen) /* sceShellUtilTextClipboardRead */

data - pointer to the buffer where the read data will be placed
size - size of data to read
[out] textlen - length actually read

unsigned int SceShellUtil_D0DDEDBC(void) /* sceShellUtilTextClipboardGetUsedSize */

This function returns size of the data that was written to clipboard with sceShellUtilTextClipboardWrite()

Music playback using SceShell

https://forum.devchroma.nl/index.php/topic,158.0.html

Information Bar control:

SceShellUtil_40DFAC6B(char* unk, char* text) //sceShellUtilSetTimeText, sets text in time display, UTF-16 (remains until reboot?)
SceShellUtil_96BBF91B(int mode) //sceShellUtilSetAirplaneIconMode, 0 to hide, 1 to show
SceShellUtil_8B69AD27(int mode) //sceShellUtilSetBtIconMode, 0 to hide, 1 to show

Some other ShellUtil functions:

SceShellUtil_B65B60CA(int mode) //sceShellUtilSetBGMMode, 0 to disable, 1 to enable
SceShellUtil_040997D6(int languageId) //sceShellUtilSetSystemLanguage, takes about 5 sec to apply
SceShellUtil_8F2F143D(void) //sceShellUtilRequestPowerOff
SceShellUtil_636544FB(void) //sceShellUtilRequestReboot

SceShellUtil_BB54D049(int safeModeType, int errorCode, int errorMessageType) //sceShellUtilRequestRebootWithError, shows "A serious error has occured" message before reboot

safeModeType - sets type of safemode to reboot into, 0 to reboot normally
errorCode - error code to display in the message
errorMessageType - ex. 0 "Contact technical support"
« Last Edit: June 02, 2020, 03:38:10 AM by Graphene »

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Re: SceShellSvc - some useful functions/music playback using SceShell
« Reply #1 on: May 12, 2020, 05:54:57 PM »
Added info related to audio playback via SceShell.

Offline Graphene

  • Useful Idiot
  • ***
  • Posts: 108
    • View Profile
Re: SceShellSvc - some useful functions/music playback using SceShell
« Reply #2 on: June 02, 2020, 03:16:04 AM »
New:

sceTextClipboard operations:

sceShellUtilTextClipboardGetUsedSize()

Information Bar control:

sceShellUtilSetTimeText()
sceShellUtilSetAirplaneIconMode()
sceShellUtilSetBtIconMode()

and some other functions...

Offline Princess of Sleeping

  • End User
  • *
  • Posts: 19
    • View Profile
Re: SceShellSvc - some useful functions/music playback using SceShell
« Reply #3 on: June 14, 2020, 03:50:36 AM »
Code: [Select]
int sceShellUtilReboot(int a1);   // 0x636544FB
int sceShellUtilShutdown(int a1); // 0x8F2F143D