Skip to content

Commit

Permalink
Add random donation requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDoSolitary committed Oct 3, 2018
1 parent 57ae01c commit 031583b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LxRunOffline/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ int wmain(int argc, wchar_t **argv) {
} else {
throw error_other(err_invalid_action, { argv[1] });
}

if (clock() % 10 < 3) {
log_warning(L"Love this tool? Would you like to make a donation: https://github.com/DDoSolitary/LxRunOffline/blob/master/README.md#donation");
}
} catch (const err &e) {
log_error(format_error(e));
if (e.msg_code == err_no_action || e.msg_code == err_invalid_action) {
Expand Down
1 change: 1 addition & 0 deletions LxRunOffline/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <ctime>

#define WIN32_NO_STATUS
#include <Windows.h>
Expand Down

0 comments on commit 031583b

Please sign in to comment.