if(newscreenheight>3000)newscreenheight=screenheight;
if(newscreenheight<0)newscreenheight=screenheight;
- //ofstream opstream(":Data:config.txt");
- ofstream opstream("./Data/config.txt");
+ ofstream opstream(ConvertFileName(":Data:config.txt", "w"));
opstream << "Screenwidth:\n";
opstream << newscreenwidth;
opstream << "\nScreenheight:\n";
if(newscreenheight<0)newscreenheight=screenheight;
- //ofstream opstream(":Data:config.txt");
- ofstream opstream("./Data/config.txt");
+ ofstream opstream(ConvertFileName(":Data:config.txt", "w"));
opstream << "Screenwidth:\n";
opstream << newscreenwidth;
opstream << "\nScreenheight:\n";
if(newscreenheight>3000)newscreenheight=screenheight;
if(newscreenheight<0)newscreenheight=screenheight;
- //ofstream opstream(":Data:config.txt");
- ofstream opstream("./Data/config.txt");
+ ofstream opstream(ConvertFileName(":Data:config.txt", "w"));
opstream << "Screenwidth:\n";
opstream << newscreenwidth;
opstream << "\nScreenheight:\n";
}
}
- ifstream ipstream(mapname);
+ ifstream ipstream(ConvertFileName(mapname));
ipstream.ignore(256,':');
ipstream >> numdialogueboxes[numdialogues];
for(i=0;i<numdialogueboxes[numdialogues];i++){
}
}
- ifstream ipstream(mapname);
+ ifstream ipstream(ConvertFileName(mapname));
ipstream.ignore(256,':');
ipstream >> numdialogueboxes[whichdi];
for(i=0;i<numdialogueboxes[whichdi];i++){
if(newscreenheight>3000)newscreenheight=screenheight;
if(newscreenheight<0)newscreenheight=screenheight;
- //ofstream opstream(":Data:config.txt");
- ofstream opstream("./Data/config.txt");
+ ofstream opstream(ConvertFileName(":Data:config.txt", "w"));
opstream << "Screenwidth:\n";
opstream << newscreenwidth;
opstream << "\nScreenheight:\n";
startbonustotal=0;
- // ifstream ipstream(":Data:Campaigns:main.txt");
- ifstream ipstream("./Data/Campaigns/main.txt");
+ ifstream ipstream(ConvertFileName(":Data:Campaigns:main.txt"));
//campaignnumlevels=0;
//accountcampaignchoicesmade[accountactive]=0;
ipstream.ignore(256,':');