Fearless.exe modification
Posted: Sun Apr 01, 2012 7:48 pm
Hi, i have a file (.c) and i want to remove some parts from it. Problem is that i cant complile the file because dev c++ says it has around 40 errors.
The original file can be found in the attachments. (Is from aluigi)
The part that should be removed is:
if(!gsname || !gsname[0]) {
//if(!games[game_num].gsname || !games[game_num].gsname[0]) { // "test"
if(myguid) {
// ok?
} else {
if(gsname && !gsname[0]) {
gsname = "poriginpc"; // auto
} else {
printf("\n"
"Error: no gamename received from the query\n"
" you must specify the game or its guid\n"
" for example use the following command if the server is F.E.A.R.:\n"
" %s -g fear %s %s\n"
" or\n"
" %s -g ? %s %s\n"
" for the list of supported games\n"
"\n",
argv[0], argv[1], argv[2],
argv[0], argv[1], argv[2]);
exit(1);
}
}
}
The else with the no gamename received can be left out. So that the program will proceed even if it didnt received a a gamename. I think it will make this program work for any fear server.
The original file can be found in the attachments. (Is from aluigi)
The part that should be removed is:
if(!gsname || !gsname[0]) {
//if(!games[game_num].gsname || !games[game_num].gsname[0]) { // "test"
if(myguid) {
// ok?
} else {
if(gsname && !gsname[0]) {
gsname = "poriginpc"; // auto
} else {
printf("\n"
"Error: no gamename received from the query\n"
" you must specify the game or its guid\n"
" for example use the following command if the server is F.E.A.R.:\n"
" %s -g fear %s %s\n"
" or\n"
" %s -g ? %s %s\n"
" for the list of supported games\n"
"\n",
argv[0], argv[1], argv[2],
argv[0], argv[1], argv[2]);
exit(1);
}
}
}
The else with the no gamename received can be left out. So that the program will proceed even if it didnt received a a gamename. I think it will make this program work for any fear server.