xboxscene.org forums

Author Topic: C++ Xbla Demo->full Convertor  (Read 81 times)

MomDad

  • Archived User
  • Newbie
  • *
  • Posts: 42
C++ Xbla Demo->full Convertor
« on: December 08, 2009, 11:05:00 PM »

header normally changes, but aside from that, yes, the flipped byte at 0x237 is the only other diff
Logged

dstruktiv

  • Archived User
  • Full Member
  • *
  • Posts: 204
C++ Xbla Demo->full Convertor
« Reply #1 on: December 10, 2009, 09:58:00 AM »

My first ever C++ program lol... Modified your code a bit... But for some reason if I uncomment the XBLA.put(0x01); then it screws up the seekg pointer when doing recursive patches sad.gif

Now at least it checks to make sure you're modifying the correct type of file.

CODE
#include
#include
using namespace std;

int main (int argc, char** argv) {
fstream XBLA;
for(int i = 1; i < argc; i++) {
XBLA.open (argv, ios::in);
if (!XBLA.is_open()) {
cout << "Couldn't find " << argv << endl;
return 1;
}

char * containerBuffer;
containerBuffer = new char [4];
XBLA.read(containerBuffer,4);

string container = containerBuffer;

if (container == "LIVE" || "PIRS")
{
    char * buffer;
    buffer = new char [50];
    
    XBLA.seekp(0x237);
    //XBLA.put(0x01);
    
    XBLA.seekg(0x00000412);
    XBLA.read(buffer, 50);
    
    int i;
    string title;
    
    for(i = 0; i <= 50; i++)
    {
     if (((int)buffer) != 0)
     {
      title = title + buffer;  
     }
    }
    
    cout << title << " unlocked successfully!" << "\n";
    
    XBLA.close();
}
}
return 0;
}
Logged

RepublicOfAstra

  • Archived User
  • Newbie
  • *
  • Posts: 31
C++ Xbla Demo->full Convertor
« Reply #2 on: December 12, 2009, 05:31:00 PM »

Nice. In my C# tool I did the entire 52-byte edit that was posted before, I wasn't aware there was a 1-byte solution. As far as I can tell it'll work either way, I just hope the full edit won't mess things up.
Logged

under420dog

  • Archived User
  • Full Member
  • *
  • Posts: 229
C++ Xbla Demo->full Convertor
« Reply #3 on: December 13, 2009, 05:43:00 PM »

dstruktiv...keep em coming dude...your changing the world...I like your work here and xbh smile.gif
Logged

Roxxxfanatik

  • Archived User
  • Newbie
  • *
  • Posts: 8
C++ Xbla Demo->full Convertor
« Reply #4 on: January 17, 2010, 01:29:00 PM »

QUOTE(kphlight @ Dec 9 2009, 05:47 AM) View Post

Note: stupid forum borked my beautiful formating


CODE

'huy dee smul dee huy
'dee smulldy huy
'BORK BORK BORK

"You" take "dee chocolate" then _
    You take "dee moose"
"you" put "dee chololat" on _
    On "dee moose"


Chocolat Moose... :-P


EDIT:: TYPO
Logged