Skip to content

Instantly share code, notes, and snippets.

@Steffo99
Created December 16, 2013 18:49
Show Gist options
  • Save Steffo99/7992209 to your computer and use it in GitHub Desktop.
Save Steffo99/7992209 to your computer and use it in GitHub Desktop.
Ecco qui il programmino nuovo di installazione modpack!
#include <iostream>
#include <stdlib.h>
using namespace std;
/* Programma creato da Steffo, della Royal Games */
int main() {
cout << "Questo è il programma di installazione della Royal Games!" << endl;
cerr << "Il programma è ancora in Alpha. Non dovresti usarlo!" << endl;
cout << "Cosa vuoi fare?" << endl;
cout << "1 - installa il modpack di Minecraft." << endl;
cout << "2 - richiedi assistenza con TeamViewer.\a" << endl;
int action;
cin >> action;
//Modpack Minecraft
if (action == 1) {
cout << "Stai installando il modpack di Minecraft!" << endl;
cout << "Questo programma cancellera' le cartelle \\bin, \\config, \\mods, \\coremods, \\resources, \\lib, \\texturepacks, e \\schematics di .minecraft e creera' delle giunzioni di directory tra Dropbox e .minecraft." << endl;
system("PAUSE");
system("mkdir %APPDATA%\\.minecraft");
cout << "La cartella .minecraft è stata creata." << endl;
system("rmdir /s /q %APPDATA%\\.minecraft\\bin");
system("rmdir /s /q %APPDATA%\\.minecraft\\config");
system("rmdir /s /q %APPDATA%\\.minecraft\\mods");
system("rmdir /s /q %APPDATA%\\.minecraft\\coremods");
system("rmdir /s /q %APPDATA%\\.minecraft\\resources");
system("rmdir /s /q %APPDATA%\\.minecraft\\lib");
system("rmdir /s /q %APPDATA%\\.minecraft\\texturepacks");
system("rmdir /s /q %APPDATA%\\.minecraft\\schematics");
cout << "Le cartelle specificate sono state rimosse." << endl;
system("mklink /J %APPDATA%\\.minecraft\\bin C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\bin");
system("mklink /J %APPDATA%\\.minecraft\\config C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\config");
system("mklink /J %APPDATA%\\.minecraft\\mods C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\mods");
system("mklink /J %APPDATA%\\.minecraft\\coremods C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\coremods");
system("mklink /J %APPDATA%\\.minecraft\\resources C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\resources");
system("mklink /J %APPDATA%\\.minecraft\\lib C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\lib");
system("mklink /J %APPDATA%\\.minecraft\\texturepacks C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\texturepacks");
system("mklink /J %APPDATA%\\.minecraft\\schematics C:%HOMEPATH%\\Dropbox\\\"Il Castello dei Videogiochi\"\\\"Castle Server Minecraft\"\\RoyalNewestPack\\schematics");
cout << "Giunzioni create!" << endl;
cout << "Installazione completata!" << endl;
cout << "Ora apri Minecraft." << endl;
}
//Supporto Teamviewer
if (action == 2) {
cerr << "Funzione non attualmente supportata." << endl;
system("PAUSE");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment