6 extern rcvar_t rcfile_exports
[], emu_exports
[], loader_exports
[],
7 lcd_exports
[], rtc_exports
[], debug_exports
[], sound_exports
[],
8 vid_exports
[], joy_exports
[], pcm_exports
[];
29 rcvar_t
**s
= sources
;
32 rc_exportvars(*(s
++));
39 char value
[256], tbuf
[16], *v
;
41 for (i
= 0; sources
[i
]; i
++)
42 for (j
= 0; sources
[i
][j
].name
; j
++) {
44 sprintf(tbuf
, "%-4s", rc_type_to_string(sources
[i
][j
].type
));
45 switch (sources
[i
][j
].type
) {
48 sprintf(value
, "%d", rc_getint(sources
[i
][j
].name
));
51 v
= rc_getstr(sources
[i
][j
].name
);
55 sprintf(tbuf
+3, "%d", sources
[i
][j
].len
);
56 vec
= rc_getvec(sources
[i
][j
].name
);
58 for (n
= 0; n
< sources
[i
][j
].len
; ++n
) {
60 v
+= sprintf(v
, "0x%x ", *(vec
++));
62 v
+= sprintf(v
, "%d ", *(vec
++));
68 printf("%-11s %-35s %-4s %-8s\n",
70 sources
[i
][j
].help
[0] == 0 ? "-" : sources
[i
][j
].help
,