Jump to content

Useless Funny - version.h


Recommended Posts

Hello I rewrite the version.h file db and game
One thing that greenhouse nothing :d

 

DB - version.h

#include <stdio.h>
#include <stdlib.h>

void WriteVersion()
{
#ifndef __WIN32__
	FILE* fp(fopen("_Version", "w"));
	fprintf(fp, "Databases Revision r%s For FreeBSDn", __DB_VERSION__);
	fprintf(fp, "Gameforge 2013/2014n");
	fprintf(fp, "Modified by - Originale.Elys2n");
	fclose(fp);
#else
	FILE* fp(fopen("_Version", "w"));
	fputs("Databases Revision r40146 For Windowsn", fp);
	fputs("Gameforge 2013/2014n", fp);
	fputs("Modified by - Originale.Elys2n", fp);
	fclose(fp);
#endif
}

GAME -version.h

#include <stdio.h>
#include <stdlib.h>

void WriteVersion()
{
#ifndef __WIN32__
	FILE* fp(fopen("_Version", "w"));
	fprintf(fp, "Game Revision r%s For FreeBSDn", __GAME_VERSION__);
	fprintf(fp, "Gameforge 2013/2014n");
	fprintf(fp, "Modified by - Originale.Elys2n");
	fclose(fp);
#else
	FILE* fp(fopen("_Version", "w"));
	fputs("Game Revision r40267 For Windowsn", fp);
	fputs("Gameforge 2013/2014n", fp);
	fputs("Modified by - Originale.Elys2n", fp);
	fclose(fp);
#endif
}

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.