-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include commit hash in version and x64 optimizations
- Loading branch information
Showing
7 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ pipeHandler::~pipeHandler() | |
|
||
void pipeHandler::aboutDlg(HWND parent) { | ||
std::wostringstream stream; | ||
stream << L"vfwPipe " << VFWPIPE_VERSION_STRING << L" by SuNNjek ([email protected])"; | ||
stream << L"vfwPipe version " << VFWPIPE_VERSION_STRING_WITH_HASH << L"\nBy " << VFWPIPE_AUTHOR_STRING; | ||
MessageBox(parent, stream.str().c_str(), L"About vfwPipe", MB_OK | MB_ICONINFORMATION); | ||
} | ||
|
||
|
@@ -431,11 +431,11 @@ void pipeHandler::replaceSubstring(std::wstring &input, std::wstring toReplace, | |
} | ||
|
||
INT_PTR CALLBACK ConfigDialog(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { | ||
pipeHandler *ph = (pipeHandler*)GetWindowLong(hwndDlg, DWL_USER); | ||
pipeHandler *ph = (pipeHandler*)GetWindowLongPtr(hwndDlg, DWLP_USER); | ||
|
||
if (uMsg == WM_INITDIALOG) { | ||
ph = (pipeHandler*)lParam; | ||
SetWindowLong(hwndDlg, DWLP_USER, (LONG)ph); | ||
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)ph); | ||
} | ||
if (ph != NULL) | ||
return ph->ConfigDialog(hwndDlg, uMsg, wParam, lParam); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,21 @@ | |
#define STRINGIZEMACRO(s) #s | ||
#define STRINGIZE(s) STRINGIZEMACRO(s) | ||
|
||
//Build number automatically inserted by .targets-file, include version_tmp.h instead of version.h and ignore the errors, they'll disappear once you build it :P | ||
//Build number and hash automatically inserted by .targets-file, include version_tmp.h instead of version.h and ignore the errors, they'll disappear once you build it :P | ||
|
||
#define VFWPIPE_VERSION_MAJOR 1 | ||
#define VFWPIPE_VERSION_MINOR 0 | ||
#define VFWPIPE_VERSION_PATCH 1 | ||
#define VFWPIPE_VERSION_BUILD $version$ | ||
|
||
//Hash of last git commit to uniquely identify version | ||
#define VFWPIPE_VERSION_HASH "$hash$" | ||
|
||
#define VFWPIPE_VERSION_STRING "v" STRINGIZE(VFWPIPE_VERSION_MAJOR) "." STRINGIZE(VFWPIPE_VERSION_MINOR) "." STRINGIZE(VFWPIPE_VERSION_PATCH) "." STRINGIZE(VFWPIPE_VERSION_BUILD) | ||
#define VFWPIPE_VERSION_STRING_WITH_HASH VFWPIPE_VERSION_STRING "-" VFWPIPE_VERSION_HASH | ||
|
||
#define VFWPIPE_AUTHOR "Sunner" | ||
#define VFWPIPE_AUTHOR_MAIL "[email protected]" | ||
#define VFWPIPE_AUTHOR_STRING VFWPIPE_AUTHOR " (" VFWPIPE_AUTHOR_MAIL ")" | ||
|
||
#endif // !__VERSION_H__ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters