blob: e38f82e06d1c141c809e6b4a49130cd2eb3f7dc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
class Utils
{
public:
static bool Detour32(char* src, char* dst, const intptr_t len);
static char* TrampHook32(char* src, char* dst, const intptr_t len);
static int GetSpotifyVersion();
static std::string HexString(BYTE* data, int len);
static std::wstring FixPathStr(std::wstring str);
static std::wstring Utf8ToUtf16(const std::string& str);
static void DownloadSong(std::string fileId, std::string uri, std::string key, std::string authToken, int quality);
static std::string DownloadSpotifyUrl(std::string host, std::string path, std::string authToken);
static bool BadPtr(void* ptr);
};
|