diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2020-02-16 14:02:25 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2020-02-16 14:02:25 +0100 |
| commit | bc66a0b5ff2777d8b2c5326a5645fe0353677bdf (patch) | |
| tree | 7aa7df7de015de6f8efe1ff321c4b9b1658b8c0a /src/licensing.c | |
| parent | 288c9a6b7a891a5705e3e76f8438d116b7314121 (diff) | |
licensing on linux
Diffstat (limited to 'src/licensing.c')
| -rw-r--r-- | src/licensing.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/licensing.c b/src/licensing.c index bcbca80..834313f 100644 --- a/src/licensing.c +++ b/src/licensing.c @@ -14,18 +14,10 @@ static void* validate_license_thread(void *arg) char response[MAX_INPUT_LENGTH]; if (platform_send_http_request("api.aldrik.org", params, response)) { - printf("yes\n"); cJSON *result = cJSON_Parse(response); - printf("%s\n", response); if (!result) return false; - printf("double yes\n"); cJSON *canRun = cJSON_GetObjectItem(result, "canRun"); license_is_valid = canRun->valueint; - printf("%s\n", response); - } - else - { - printf("failed to send request\n"); } return 0; @@ -36,7 +28,7 @@ void validate_license() license_is_valid = true; #ifdef MODE_DEVELOPER - //return; + return; #endif thread license_thread = thread_start(validate_license_thread, NULL); |
