C++ to C# converter doesn't exists.
Cryect's tools really seem to be the best start. They are small and easy to understand. Only problem here: They always only read parts of the file, not the whole file.
void LoadMTEX(){ unsigned int TexSize; fseek(Input,0x14+0x04+MTEX_Offset,SEEK_SET); fread(&TexSize,sizeof(int),1,Input); Textures=new char[TexSize]; fread(Textures,sizeof(char),TexSize,Input); for(int i=0;i<TexSize-1;i++) if (Textures[i]==0) Textures[i]='n';}
void LoadMTEX() { uint TexSize; using (BinaryReader b = new BinaryReader(File.Open("C:\Maruum_51_17.adt", FileMode.Open))) { b.BaseStream.Seek(0x14 + 0x04 + MTEX_Offset, SeekOrigin.Begin); TexSize = b.ReadUInt32(); Textures = new char[TexSize]; for (int i = 0; i < TexSize - 1; i++) if (Textures[i] == 0) Textures[i] = 'n'; }
Textures=new char[TexSize];
char[] Textures;
Mmmh, I've never done any C#, but I think there may be something wrong at that line : Code: [Select]Textures=new char[TexSize];I tried : http://msdn.microsoft.com/en-us/library ... 53(v=vs.71).aspxThis page mentions you have to the array beforehand, something like :Code: [Select]char[] Textures;Hope that helps...