2017-12-11 02:47:29 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
// scripts / payloads dir names
|
2022-10-14 19:45:53 -05:00
|
|
|
#define LANGUAGES_DIR "languages"
|
2017-12-11 02:47:29 +01:00
|
|
|
#define SCRIPTS_DIR "scripts"
|
|
|
|
#define PAYLOADS_DIR "payloads"
|
|
|
|
|
|
|
|
bool CheckSupportFile(const char* fname);
|
|
|
|
size_t LoadSupportFile(const char* fname, void* buffer, size_t max_len);
|
2018-08-02 00:43:33 +02:00
|
|
|
bool SaveSupportFile(const char* fname, void* buffer, size_t len);
|
|
|
|
bool SetAsSupportFile(const char* fname, const char* source);
|
2017-12-11 02:47:29 +01:00
|
|
|
|
2022-10-14 19:45:53 -05:00
|
|
|
bool GetSupportDir(char* path, const char* dname);
|
2017-12-11 02:47:29 +01:00
|
|
|
bool CheckSupportDir(const char* fpath);
|
2018-01-09 01:39:37 +01:00
|
|
|
bool FileSelectorSupport(char* result, const char* text, const char* dname, const char* pattern);
|