Page 1 of 1

Advanced C++: How to read DVD sectors

Posted: Tue May 27, 2014 12:24 am
by JohnHudeski
Hi guys
This is related to my earlier kengo thread. I have figured out a fool proof way to seperating models from animation files as they are currently using similar representations.
I played the game in pcsx2 and dumped out the logs from the dvd read. I was able to enter a mode that showed only animation of certain moves (move select mode) and the dvd consistently read the exact same sector when ever an animation is triggered.

If i know how to read dvd sectors in c++ i would be able to identify the files read and use it as a method to eliminate doubt.

Re: Advanced C++: How to read DVD sectors

Posted: Sat May 31, 2014 2:33 am
by JohnHudeski
Figured it out.

Some Hex Editors can read by sector but they often have fixed sizes 512, 1024 and 2048 . The size I seek is 2064 .
Manual labour

Re: Advanced C++: How to read DVD sectors

Posted: Mon Jun 02, 2014 11:08 pm
by GMMan
Just a guess: on Windows you may need to use DeviceIoControl() to send data directly to the DVD-ROM driver. Similarly on UNIX based systems, ioctl().