pcsx2/fps2bios/romver.c
Jake.Stine 6ebfae8ef1 Re-Added eol-style:native properties to the repository. The settings got lost when we merged from Playground to Official.
Added interface.cpp (plugin/pcsx2 interface) and savestate.cpp to SPU2ghz, to help clean up SPU2.cpp.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@463 96395faa-99c1-11dd-bbfe-3dabce05a288
2009-02-09 21:15:56 +00:00

38 lines
710 B
C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
int main(int argc, char *argv[]) {
char str[256];
FILE *f;
time_t t;
int version;
int build;
printf("fps2bios romver generator\n");
if (argc < 3){
printf("usage: %s version build\n", argv[0]);
return 1;
}
f = fopen("ROMVER", "wb");
if (f == NULL) {
printf("failed to create ROMVER\n");
return 1;
}
t = time(NULL);
strftime(str, 256, "%Y%m%d", localtime(&t));
version = strtol(argv[1], (char**)NULL, 0);
build = strtol(argv[2], (char**)NULL, 0);
fprintf(f, "%2.2d%2.2dPD%s\n", version, build, str);
fputc(0, f);
fclose(f);
return 0;
}