mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-12-11 01:55:58 +00:00
22 lines
586 B
C
22 lines
586 B
C
|
#pragma once
|
||
|
|
||
|
#include <Windows.h>
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace diablo2 {
|
||
|
namespace structures {
|
||
|
struct file_handle;
|
||
|
}
|
||
|
|
||
|
class fog {
|
||
|
public:
|
||
|
static char* get_base();
|
||
|
|
||
|
static void get_save_path(char* buffer, size_t bufferSize);
|
||
|
|
||
|
static bool mpq_open_file(char* path, structures::file_handle** outHandle);
|
||
|
static bool mpq_close_file(structures::file_handle* handle);
|
||
|
static bool mpq_read_file(structures::file_handle* handle, void* buffer, size_t size, size_t* bytesToRead);
|
||
|
static size_t mpq_get_file_size(structures::file_handle* handle, size_t* compressedSize);
|
||
|
};
|
||
|
}
|