Guest User

Untitled

a guest
Oct 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. // ColdWar Switcher.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <cstdlib>
  7. #include <io.h>
  8.  
  9. using namespace std;
  10.  
  11. int _tmain(int argc, _TCHAR* argv[])
  12. {
  13. cout << "Command and Conquer: Red Alert: Cold War switcher By White" << endl;
  14. cout << "-------------------------------------------------------------------------------" << endl;
  15. if ( _access( "Aftr_CW.ini", 0 ) !=-1 ) // checking if CW is installed...
  16. {
  17. cout << "Cold War Mod detected, Switching from default RA to ColdWar... Plase Wait." << endl;
  18. rename ( "CONQUER.MIX", "CONQUER.RA_" );
  19. rename ( "EXPAND2.MIX", "EXPAND2.RA_" );
  20. rename ( "EXPAND.MIX", "EXPAND.RA_ " );
  21. rename ( "REDALERT.MIX", "REDALERT.RA_" );
  22. rename ( "CONQ_CW.MIX", "CONQUER.MIX" );
  23. rename ( "PAND2_CW.MIX", "EXPAND2.MIX" );
  24. rename ( "PAND_CW.MIX", "EXPAND.MIX" );
  25. rename ( "REDAL_CW.MIX", "REDALERT.MIX" );
  26. rename ( "Aftr_CW.ini", "Aftrmath.ini" );
  27. cout << "Switched. You can run this application agan to switch back to Red Alert." << endl;
  28. cout << "Have fun" << endl;
  29. system ("PAUSE");
  30. system ("exit");
  31. }
  32. else
  33. {
  34. if ( _access( "CONQUER.RA_", 0 ) !=-1 )
  35. {
  36. cout << "Switching it back to default Red Alert... Please Wait." << endl;
  37. rename ( "CONQUER.MIX", "CONQ_CW.MIX" );
  38. rename ( "EXPAND2.MIX", "PAND2_CW.MIX" );
  39. rename ( "EXPAND.MIX", "PAND_CW.MIX" );
  40. rename ( "REDALERT.MIX", "REDAL_CW.MIX" );
  41. rename ( "Aftrmath.ini", "Aftr_CW.ini" );
  42. rename ( "CONQUER.RA_", "CONQUER.MIX" );
  43. rename ( "EXPAND2.RA_", "EXPAND2.MIX" );
  44. rename ( "EXPAND.RA_", "EXPAND.MIX" );
  45. rename ( "REDALERT.RA_", "REDALERT.MIX" );
  46. cout << "Switched. You can run this application agan to switch back to ColdWar." << endl;
  47. cout << "Have fun" << endl;
  48. system ("PAUSE");
  49. system ("exit");
  50. }
  51. else
  52. {
  53. cout << "ColdWar is NOT installed, Copy everything from the ZIP file to RA folder" << endl;
  54. system ("pause");
  55. system ("exit");
  56. }
  57. }
  58. return 0;
  59. }
Add Comment
Please, Sign In to add comment