jadeite/game_payload/include/utils.h

15 lines
373 B
C
Raw Normal View History

2023-06-05 21:23:08 +00:00
#pragma once
#include <stdint.h>
2023-08-09 22:00:24 +00:00
#define UTILS_COUNT(arr) (sizeof(arr) / sizeof(*arr))
2023-08-04 19:55:10 +00:00
int utils_path_exists(const wchar_t *filePath);
uint32_t utils_file_crc32c(const wchar_t *filePath);
2023-06-08 19:33:37 +00:00
2023-08-04 19:55:10 +00:00
void utils_create_dir_recursively(const wchar_t *path);
void utils_save_to_file(const wchar_t *filePath, const void *buf, size_t length);
2023-06-08 19:33:37 +00:00
char utils_env_enabled(const char *env);