Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteCorum committed Sep 21, 2024
1 parent 024d7cd commit bdd2107
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
8 changes: 0 additions & 8 deletions DragonBurn/Core/Init.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@ namespace Init
class Client
{
public:
// Get the maximum framerate with vsync
//static int getMaxFrameRate() {
// HDC hdc = GetDC(NULL);
// int rate = GetDeviceCaps(hdc, VREFRESH);
// ReleaseDC(NULL, hdc);
// return rate;
//}

static int CheckCS2Version()
{
long curVer;
Expand Down
35 changes: 0 additions & 35 deletions DragonBurn/Helpers/WebApi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#pragma once
//#include <curl/curl.h>
#include <string>
#include <Windows.h>
#include <iostream>
Expand All @@ -8,40 +7,6 @@

namespace Web
{
//size_t writeCallback(void* ptr, size_t size, size_t nmemb, std::string* buffer) {
// buffer->append((char*)ptr, size * nmemb);
// return size * nmemb;
//}

//bool LoadData(std::string url, std::string& response)
//{
// CURL* curl;
// CURLcode res;

// curl = curl_easy_init();
// if (curl)
// {
// curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
// curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
// writeCallback);
// curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response);

// res = curl_easy_perform(curl);

// if (res != CURLE_OK)
// {
// return false;
// }

// curl_easy_cleanup(curl);
// return true;
// }
// else
// {
// return false;
// }
//}

inline bool CheckConnection()
{
int result = system("ping google.com > nul");
Expand Down

0 comments on commit bdd2107

Please sign in to comment.