2020-11-02 06:08:10 +01:00
|
|
|
#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);
|
2020-11-27 11:02:27 +01:00
|
|
|
static std::wstring FixPathStr(std::wstring str);
|
2020-11-17 20:11:33 +01:00
|
|
|
static std::wstring Utf8ToUtf16(const std::string& str);
|
|
|
|
static void DownloadSong(std::string fileId, std::string fileUri, std::string key, std::string authToken);
|
|
|
|
static std::string DownloadSpotifyUrl(std::string host, std::string path, std::string authToken);
|
|
|
|
static bool BadPtr(void* ptr);
|
2020-11-02 06:08:10 +01:00
|
|
|
};
|
|
|
|
|