home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Phoenix Heaven Sunny 2
/
APPARE2.BIN
/
oh_towns
/
taropyon
/
install
/
_edia.c
< prev
next >
Wrap
Text File
|
1995-06-20
|
4KB
|
126 lines
/*************************************************************************
* EDIA
*************************************************************************/
int _edia_config(char *instdir, int item_setup)
{
int ret;
char *dlgTxm;
char *dlgGets;
char tmp[256], buf[8];
_edia_swapDrv = -1;
_tc_pre_config( instdir, "edia.exp", "EDIA" );
if ( item_setup )
{
if ( (dlgGets = DlgGets_open()) == NULL )
return (ERR);
DlgGets_setTitle(dlgGets,Fnt16x16,"EDIA 環境設定");
buf[0] = _edia_swapDrv < 0 ? toupper(instdir[0]) : _edia_swapDrv + 'A';
buf[1] = '\0';
DlgGets_setSize(dlgGets,320,64);
DlgGets_putf( dlgGets, Fnt16x16, 1, "作業ドライブを指定してください(例:「D」)。" );
DlgGets_setPosition(dlgGets,DLGPOS_CENTER_OF_SCREEN); /* 画面中央 */
if ( DlgGets_start(dlgGets,3,buf) == NORMAL )
{
if ( isalpha(buf[0]) )
_edia_swapDrv = toupper(buf[0]);
else
_edia_swapDrv = -1;
}
DlgGets_close(dlgGets);
}
/* 画面モード ----------------------------------------------------*/
_edia_scnmode = -1;
if ( item_setup )
{
dlgTxm = DlgTxm_open(ColBoxNormal);
DlgTxm_setTitle(dlgTxm,Fnt16x16,"EDIA 画面モード");
DlgTxm_putf( dlgTxm, Fnt16x16, TXMDAT_ATT_CENTER,
"動作画面モードを指定してください。");
DlgTxm_putf( dlgTxm, Fnt16x12, TXMDAT_ATT_CENTER, "");
DlgTxm_putf( dlgTxm, Fnt16x16, TXMDAT_ATT_CENTER, "中解像度 … 640×480ドット " );
DlgTxm_putf( dlgTxm, Fnt16x16, TXMDAT_ATT_CENTER, "高解像度 … 1024×768ドット 高解像度TBIOS を組み込んだ" );
DlgTxm_putf( dlgTxm, Fnt16x16, TXMDAT_ATT_CENTER, " 場合に使用できます。高解像度に対応した機種" );
DlgTxm_putf( dlgTxm, Fnt16x16, TXMDAT_ATT_CENTER, " (MX/MA/HC/HB/HA等)で使用できます。 " );
DlgTxm_setBtn( dlgTxm, Fnt16x16, 128, 20, C_MBLACK, C_WHITE, C_HILIGHT, C_DARK, 'N' , KA_N ,
1, "", 0, "中解像度 : [N]");
DlgTxm_setBtn( dlgTxm, Fnt16x16, 128, 20, C_MBLACK, C_WHITE, C_HILIGHT, C_DARK, 'H' , KA_H ,
2, "", 0, "高解像度 : [H]");
DlgTxm_setSize(dlgTxm,320,40);
DlgTxm_setPosition(dlgTxm,DLGPOS_CENTER_OF_SCREEN);
do
{
ret = DlgTxm_start(dlgTxm);
} while ( ret < 0 );
DlgTxm_close(dlgTxm);
switch ( ret )
{
case 1: _edia_scnmode = 0; break;
case 2: _edia_scnmode = 5; break;
}
}
return (NORMAL);
}
int _edia_install(char *instdir,int item_setup)
{
int ret, att, drv;
char *srcdir, *instfile;
char *item_prog, *item_ttl, item_para[128];
int item_att;
char tmp[256], scnmode_para[32];
syl_putf("EDIA INSTALL");
srcdir = "/OH_TOWNS/TAROPYON/EDIA";
instfile = "*.exp *.cci *.c *.h *.rex *.dll *.doc";
item_prog = "EDIA.EXP";
item_ttl = "EDIA";
item_para[0] = '\0';
item_att = 2;
srcdir = _tc_getFcopySrcDir( srcdir, tmp);
att = _FCOPY_MODE_INIT;
ret = FCOPY_exec(att, srcdir, instfile, instdir);
/* 環境設定 --------------------------------------------------------*/
syl_putf("EDIA CUSTOMIZE");
_edia_setup(instdir,item_setup);
if ( ret == NORMAL && item_setup != 0 )
{ /* アイテム登録 */
syl_putf("EDIA ITEM SETUP");
if ( _edia_scnmode == 5 )
strcpy(scnmode_para, "-scnMode H ");
else
scnmode_para[0] = '\0';
if ( isalpha(_edia_swapDrv) )
sprintf(item_para,"%s-swapDrv %c", scnmode_para, _edia_swapDrv);
else
strcpy( item_para, scnmode_para);
drv = toupper(instdir[0]) - 'A';
strcpy(tmp,instdir);
add_path_fn(tmp,item_prog);
item_setApl( drv, 1024, item_ttl, tmp, item_para, item_att );
}
return (ret);
}
int _edia_setup(char *instdir,int item_setup)
{
return _hewin_edia_setup("edia.mac", instdir, item_setup);
}