diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-31 00:33:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-31 00:33:53 +0500 |
| commit | a15f24294d5113fec767fb9007d906f534dc0485 (patch) | |
| tree | 20c869d1444a91256a10d4dfe0376f2f72ab4021 /src/xd.c | |
| parent | 2ca545f754acc9c8a00b5ce8c0b3ca1175c74a3a (diff) | |
upd: moved some editor logic to tileset and floor files
Diffstat (limited to 'src/xd.c')
| -rw-r--r-- | src/xd.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/xd.c b/src/xd.c deleted file mode 100644 index 32cc83e..0000000 --- a/src/xd.c +++ /dev/null @@ -1,35 +0,0 @@ -#include "xd.h" - -#include <raylib.h> -#include <stdio.h> -#include <stdlib.h> - -XdData Xd_LoadFromFile(const char *filePath) { - FILE *file = fopen(filePath, "rb"); - - XdData data; - fread(&data, sizeof(XdData), 1, file); - printf("1 %s\n", data.name); - - fclose(file); - return data; -} - -void Xd_SaveFile(const char *filePath, XdData *data) { - if (data == NULL) { - printf("data is null\n"); - return; - } - - FILE *file = fopen(filePath, "wb"); - - if (file == NULL) { - perror("Failed to open a file"); - return; - } - - fwrite(data, sizeof(XdData), 1, file); - - fclose(file); - printf("saved\n"); -} |
