/* Please note that this function is vital to the resource editors. Thusly * any changes made to Pass2 should cause the notification of the * resource editor dude. */ static int Pass2( void ) /**********************/ { int noerror; noerror = RcPass2IoInit(); if( noerror ) { switch( Pass2Info.OldFile.Type ) { case EXE_TYPE_NE_WIN: noerror = MergeResExeNE(); break; case EXE_TYPE_NE_OS2: noerror = MergeResExeOS2NE(); break; case EXE_TYPE_PE: noerror = MergeResExePE(); break; case EXE_TYPE_LX: noerror = MergeResExeLX(); break; default: //EXE_TYPE_UNKNOWN RcError( ERR_INTERNAL, INTERR_UNKNOWN_RCSTATUS ); noerror = FALSE; break; } RcPass2IoShutdown( noerror ); } return( noerror ); } /* Pass2 */
/* this function duplicates Pass2 in rc.c of the WRC project */ int WRPass2 ( void ) { int ok; ok = RcPass2IoInit(); if ( ok ) { switch ( Pass2Info.OldFile.Type ) { case EXE_TYPE_NE_WIN: ok = MergeResExeNE(); break; case EXE_TYPE_PE: ok = MergeResExePE(); break; } RcPass2IoShutdown ( ok ); } return ( ok ); }