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(newscreenwidth==840&&newscreenheight==524)whichres=5;
if(newscreenwidth==1024&&newscreenheight==640)whichres=6;
if(newscreenwidth==1344&&newscreenheight==840)whichres=7;
+ if(newscreenwidth==1920&&newscreenheight==1200)whichres=8;
- if(whichres==-1||whichres==7){
+ if(whichres==-1||whichres==8){
newscreenwidth=640;
newscreenheight=480;
}
newscreenwidth=1344;
newscreenheight=840;
}
+ if(whichres==7){
+ newscreenwidth=1920;
+ newscreenheight=1200;
+ }
}
if(Button()&&!oldbutton&&selected==1){
newdetail++;
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,':');