Skip to content

Commit

Permalink
add file version.h
Browse files Browse the repository at this point in the history
- add file with version number
- add version number to the terminal output
  • Loading branch information
psychocrypt committed Apr 30, 2017
1 parent 620cd67 commit e0356cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli-miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "console.h"
#include "donate-level.h"
#include "autoAdjust.hpp"
#include "version.h"

#ifndef CONF_NO_HTTPD
# include "httpd.h"
Expand Down Expand Up @@ -133,7 +134,7 @@ int main(int argc, char *argv[])
#endif

printer::inst()->print_str("-------------------------------------------------------------------\n");
printer::inst()->print_str("XMR-Stak-CPU mining software, CPU Version.\n");
printer::inst()->print_str( XMR_STAK_NAME" " XMR_STAK_VERSION " mining software, CPU Version.\n");
printer::inst()->print_str("Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).\n");
printer::inst()->print_str("Brought to you by fireice_uk and psychocrypt under GPLv3.\n\n");
char buffer[64];
Expand Down
3 changes: 2 additions & 1 deletion jpsock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
#include "jext.h"
#include "socks.h"
#include "socket.h"
#include "version.h"

#define AGENTID_STR "xmr-stak-cpu/1.3.1"
#define AGENTID_STR XMR_STAK_NAME "/" XMR_STAK_VERSION

using namespace rapidjson;

Expand Down
4 changes: 4 additions & 0 deletions version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pragma once

#define XMR_STAK_NAME "xmr-stak-cpu"
#define XMR_STAK_VERSION "1.4.1-dev"

0 comments on commit e0356cd

Please sign in to comment.