summaryrefslogtreecommitdiff
path: root/Xenogears/build-sector-2.cpp
blob: 1b1be62283e16548b422a3996972f624213cd82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}