mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 12:03:39 +00:00
14 lines
647 B
C++
14 lines
647 B
C++
#pragma once
|
|
#include "llapi/Global.h"
|
|
#include <fstream>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
LIAPI FILE* GetFILEfromFstream(std::fstream& fs);
|
|
LIAPI HANDLE GetHANDLEfromFstream(std::fstream& fs);
|
|
|
|
LIAPI std::vector<std::string> GetFileNameList(const std::string& dir);
|
|
LIAPI bool CreateDirs(const std::string path);
|
|
LIAPI std::optional<std::string> ReadAllFile(const std::string& filePath, bool isBinary = false);
|
|
LIAPI bool WriteAllFile(const std::string& filePath, const std::string& content, bool isBinary = false);
|
|
LIAPI std::pair<int, std::string> UncompressFile(const std::string& filePath, const std::string& toDir, int processTimeout); |