diff options
author | Pixel <Pixel> | 2002-05-04 17:53:08 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-05-04 17:53:08 +0000 |
commit | 24fb33726eca4e8c5a88797adc9c17f4d541f543 (patch) | |
tree | 72b385bd9e880e699e43c7db3ba12817f0e8e45e /Xenogears/build-sector-2.cpp |
Initial revision
Diffstat (limited to 'Xenogears/build-sector-2.cpp')
-rw-r--r-- | Xenogears/build-sector-2.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Xenogears/build-sector-2.cpp b/Xenogears/build-sector-2.cpp new file mode 100644 index 0000000..6ab7835 --- /dev/null +++ b/Xenogears/build-sector-2.cpp @@ -0,0 +1,14 @@ +#include <stdio.h> +#include "yazedc.h" + +int main(void) { + unsigned char datas[2352]; + + fread(datas, 2352, 1, stdin); + minute = datas[12]; + second = datas[13]; + frame = datas[14]; + fprintf(stderr, "Sector info: %2i:%02i:%04i\n", minute, second, frame); + do_encode_L2(datas, MODE_2, 0); + fwrite(datas, 2352, 1, stdout); +} |