diff options
Diffstat (limited to 'Xenogears/build-sector-2.cpp')
-rw-r--r-- | Xenogears/build-sector-2.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Xenogears/build-sector-2.cpp b/Xenogears/build-sector-2.cpp index 1b1be62..6ab7835 100644 --- a/Xenogears/build-sector-2.cpp +++ b/Xenogears/build-sector-2.cpp @@ -1,14 +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);
-}
+#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); +} |