forked from WiiLink24/AccountLinker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
39 lines (32 loc) · 892 Bytes
/
utils.h
File metadata and controls
39 lines (32 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <ogcsys.h>
#include <string>
#include <array>
#include <vector>
#include <iostream>
extern "C" {
int __CONF_GetTxt(const char *name, char *buf, int length);
}
const std::string version = "v2.1.0";
struct File {
void* data;
size_t size;
std::string error;
s32 error_code;
};
File* ISFS_GetFile(std::string_view path);
std::string HexToString(const std::vector<u8> &hex);
std::string Base64Encode(const unsigned char* data, size_t size);
std::string GetSerialNumber();
std::array<u8, 160 / 8> SHA1Digest(const u8* msg, size_t len);
inline void PrintHeader() {
std::cout << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "WiiLink Account Linker - (c) 2025 WiiLink" << std::endl;
std::cout << version << std::endl;
std::cout << std::endl;
}
inline void ClearScreen() {
std::cout << "\x1b[2J";
}