Initial Commit

This commit is contained in:
Niklas080208
2026-01-17 19:39:53 +01:00
commit 75b2b603ab
148 changed files with 45979 additions and 0 deletions

19
source/fs.h Normal file
View File

@@ -0,0 +1,19 @@
/*
* HATS Installer - Filesystem operations
*/
#pragma once
#include <utils/types.h>
// Error code to string
const char *fs_error_str(int err);
// File/folder operations - returns 0 on success
int file_copy(const char *src, const char *dst);
int folder_copy(const char *src, const char *dst);
int folder_delete(const char *path);
// File logging
void log_init(const char *path);
void log_close(void);
void log_write(const char *fmt, ...);