PayloadLoaderInstaller/source/fs/FSUtils.h

18 lines
469 B
C
Raw Normal View History

2020-10-14 13:54:25 +02:00
#pragma once
#include <string>
2022-07-24 17:07:42 +02:00
#include <wut_types.h>
2020-10-14 13:54:25 +02:00
class FSUtils {
public:
static int32_t LoadFileToMem(const char *filepath, uint8_t **inbuffer, uint32_t *size);
static int32_t CreateSubfolder(const char *fullpath);
static int32_t CheckFile(const char *filepath);
static bool copyFile(const std::string &in, const std::string &out);
2020-11-30 22:26:23 +01:00
static int32_t saveBufferToFile(const char *path, const void *buffer, uint32_t size);
};