Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ############################################################################################################################### */
- /* Unlock all algorithm I made for C#. Just replace values with the corresponding variables. */
- /* C# Unlockall, write a constant byte to each location in an array */
- /* ############################################################################################################################### */
- /* So:
- unlockRange => the size of the byte array you want to write too.
- const byte MAXUNLOCK => The byte you want to set to all addresses in the array
- byte[] Unlock1 = new byte[unlockRange] => assign the arraysize of Unlock1 to the unlockRange size
- for(int i; i <= unlockRange; i++) => A c-style for loop that will iterate while incrementing by 1 each time the function is ran.
- Unlock1[i] = MAXUnlock; => Set the byte in the byte array to the MAXUnlock byte.
- PS3.SetMemory(unlockAddr, Unlock1); => Set's memory in the PS3's Memory for each time the
- */
- /* ############################################################################################################################### */
- private void unlockAll()
- {
- int unlockRange = 33968;
- const byte MAXUNLOCK = 0xFF;
- uint unlockAddr1 = 0x000000;
- byte[] Unlock1 = new byte[unlockRange];
- for(int i; i <= unlockRange; i++)
- {
- Unlock1[i] = MAXUNLOCK;
- }
- PS3.SetMemory(unlockAddr1, Unlock1);
- }
- /* ############################################################################################################################### */
- // #REFERENCED INFOS:
- int unlockRange = 33968; //array Size; amount of bytes to write after the unlockAddr1
- const byte MAXUNLOCK = 0xFF; //byte to write
- uint unlockAddr1 = 0x000000; //start address
- byte[] Unlock1 = new byte[unlockRange]; //Declare Unlock1 as byte array and size to unlockRange size
- for(int i; i <= unlockRange; i++) //iterate until unlockRange == i
- {
- Unlock1[i] = MAXUNLOCK; //set the current location 'i' in the byte array, to MAXUNLOCK byte (which is the constant byte 0xFF)
- /* ############################################################################################################################### */
- //BaSs_HaXoR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement