-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathrifa.bt
More file actions
33 lines (30 loc) · 708 Bytes
/
rifa.bt
File metadata and controls
33 lines (30 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
typedef struct {
#include "Rif.bt"
} Rif<read=RIF_READ>;
string approx_date(int64 time) {
string ret;
local int64 secs_per_year = 31557600;
local int64 secs_per_month = secs_per_year / 12;
SPrintf(ret, "%4d-%02d", (time / secs_per_year)+1970, (time / secs_per_month) % 12 + 1);
return ret;
}
string RIF_READ(Rif &r) {
string ret;
SPrintf(ret, "V%d T%x U%d C%d %s - %s",
r.version,
r.license_type,
r.unk_flag,
r.content_type,
approx_date(r.startTime),
r.contentId);
return ret;
}
BigEndian();
if (ReadInt() == 0x72696661) {
char rifaMagic[4];
char ServiceID[0x14];
FSeek(0x400);
while(!FEof()) {
Rif rif;
}
}