Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ColdWar Switcher.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <cstdlib>
- #include <io.h>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- cout << "Command and Conquer: Red Alert: Cold War switcher By White" << endl;
- cout << "-------------------------------------------------------------------------------" << endl;
- if ( _access( "Aftr_CW.ini", 0 ) !=-1 ) // checking if CW is installed...
- {
- cout << "Cold War Mod detected, Switching from default RA to ColdWar... Plase Wait." << endl;
- rename ( "CONQUER.MIX", "CONQUER.RA_" );
- rename ( "EXPAND2.MIX", "EXPAND2.RA_" );
- rename ( "EXPAND.MIX", "EXPAND.RA_ " );
- rename ( "REDALERT.MIX", "REDALERT.RA_" );
- rename ( "CONQ_CW.MIX", "CONQUER.MIX" );
- rename ( "PAND2_CW.MIX", "EXPAND2.MIX" );
- rename ( "PAND_CW.MIX", "EXPAND.MIX" );
- rename ( "REDAL_CW.MIX", "REDALERT.MIX" );
- rename ( "Aftr_CW.ini", "Aftrmath.ini" );
- cout << "Switched. You can run this application agan to switch back to Red Alert." << endl;
- cout << "Have fun" << endl;
- system ("PAUSE");
- system ("exit");
- }
- else
- {
- if ( _access( "CONQUER.RA_", 0 ) !=-1 )
- {
- cout << "Switching it back to default Red Alert... Please Wait." << endl;
- rename ( "CONQUER.MIX", "CONQ_CW.MIX" );
- rename ( "EXPAND2.MIX", "PAND2_CW.MIX" );
- rename ( "EXPAND.MIX", "PAND_CW.MIX" );
- rename ( "REDALERT.MIX", "REDAL_CW.MIX" );
- rename ( "Aftrmath.ini", "Aftr_CW.ini" );
- rename ( "CONQUER.RA_", "CONQUER.MIX" );
- rename ( "EXPAND2.RA_", "EXPAND2.MIX" );
- rename ( "EXPAND.RA_", "EXPAND.MIX" );
- rename ( "REDALERT.RA_", "REDALERT.MIX" );
- cout << "Switched. You can run this application agan to switch back to ColdWar." << endl;
- cout << "Have fun" << endl;
- system ("PAUSE");
- system ("exit");
- }
- else
- {
- cout << "ColdWar is NOT installed, Copy everything from the ZIP file to RA folder" << endl;
- system ("pause");
- system ("exit");
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment