Talk:VSH
Jump to navigation
Jump to search
Searching functions
There is a more faster way to get functions by their real signatures if you have function declarations or you can get it somehow.
- extract.sh
#/bin/sh
ppu-g++ -x c++ -I. -S $1 -o- | grep "^_.*:$" | sed -r 's/^_(.*?):$/\1/'
Now you need to pass a source code or a header file with an empty function bodies (to be able to compile them and get mangled names). It generates a list of mangled names, now you can use an algorithm from SPRX File Format to get their FNIDs. An example generated from cxmlaccess.cpp: http://pastie.org/private/izbnghfg2eidaas7lxqgdg
--Flatz (talk) 02:33, 16 June 2014 (EDT)
_x3_34E2588C
+0 x3BDVDIoctl::ServerControl ( 7 ) +4 x3BDVDIoctl::ServerControl ( 8 ) +8 x3BDVDIoctl::ServerControl ( 9 ) +C x3BDVDIoctl::ServerControl ( 0xA ) +0x10 x3BDVDIoctl::ServerControl ( 0xB ) +0x14 x3BDVDIoctl::ServerControl ( 0xC ) +0x18 Get Device Id by String ( char * mount_point, uint64_t * deviceid) ("/dev_bdvd" ...)
_xsetting_AF1F161
+0 get_product_code +4 get_product_sub_code +8 Get uint8_t [0x1C] { hdmi, ieee802.11, msslot, sdslot, cfslot } +C Set uint8_t [0x1C] { hdmi, ieee802.11, msslot, sdslot, cfslot } +0x10 GetEnterButtonAssign() +0x14 SetEnterButtonAssign() +0x18 GetLicenseArea "/setting/system/licenseArea" +0x1c SetSystemInitialize "/setting/system/initialize" +0x20 GetSystemInitialize +0x24 SetSystemLanguage +0x28 GetSystemLanguage +0x2c SetSystemNickname +0x30 GetSystemNickname +0x34 SetSystemCharacterCodeOem +0x38 GetSystemCharacterCodeOem +0x3c SetSystemCharacterCodeOem Value +0x40 GetSystemCharacterCodeOem Value +0x44 SetsystemCharacterCodeAnsi +0x48 GetsystemCharacterCodeAnsi +0x4c (Resets Nickname, DVDRegion, DlnaFlag) +0x50 SetSystemNotificationEnabled +0x54 GetSystemNotificationEnabled +0x58 SetSystemDiscBootFirstEnabled "/setting/system/discBootFirst" +0x5c GetSystemDiscBootFirstEnabled +0x60 SetSystemSoundEffectEnabled "/setting/system/soundEffect" +0x64 GetSystemSoundEffectEnabled +0x68 (new) +0x6c (delete)
_xsetting_43F98936
+0 +4 +8 +c +0x10 +0x14 +0x18 +0x1C MpVpOutput::ChangeAudioConfig() GetDeviceInfo +0x20 +0x24 +0x28 +0x2c +0x30 cellAvsetSetAudioCPControl +0x34 cellAvsetSetAudioACPInfo +0x38 +0x3c +0x40 +0x44 +0x48 +0x4c +0x50 +0x54 GetMultiOutState() +0x58 +0x5c +0x60 +0x64 +0x68
_xsetting_4712F276
+0x10 GetDeviceInfo +0xF0 HDCP Status
_xsetting_58560CA4
+0 - Get "/setting/video/screenMode" int* +4 - Set "/setting/video/screenMode" +8 - Get "/setting/video/outputChannel" int* +c - Set "/setting/video/outputChannel" +0x10 - Get "/setting/video/videoplayervolume" int * +0x14 - Set "/setting/video/videoplayervolume"
_xsetting_660ECC35
+0 - Set "/setting/photo/normalScenario" +4 - Get "/setting/photo/normalScenario" int* +8 - Set "/setting/photo/slideScenario" +C - Get "/setting/photo/slideScenario" int * +0x10 - Set "/setting/photo/slideInterval" +0x14 - Get "/setting/photo/slideInterval" int* +0x18 - Set "/setting/photo/slideRepeat" +0x1C - Get "/setting/photo/slideRepeat" int*
_xsetting_7125FEB5
+0 - Set "/setting/music/codec" +4 - Get "/setting/music/codec" int* +8 - Set "/setting/music/bitRateAac" +c - Get "/setting/music/bitRateAac" int* +0x10 - Set "/setting/music/bitRateMp3" +0x14 - Get "/setting/music/bitRateMp3" +0x18 - Set "/setting/music/bitRateAtrac" +0x1c - Get "/setting/music/bitRateAtrac" +0x20 - Set "/setting/music/crossFadePlay" +0x24 - Get "/setting/music/crossFadePlay" +0x28 - Set "/setting/music/repeatMode" +0x2c - Get "/setting/music/repeatMode" +0x30 - Set "/setting/music/shuffleMode" +0x34 - Get "/setting/music/shuffleMode" +0x38 - Set "/setting/music/visualizerSelect" +0x3c - Get "/setting/music/visualizerSelect" +0x40 - Set "/setting/music/cddaEula" +0x44 - Get "/setting/music/cddaEula" +0x48 - Set "/setting/music/cddaServer" +0x4c - Get "/setting/music/cddaServer" +0x50 - Set "/setting/music/audioplayervolume" +0x54 - Get "/setting/music/audioplayervolume" +0x58 - Set "/setting/music/sacdplayervolume" +0x5c - Get "/setting/music/sacdplayervolume" +0x60 - Set "/setting/music/atracActivation" +0x64 - Get "/setting/music/atracActivation" +0x68 - Set "/setting/music/wmaActivation" +0x6C LoadWmaActivation(int* ) +0x70 - Set "/setting/music/cdOutputFs" +0x74 - Get "/setting/music/cdOutputFs" +0x78 - Set "/setting/music/ditherSetting" +0x7C - Get "/setting/music/ditherSetting" +0x80 - Set "/setting/music/bitmappingSetting" +0x84 - Get "/setting/music/bitmappingSetting"
_xsetting_7EDDAD29
+0 - Get uint8_t [0x20] { parental passwordNumber, bdPc, bdPcAge, dvdRegion, dvdLevel, gameLevel, browserStartControl } +4 - Set "/setting/parental/dvdRegion" +8 - Set "/setting/parental/bdPc" +C - Set "/setting/parental/bdPcAge" +10 - Set "/setting/parental/dvdRegion" (input is compared to a known list) +14 - Set "/setting/parental/dvdLevel" +18 - Set "/setting/parental/gameLevel" +1C - Set "/setting/parental/browserStartControl"
_xsetting_8B69F85A
+0 +4 - Set "/setting/dateTime/diffTime" +8 - Set "/setting/dateTime/dateFormat" +c - Set "/setting/dateTime/timeFormat" +10- Set "/setting/dateTime/timeZone" +14- Set "/setting/dateTime/summerTime" +18 +1c +20 +24 +28 +2c
_xsetting_CE27E884
+0 - Set "setting/premo/psp 0-5" uint8 [0x4B8] +4 - Get "setting/premo/psp 0-5" uint8 [0x4B8] +8 - Set "/setting/premo/remoteBoot" +c - Get "/setting/premo/remoteBoot" int* +10- Set "/setting/premo/bootCount" +14- Get "/setting/premo/bootCount" int* +18- Set "/setting/premo/powerOffTime" +1c- Get "/setting/premo/powerOffTime" uint64_t* +20- Set "/setting/premo/audioConfig" +24- Get "/setting/premo/audioConfig" int*
_xsetting_D0261D72
+0 - Set "/setting/avc/initialCameraMode" +4 - Get "/setting/avc/initialCameraMode" int* +8 - Set "/setting/np/env" +c - Get "/setting/np/env" +0x10 - set id, value - regInterface->SaveRegIntegerValue +0x14 - get id, int * - regInterface->LoadRegIntegerValue +0x18 - set id, value - regInterface->SaveRegStringValue +0x1C - get id, value - regInterface->LoadRegStringValue +0x20 +0x24 +0x28
id:
0x00 || "/setting/avc/vga/lastBitrate" 0x01 || "/setting/parental/gameLevel0Control" 0x02 || "/setting/parental/networkServiceControl" 0x03 || "/setting/music/cddaServer" 0x04 || "/setting/music/gameBgmPlayback" 0x05 || "/setting/music/gameBgmVolume" 0x06 || "/setting/music/dummyBgmPlayer" 0x07 || "/setting/music/dynamicNormalizer" 0x08 || "/setting/np/debug" 0x09 || "/setting/np/titleId" 0x0A || "/setting/np/navOnly" 0x0B || "/setting/np/npAdClockDiff" 0x0C || "/setting/np/debugDrmError" 0x0D || "/setting/np/debugDrmClock" 0x0E || "/setting/np/debugConsoleBind" 0x0F || "/setting/np/debugIngameCommerce2" 0x10 || "/setting/np/debugSFForce" 0x11 || "/setting/np/npGeoFiltering" 0x12 || "/setting/np/gameUpdateImposeTest" 0x13 || "/setting/np/gameUpdateForceOverwrite" 0x14 || "/setting/np/fakeNpSnsThrottle" 0x15 || "/setting/np/fakeNpSnsThrottleWaitSeconds" 0x16 || "/setting/np/tppsProxyFlag" 0x17 || "/setting/np/tppsProxyServer" 0x18 || "/setting/np/tppsProxyPort" 0x19 || "/setting/np/tppsProxyUserName" 0x1A || "/setting/np/tppsProxyPassword" 0x1B || "/setting/system/region" 0x1C || "/setting/system/licenseArea" 0x1D || "/setting/system/hddSerial" 0x1E || "/setting/system/coreDump" 0x1F || "/setting/system/coreDumpOptionTrigger" 0x20 || "/setting/system/coreDumpOptionFileGen" 0x21 || "/setting/system/coreDumpOptionExeCtrl" 0x22 || "/setting/system/matEnable" 0x23 || "/setting/system/updateServerUrl" 0x24 || "/setting/system/fakeLimitSize" 0x25 || "/setting/system/fakeFreeSpace" 0x26 || "/setting/system/fakeSavedataOwner" 0x27 || "/setting/system/fakeHddSpeed" 0x28 || "/setting/system/debugGameType" 0x29 || "/setting/system/debugBootPath" 0x2A || "/setting/system/debugDirName" 0x2B || "/setting/system/appHomeBootPath" 0x2C || "/setting/system/wolDex" 0x2D || "/setting/system/dispHddSpace" 0x2E || "/setting/system/autoNetworkUpdate" 0x2F || "/setting/system/autoPowerOff" 0x30 || "/setting/system/autoPowerOffEx" 0x31 || "/setting/system/autoPowerOffDebug" 0x32 || "/setting/system/hdmiControl" 0x33 || "/setting/system/hdmiControlEx" 0x34 || "/setting/system/powerOnDiscBoot" 0x35 || "/setting/system/powerOnReset" 0x36 || "/setting/system/disable15Timeout" 0x37 || "/setting/system/debugSystemUpdate" 0x38 || "/setting/system/fakePlus" 0x39 || "/setting/system/turnOffWarning" 0x3A || "/setting/system/bootMode" 0x3B || "/setting/system/crashreport/crepo" 0x3C || "/setting/system/crashreport/reporterStatus" 0x3D || "/setting/system/crashreport/vshGeneratorEnableFlag" 0x3E || "/setting/dateTime/autoCorrection" 0x3F || "/setting/autoboot/startTime" 0x40 || "/setting/edy/debug" 0x41 || "/setting/video/upConvert" - loadRegistryUpConvert/saveRegistryUpConvert 0x42 || "/setting/video/fnr" - loadRegistryFnrLevel/saveRegistryFnrLevel 0x43 || "/setting/video/bnr" - loadRegistryBnrLevel/saveRegistryBnrLevel 0x44 || "/setting/video/mnr" - loadRegistryMnrLevel/saveRegistryMnrLevel 0x45 || "/setting/video/sequentialPlay" - loadRegistrySequentialPlay/saveRegistrySequentialPlay 0x46 || "/setting/video/hd50HzOutput" - laodRegistryHD50HzOutput/saveRegistryHD50HzOutput 0x47 || "/setting/video/outputExtMenu" 0x48 || "/setting/video/outputExtFunc" 0x49 || "/setting/video/dtcpipActMenu" - loadRegistryDtcpIpSettingMenu/saveRegistryDtcpIpSettingMenu 0x4A || "/setting/video/hddCaptionLanguage" - loadRegistryDefaultSubTitleLanguage() 0x4B || "/setting/video/hddSoundLanguage" - loadRegistryDefaultAudioLanguage() 0x4C || "/setting/game/emuUpConvert" 0x4D || "/setting/game/emuSmoothing" 0x4E || "/setting/game/minisUpConvert" 0x4F || "/setting/game/pspemuViewmode" 0x50 || "/setting/game/pspemu3dDisplay" 0x51 || "/setting/game/pspemu3dDepthAdjust" 0x52 || "/setting/game/pspemu3dMenu" 0x53 || "/setting/game/pspemuAdhocModeWlan" 0x54 || "/setting/game/pspemuAdhocModeCh" 0x55 || "/setting/game/ps2emuSaveUtility" 0x56 || "/setting/game/ps2softemuFunc" 0x57 || "/setting/game/ps2BgCaution" 0x58 || "/setting/camera/plfreq" 0x59 || "/setting/xmb/tvCategory" 0x5A || "/setting/xmb/homeInstaller" 0x5B || "/setting/xmb/homeQAMode" 0x5C || "/setting/xmb/dummyInGameXMB" 0x5D || "/setting/xmb/yconExplained" 0x5E || "/setting/xai/debugFlag" 0x5F || "/setting/libad/adServerURL" 0x60 || "/setting/libad/adCatalogVersion" 0x61 || "/setting/libad/adEnableNotification" 0x62 || "/setting/upload/debug" 0x63 || "/setting/net/autoDlDebug" 0x64 || "/setting/net/autoDlFlag" 0x65 || "/setting/net/autoDlTime" 0x66 || "/setting/net/autoDlFunc" 0x67 || "/setting/net/emulationType" 0x68 || "/setting/net/adhocSsidPrefix" 0x69 || "/setting/pad/vibrationEnable" 0x6A || "/setting/pad/autoPowerOff" 0x6B || "/setting/pad/magnetometer" 0x6C || "/setting/sound/0/initial" 0x6D || "/setting/sound/1/usbHeadsetSound" 0x6E || "/setting/dlna/dlnaFlag" 0x6F || "/setting/dlna/dtcpipDevCert" 0x70 || "/setting/browser/trendEula" 0x71 || "/setting/browser/trendEnable" 0x72 || "/setting/browser/trendLastTime" 0x73 || "/setting/browser/trendTtl" 0x74 || "/setting/browser/trendRegistered" 0x75 || "/setting/browser/heapSize" 0x76 || "/setting/browser/debugMenu" 0x77 || "/setting/browser/browserType" 0x78 || "/setting/wboard/baseUri" 0x79 || "/setting/smss/targetServer" 0x7A || "/setting/smss/resultOutput" 0x7B || "/setting/display/forceEnable3D" 0x7C || "/setting/display/screenSize" 0x7D || "/setting/display/deepColor"