Post: [Release / .NET] MemLib v1 + Source
11-27-2015, 07:56 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
PS3 Memory Lib v1

This library uses PS3Lib and allows you to read from and write to memory with ease; No need to write out long method names or extensions anymore.


Explanation:
The syntax/usage of this will seem a bit familiar to most who've done memory editing via a prx, for example.
I tried to make it as similar to that as I could and feel I've done an OK job at that.

Usage:

//unsigned byte array - byte
Mem[0x10050000] = new byte[] { 1, 2, 3, 4 };//This will write 1 2 3 4 to the address 0x10050000
byte[] ByteA = (byte[])Mem[0x10050000, 4];//Reads our value at 0x10050000 and casts it as a byte array with length of four

//unsigned byte - uchar
Mem[0x10050000] = (byte)0xFF;//This will write (byte)0xFF to the address 0x10050000
byte Byte = (byte)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a byte

//signed byte - char
Mem[0x10050000] = (sbyte)0x7F;//This will write (sbyte)0x7F to the address 0x10050000
sbyte SByte = (sbyte)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as an sbyte

//unsigned short - uint16
Mem[0x10050000] = (ushort)0xFFFF;//This will write (ushort)0xFFFF to the address 0x10050000
ushort UShort = (ushort)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a ushort

//signed short - int16
Mem[0x10050000] = (short)0x7FFF;//This will write (short)0x7FFF to the address 0x10050000
short Short = (short)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a short

//unsigned int - uint32
Mem[0x10050000] = (uint)0xFFFFFFFF;//This will write (uint)0xFFFFFFFF to the address 0x10050000
uint[/COLOR] UInt = (uint[/COLOR])Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a uint

//signed int - int32
Mem[0x10050000] = (int)0x7FFFFFFF;//This will write (int)0x7FFFFFFF to the address 0x10050000
int Int = (int)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a int

//unsigned long - uint64
Mem[0x10050000] = (ulong)0xFFFFFFFFFFFFFFFF;//This will write (ulong)0xFFFFFFFFFFFFFFFF to the address 0x10050000
ulong ULong = (ulong)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a ulong

//signed long - int64
Mem[0x10050000] = (long)0x7FFFFFFFFFFFFFFF;//This will write (long)0x7FFFFFFFFFFFFFFF to the address 0x10050000
long Long = (long)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a long

//float - single
Mem[0x10050000] = (float)1.00000;//This will write 1.0 to the address 0x10050000
float Float = (float)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a float

//float array - single
Mem[0x10050000] = new float[] { 1, 2, 3, 4 };//This will write 1.0 2.0 3.0 4.0 to the address 0x10050000
float[] FloatA = (float[])Mem[0x10050000, 4];//Reads our value at 0x10050000 and casts it as a float array with length of four

//string
Mem[0x10050000] = "This is a string";//This will write "This is a string" to the address 0x10050000
string String = (string)Mem[0x10050000];//Reads our value at 0x10050000 and casts it as a string


Downloads:
Source + Demo project: You must login or register to view this content.
Binary Only: You must login or register to view this content.
Virus Scan for Library: You must login or register to view this content.

Feel free to edit this to your liking and use it in whichever projects you like.
If you have any suggestions on how to improve this, or if you've made any changes that you think I should add to this, contact me.

Credits:
You must login or register to view this content. - PS3Lib
You must login or register to view this content. - BBCode formatter

And other redundant credits for everyone I've ever asked for help from since I started modding (that I can remember), for Bitwise:

Swaqq, OSM, NBH, BLB, SC58, GFM, Lachie, Primetime, Tustin, aerosoul94, Enstone, iMCSx, Shark, Bitwise, IBM, Microsoft, Qt Compiler, Choco, DexModderFTW, Eddie Mac, INSAN3LY_D34TH, SnaY, Sticky, MegaMister, Ansity, xDebugCoder, Red-EyeX32, Hunter1214, tossiam, itsLollo1000, Seb5594, therifboy, xKtF, Larip8, Outsider, Kas, iMod1998 for being sp00ki, Mango_Knife, Maybe Ethernet, sk8erlewisss, Uk_ViiPeR, Elite Mossy, JokerRey, xePixTvx, BaSs_HaXor, zMarcusHD, Ikea Monkey, nay1995, oStankyModz, Bo, 01cedricv2, FusionModz, mrdarkblue, ResistTheKiwi, jannik007, Geo, milky4444, NotALegitPlayer, Stitches, xHostModer, BadLuckJosh, Welsh, BrinkerzHD, Ghost Rolly, Tizz A Lee Gizz A Lee, xPreeks, NiiinjaModz--, CrEaTiiOn_420, xSonoro, xCSBKx, GMTPS3, Absolute Zero, Azus, Notorious, VezahMoDz, Cyb3r, Mx444, jwm614, Anera


No one has permission to update/re-release this.
Last edited by John ; 11-27-2015 at 11:57 PM.

The following 6 users say thank you to John for this useful post:

Sabotage, Helping-Hand, Krypton, TheRichSlut
11-27-2015, 07:59 PM #2
Default Avatar
Kas
Guest
Great release bro! Good shit.

The following user thanked Kas for this useful post:

John
11-27-2015, 08:38 PM #3
Sabotage
Gaming Squad
john dat goon?

The following user thanked Sabotage for this useful post:

John

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo