Ejemplo n.º 1
0
      NoWaiting|=2;
    return(1);
   }
   else
    return(0);
  }
  else
   return(0);
  }
  return 0;
}

CFGSTRUCT NetplayConfig[]={
        AC(remotetport),
        AC(netlocalplayers),
        ACS(netgamekey),
        ACS(netplayhost),
        ACS(netplaynick),
        ACS(netpassword),
        ENDCFGSTRUCT
};


static BOOL CALLBACK NetCon(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
  switch(uMsg)
  {
   case WM_CLOSE:
                        GetSettings(hwndDlg);
                        DestroyWindow(hwndDlg);
                        netwin=0;
Ejemplo n.º 2
0
void msg_edit::mod_mbase ( int mbnum )
{

    mb_list_rec mbl;
    char faka[41]= {0};
    char sigtxt[3][21]= {"None","Short Sig.","Long Sig."};
    std::string TF;
    char rBuffer[200]= {0};

    _mfunc.read_mbaselist ( &mbl, mbnum );
    if ( mbl.sigtype < 0 || mbl.sigtype > 2 ) mbl.sigtype = 0;

    int total_mbases = _mfunc.msg_count();
    int result;
    unsigned char ch;

    while ( pass->session->isActive() )
    {

        faddr2char ( faka,&mbl.aka );
        strcpy ( rBuffer,"" );

        pass->session->puts ( "\x1b[0m\x1b[2J" );
        pass->session->puts ( ".----------------------------------------------------------------.\r\n" );
        pass->session->puts ( "| Message Forum Editor                                           |\r\n" );
        pass->session->puts ( "`----------------------------------------------------------------'\r\n" );
        pass->session->printf ( "  Forum: %d of %d", mbnum+1,total_mbases );

        pass->session->puts ( "\r\n" );
        pass->session->puts ( ".-------------------------." );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [A]. Description        | %s", mbl.mbdisplay );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [B]. Filename           | %s", mbl.mbfile );
        if ( mbl.Type == MSGTYPE_JAM ) TF = "JAM";
        else TF = "SQUISH";
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [C]. Message Type       | %s", TF.c_str() );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [D]. Forum Kind         | %s", mbtypes[mbl.Kind] );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [E]. Posting Type       | %s", posttyp[mbl.Pubpriv] );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [F]. Info Filename      | %s", mbl.infofile );
        if ( mbl.Allowalias ) TF = "yes";
        else TF = "no";
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [G]. Allow Aliases      | %s", TF.c_str() );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [H]. Post ACS           | " );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [I]. Read ACS           | " );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [J]. Sysop ACS          | " );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [K]. Signature          | %s", sigtxt[mbl.sigtype] );
        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [L]. Mail address       | %s", faka );

        /*
        mci("%sQuoted (%d)`0F, ",
            ansic(mbl.colors[MSG_QUOTE]),
            mbl.colors[MSG_QUOTE]);
        mci("%sText (%d)`0F,",
            ansic(mbl.colors[MSG_TEXT]),
            mbl.colors[MSG_TEXT]);
        mci("%sTear (%d)`0F,",
            ansic(mbl.colors[MSG_TEAR]),
            mbl.colors[MSG_TEAR]);
        mci("%sOrigin (%d)~SM",
            ansic(mbl.colors[MSG_ORIGIN]),
            mbl.colors[MSG_ORIGIN]);
        */

        pass->session->puts ( "\r\n" );
        pass->session->printf ( "| [M]. Origin Line        | %s", mbl.OriginLine );
        pass->session->puts ( "\r\n" );
        pass->session->puts ( "`-------------------------'\r\n\r\n" );

        pass->session->puts ( " [d]elete, [e]dit, [i]nsert, [m]ove, [q]uit : \x1b[1;44m \x1b[D" );

        get_chr ( pass,ch );
        switch ( toupper ( ch ) )
        {

            case 'A':
                pass->session->puts ( "\r\n\r\n Description: \x1b[1;44m                              \x1b[30D" );
                get_str ( pass,rBuffer );
                if ( strcmp ( rBuffer," " ) == 0 ) break;
                strcpy ( mbl.mbdisplay,rBuffer );
                break;

            case 'B':
                pass->session->puts ( "\r\n\r\n New Filename: \x1b[1;44m                              \x1b[30D" );
                get_str ( pass,rBuffer );
                if ( strcmp ( rBuffer," " ) == 0 ) break;
                strcpy ( mbl.mbfile,rBuffer );
                break;

            case 'C':
                if ( mbl.Type == MSGTYPE_JAM )    mbl.Type = MSGTYPE_SQUISH;
                else                        mbl.Type = MSGTYPE_JAM;
                break;

            case 'D':
                ++mbl.Kind;
                if ( mbl.Kind > 4 )
                    mbl.Kind = 0;
                switch ( mbl.Kind )
                {
                    case LOCAL    :
                        mbl.Pubpriv = PUBLIC;
                        break;
                    case ECHOMAIL :
                        mbl.Pubpriv = PUBLIC;
                        break;
                    case NETMAIL  :
                        mbl.Pubpriv = PRIVATE;
                        break;
                    case EMAIL    :
                        mbl.Pubpriv = PRIVATE;
                        break;
                    case NEWS     :
                        mbl.Pubpriv = PUBLIC;
                        break;
                }
                break;

            case 'E':
                if ( mbl.Pubpriv==PUBLIC )
                {
                    switch ( mbl.Kind )
                    {
                        case LOCAL      :
                            mbl.Pubpriv = PRIVATE;
                            break;
                        case ECHOMAIL :
                            mbl.Pubpriv = PUBLIC;
                            break;
                        case NETMAIL  :
                            mbl.Pubpriv = PRIVATE;
                            break;
                        case EMAIL    :
                            mbl.Pubpriv = PRIVATE;
                            break;
                        case NEWS      :
                            mbl.Pubpriv = PUBLIC;
                            break;
                    }
                }
                else
                {
                    switch ( mbl.Kind )
                    {
                        case LOCAL      :
                            mbl.Pubpriv = PUBLIC;
                            break;
                        case ECHOMAIL :
                            mbl.Pubpriv = PUBLIC;
                            break;
                        case NETMAIL  :
                            mbl.Pubpriv = PRIVATE;
                            break;
                        case EMAIL    :
                            mbl.Pubpriv = PRIVATE;
                            break;
                        case NEWS      :
                            mbl.Pubpriv = PUBLIC;
                            break;
                    }
                }
                break;

            case 'F':
                pass->session->puts ( "\r\n\r\n Info File: \x1b[1;44m                              \x1b[30D" );
                get_str ( pass,rBuffer );
                if ( strcmp ( rBuffer," " ) == 0 ) break;
                strcpy ( mbl.infofile,rBuffer );
                break;

            case 'G':
                mbl.Allowalias = ( mbl.Allowalias ) ?0:1;
                break;

            case 'H':
                ACS ( &mbl.WriteACS,mbl.mbdisplay );
                break;
            case 'I':
                ACS ( &mbl.ReadACS, mbl.mbdisplay );
                break;
            case 'J':
                ACS ( &mbl.SysopACS,mbl.mbdisplay );
                break;

            case 'K':
                mbl.sigtype++;
                if ( mbl.sigtype<0 || mbl.sigtype>2 )
                    mbl.sigtype=0;
                break;

            case 'L':
                edit_aka ( &mbl );
                //mbl.fidoaddr=pick_aka();
                break;

            case 'M':
                pass->session->puts ( "\r\n\r\n Origin Line: \x1b[1;44m                              \x1b[30D" );
                get_str ( pass,rBuffer );
                if ( strcmp ( rBuffer," " ) == 0 ) break;
                strcpy ( mbl.OriginLine,rBuffer );
                break;

            case 'Q':
                _mfunc.save_mbaselist ( &mbl, mbnum );
                _mfunc.save_msgbase ( &mbl );
                return;

        }
    }
}
Ejemplo n.º 3
0
extern int HexForeColorG;
extern int HexForeColorB;
extern int HexFreezeColorR;
extern int HexFreezeColorG;
extern int HexFreezeColorB;
extern int RomFreezeColorR;
extern int RomFreezeColorG;
extern int RomFreezeColorB;

//adelikat:  Hacky fix for Ram Watch recent menu
char* ramWatchRecent[] = {0, 0, 0, 0, 0};

//Structure that contains configuration information
static CFGSTRUCT fceuconfig[] =
{
    ACS(recent_files[0]),
    ACS(recent_files[1]),
    ACS(recent_files[2]),
    ACS(recent_files[3]),
    ACS(recent_files[4]),
    ACS(recent_files[5]),
    ACS(recent_files[6]),
    ACS(recent_files[7]),
    ACS(recent_files[8]),
    ACS(recent_files[9]),

    ACS(memw_recent_files[0]),
    ACS(memw_recent_files[1]),
    ACS(memw_recent_files[2]),
    ACS(memw_recent_files[3]),
    ACS(memw_recent_files[4]),
Ejemplo n.º 4
0
extern int HexForeColorG;
extern int HexForeColorB;
extern int HexFreezeColorR;
extern int HexFreezeColorG;
extern int HexFreezeColorB;
extern int RomFreezeColorR;
extern int RomFreezeColorG;
extern int RomFreezeColorB;

//adelikat:  Hacky fix for Ram Watch recent menu
char* ramWatchRecent[] = {0, 0, 0, 0, 0};

//Structure that contains configuration information
static CFGSTRUCT fceuconfig[] = {

	ACS(recent_files[0]),
	ACS(recent_files[1]),
	ACS(recent_files[2]),
	ACS(recent_files[3]),
	ACS(recent_files[4]),
	ACS(recent_files[5]),
	ACS(recent_files[6]),
	ACS(recent_files[7]),
	ACS(recent_files[8]),
	ACS(recent_files[9]),

	ACS(memw_recent_files[0]),
	ACS(memw_recent_files[1]),
	ACS(memw_recent_files[2]),
	ACS(memw_recent_files[3]),
	ACS(memw_recent_files[4]),