add file version.h

- add file with version number
- add version number to the terminal output
This commit is contained in:
psychocrypt 2017-05-01 21:37:39 +02:00
parent ef114a1cd3
commit 486057a2f2
3 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,7 @@
#include "jconf.h"
#include "console.h"
#include "donate-level.h"
#include "version.h"
#ifndef CONF_NO_HTTPD
# include "httpd.h"
@ -124,7 +125,7 @@ int main(int argc, char *argv[])
#endif
printer::inst()->print_str("-------------------------------------------------------------------\n");
printer::inst()->print_str("XMR-Stak-AMD mining software, AMD Version.\n");
printer::inst()->print_str( XMR_STAK_NAME" " XMR_STAK_VERSION " mining software, AMD Version.\n");
printer::inst()->print_str("AMD mining code was written by wolf9466.\n");
printer::inst()->print_str("Brought to you by fireice_uk under GPLv3.\n\n");
char buffer[64];

View File

@ -32,8 +32,9 @@
#include "jext.h"
#include "socks.h"
#include "socket.h"
#include "version.h"
#define AGENTID_STR "xmr-stak-amd/1.3.1"
#define AGENTID_STR XMR_STAK_NAME "/" XMR_STAK_VERSION
using namespace rapidjson;

4
version.h Normal file
View File

@ -0,0 +1,4 @@
#pragma once
#define XMR_STAK_NAME "xmr-stak-amd"
#define XMR_STAK_VERSION "1.3.1-dev"