Skip to content

Commit

Permalink
Merge pull request #146 from ByteCorum/WIP
Browse files Browse the repository at this point in the history
Small fix
  • Loading branch information
ByteCorum authored Sep 21, 2024
2 parents 548cfc1 + b86aecd commit f3cfcbc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 46 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ DragonBurn/Libs/zlib/include/* linguist-vendored
DragonBurn/Resources/Sounds.hpp linguist-vendored
DragonBurn/Resources/Images.hpp linguist-vendored
DragonBurn/Resources/WeaponIcon.hpp linguist-vendored
DragonBurn/Resources/Font.hpp linguist-vendored
DragonBurn/Resources/Font.hpp linguist-vendored
DragonBurn/Core/GUI.h linguist-vendored
13 changes: 12 additions & 1 deletion DragonBurn/Core/Cheats.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#include <string>
//
//______ ______
//| _ \ | ___ \
//| | | |_ __ __ _ __ _ ___ _ __ | |_/ /_ _ _ __ _ __
//| | | | '__/ _` |/ _` |/ _ \| '_ \| ___ \ | | | '__| '_ \
//| |/ /| | | (_| | (_| | (_) | | | | |_/ / |_| | | | | | |
//|___/ |_| \__,_|\__, |\___/|_| |_\____/ \__,_|_| |_| |_|
// __/ |
// |___/
//https://github.com/ByteCorum/DragonBurn

#include <string>
#include <thread>
#include <future>
#include <iostream>
Expand Down
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
13 changes: 12 additions & 1 deletion DragonBurn/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#include "Core/Cheats.h"
//
//______ ______
//| _ \ | ___ \
//| | | |_ __ __ _ __ _ ___ _ __ | |_/ /_ _ _ __ _ __
//| | | | '__/ _` |/ _` |/ _ \| '_ \| ___ \ | | | '__| '_ \
//| |/ /| | | (_| | (_| | (_) | | | | |_/ / |_| | | | | | |
//|___/ |_| \__,_|\__, |\___/|_| |_\____/ \__,_|_| |_| |_|
// __/ |
// |___/
//https://github.com/ByteCorum/DragonBurn

#include "Core/Cheats.h"
#include "Offsets/Offsets.h"
#include "Resources/Language.hpp"
#include "Core/Init.h"
Expand Down

0 comments on commit f3cfcbc

Please sign in to comment.