- Joined
- Jun 9, 2007
- Messages
- 168
- Trophies
- 0
- Location
- The 5th dimension
- Website
- ethericwarriors.eu
- XP
- 101
- Country
Well, I've been playing around with poketext.cpp and managed to get it right, almost...
When I compile I get one error,
1>e:\documents and settings\christian\desktop\poketextsrc\poketext.cpp(145) : fatal error C1075: end of file found before the left brace '{' at 'e:\documents and settings\christian\desktop\poketextsrc\poketext.cpp(69)' was matched
I'm using Visual C++ Express Edition.
Here is the code, if anyone could tell me what I did wrong... any help is appreciated.
CODE
// PokeText PokemonDP text decrypter
// Â 2006-2006 loadingNOW
// table and unicode help ZhenLin
// this is released under GPLv2
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
#include
#include
#include "japhtml.h"
typedef struct stringdata{
u32 Ptr;
u32 chars;
}SD;
void DecyptPtrs(u32 count, u16 key, SD *sdptr)
{
key = key * 0x2FD;
for(int i=1; iPtr, (sdptr+i)->chars);
DecyptTxt((sdptr+i)->chars, i+1, data16+(((sdptr+i)->Ptr)/2), fpout);
fprintf(fpout, "");
}
fprintf(fpout, "");
fclose(fpout);
sprintf(filename, "unenc\\%03d.bin", j);
fpout = fopen(filename, "wb");
fwrite(data16, 1, sze, fpout);
fclose(fpout);
free(data16);
//free(data32);
fp=fopen("dec.dat", "rb");
fread(data16, 1, sze, fpout); // read decrypted binary file
fclose(fp);
for(int i=0; ichars, i+1, data16+(((sdptr+i)->Ptr)/2), fpout); // encrypte Txt
DecyptPtrs(*data16, *(data16+1), sdptr); // and ptrs
fpout = fopen("enc.dat", "wb");
fwrite(data16, 1, sze, fpout);
fclose(fpout);
}
Thanks
When I compile I get one error,
1>e:\documents and settings\christian\desktop\poketextsrc\poketext.cpp(145) : fatal error C1075: end of file found before the left brace '{' at 'e:\documents and settings\christian\desktop\poketextsrc\poketext.cpp(69)' was matched
I'm using Visual C++ Express Edition.
Here is the code, if anyone could tell me what I did wrong... any help is appreciated.
CODE
// PokeText PokemonDP text decrypter
// Â 2006-2006 loadingNOW
// table and unicode help ZhenLin
// this is released under GPLv2
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
#include
#include
#include "japhtml.h"
typedef struct stringdata{
u32 Ptr;
u32 chars;
}SD;
void DecyptPtrs(u32 count, u16 key, SD *sdptr)
{
key = key * 0x2FD;
for(int i=1; iPtr, (sdptr+i)->chars);
DecyptTxt((sdptr+i)->chars, i+1, data16+(((sdptr+i)->Ptr)/2), fpout);
fprintf(fpout, "");
}
fprintf(fpout, "");
fclose(fpout);
sprintf(filename, "unenc\\%03d.bin", j);
fpout = fopen(filename, "wb");
fwrite(data16, 1, sze, fpout);
fclose(fpout);
free(data16);
//free(data32);
fp=fopen("dec.dat", "rb");
fread(data16, 1, sze, fpout); // read decrypted binary file
fclose(fp);
for(int i=0; ichars, i+1, data16+(((sdptr+i)->Ptr)/2), fpout); // encrypte Txt
DecyptPtrs(*data16, *(data16+1), sdptr); // and ptrs
fpout = fopen("enc.dat", "wb");
fwrite(data16, 1, sze, fpout);
fclose(fpout);
}
Thanks