Advertisement
Guest User

version.cpp

a guest
Nov 5th, 2015
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void WriteVersion()
  4. {
  5. #ifndef __WIN32__
  6. FILE* fp = fopen("ver.txt", "w");
  7.  
  8. if (fp)
  9. {
  10. fprintf(fp, "emulated game server revision: %s\n", __SVN_VERSION__);
  11. //fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__);
  12. fclose(fp);
  13. }
  14. #endif
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement