|
|
| version 1.3, 2004/02/18 02:03:37 | version 1.5, 2004/06/04 16:11:03 |
|---|---|
| Line 7 | Line 7 |
| #include "sstpres.h" | #include "sstpres.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "bios.h" | |
| #include "sound.h" | #include "sound.h" |
| #include "fmboard.h" | #include "fmboard.h" |
| #include "np2info.h" | #include "np2info.h" |
| Line 18 static char cr[] = "\\n"; | Line 17 static char cr[] = "\\n"; |
| // ---- np2info extend | // ---- np2info extend |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| extern RHYTHMCFG rhythmcfg; | |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| static const char str_jwinclr[] = | static const char str_jwinclr[] = |
| "256色\0ハイカラー\0フルカラー\0トゥルーカラー"; | "256色\0ハイカラー\0フルカラー\0トゥルーカラー"; |
| static const char str_jwinmode[] = | static const char str_jwinmode[] = |
| Line 99 static void info_jdisp(char *str, int ma | Line 90 static void info_jdisp(char *str, int ma |
| static void info_jbios(char *str, int maxlen, NP2INFOEX *ex) { | static void info_jbios(char *str, int maxlen, NP2INFOEX *ex) { |
| str[0] = '\0'; | str[0] = '\0'; |
| if (biosrom) { | if (pccore.rom & PCROM_BIOS) { |
| milstr_ncat(str, str_biosrom, maxlen); | milstr_ncat(str, str_biosrom, maxlen); |
| } | } |
| if (soundrom.name[0]) { | if (soundrom.name[0]) { |
| Line 117 static void info_jrhythm(char *str, int | Line 108 static void info_jrhythm(char *str, int |
| const char *p; | const char *p; |
| char jrhythmstr[16]; | char jrhythmstr[16]; |
| UINT rhythmfault; | UINT exist; |
| UINT i; | UINT i; |
| if (!(usesound & 0x6c)) { | if (!(usesound & 0x6c)) { |
| p = "不要やで"; | p = "不要やで"; |
| } | } |
| else { | else { |
| milstr_ncpy(jrhythmstr, "BSCHTRや", sizeof(jrhythmstr)); | exist = rhythm_getcaps(); |
| rhythmfault = 0; | if (exist == 0) { |
| for (i=0; i<6; i++) { | p = "用意されてないんか…"; |
| if (rhythmcfg.pcm[i].data == NULL) { | |
| jrhythmstr[i] = '_'; | |
| rhythmfault++; | |
| } | |
| } | } |
| if (!rhythmfault) { | else if (exist == 0x3f) { |
| p = "全部あるで"; | p = "全部あるで"; |
| } | } |
| else if (rhythmfault == 6) { | |
| p = "用意されてないんか…"; | |
| } | |
| else { | else { |
| milstr_ncpy(jrhythmstr, "BSCHTRや", sizeof(jrhythmstr)); | |
| for (i=0; i<6; i++) { | |
| if (!(exist & (1 << i))) { | |
| jrhythmstr[i] = '_'; | |
| } | |
| } | |
| p = jrhythmstr; | p = jrhythmstr; |
| } | } |
| } | } |