Hi man,
This is a complete setting changer for TeknoMW3 written by me in C --> just debug it and put the executable in your game folder, and it will work.
Hoping to be useful
Code:
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>
#define dim 20
typedef struct {
char name[dim], clantag[dim], title[dim];
int maxfps, fov;
}user;
void SetColor(short Color){
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); // oppure system("COLOR E9");
SetConsoleTextAttribute(hCon, Color);
}
main() {
FILE* fp;
FILE* f;
FILE* fin;
user utente;
char s[81];
SetColor(11);
printf("The followings are your actual settings:\n");
if ((fp = fopen("teknogods.ini", "r")) == NULL)
exit(1);
else {
while (!feof(fp)) {
SetColor(5);
fscanf(fp, "%s\n", s);
printf("%s\n", s);
}
fclose(fp);
}
printf("\n\n\n");
f = fopen("teknogods.ini", "w+t");
fprintf(f, "[Settings]\n");
SetColor(11);
printf("These will be your own settings.\n");
SetColor(12);
printf("Type your name: ");
SetColor(10);
scanf("%s", utente.name);
SetColor(12);
printf("Type your ClanTag: ");
SetColor(10);
scanf("%s", utente.clantag);
SetColor(12);
printf("Type your title: ");
SetColor(10);
scanf("%s", utente.title);
SetColor(12);
printf("Type your FPS max: ");
SetColor(10);
scanf("%d", &utente.maxfps);
do {
SetColor(12);
printf("Type your FOV: ");
SetColor(10);
scanf("%d", &utente.fov);
} while (utente.fov < 65 || utente.fov>90);
fprintf(f, "Name=%s\n", utente.name);
fprintf(f, "ClanTag=%s\n", utente.clantag);
fprintf(f, "Title=%s\n", utente.title);
fprintf(f, "MaxFps=%d\n", utente.maxfps);
fprintf(f, "FOV=%d\n", utente.fov);
fclose(f);
SetColor(11);
printf("\n\n\nThe followings are your new settings:\n");
if ((fin = fopen("teknogods.ini", "r")) == NULL)
exit(1);
else {
while (!feof(fin)) {
SetColor(14);
fscanf(fin, "%s\n", s);
printf("%s\n", s);
}
fclose(fin);
}
system("pause");
}