Skip to content

Commit

Permalink
define a global version string
Browse files Browse the repository at this point in the history
  • Loading branch information
qnnnnez committed Jun 3, 2017
1 parent 005cce1 commit 1c2f50a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) <year> <copyright holders>
Copyright (c) 2017 qnnnnez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
4 changes: 1 addition & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ void printUsage(int argc, char *argv[])

void printVersion()
{
const string VERSION = "0.3.1";
cout << "scpak version";
cout << VERSION << endl;
cout << "scpak version " << scpak::version << endl;
cout << "scpak is a tool for pack/unpack Survivalcraft pak format" << endl;
cout << "visit https://github.com/qnnnnez/scpak for more information" << endl;
}
Expand Down
2 changes: 2 additions & 0 deletions scpak.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace scpak
{
const char *version = "0.3.1";

typedef std::uint8_t byte;

inline bool isPowerOfTwo(int n)
Expand Down

0 comments on commit 1c2f50a

Please sign in to comment.