Mercurial > msvpvf
comparison include/common.h @ 79:8f90d5addda9 v2.0
*: refactor... basically everything!
The Win32 GUI version is now unicode-friendly. HOWEVER, ANSI still very
much works. you can configure which version to use through `-DUNICODE=0/1`
in CFLAGS.
the CLI is also friendlier and uses a more sane interface as well.
note: the command line flags (which were optional before) are now required.
Unicode filenames will not work on Windows because Windows sucks.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 20 Mar 2024 17:06:26 -0400 |
parents | fcd4b9fe957b |
children |
comparison
equal
deleted
inserted
replaced
78:fae1d67d8cfd | 79:8f90d5addda9 |
---|---|
1 void set_data(unsigned char* magic, int version, FILE* target); | 1 #ifndef msvpvf_common_h |
2 int copy_file(char* source_file, char* target_file); | 2 #define msvpvf_common_h |
3 | |
4 #include <stdio.h> | |
5 #include <stdint.h> | |
6 | |
7 #ifndef ARRAYSIZE | |
8 #define ARRAYSIZE(x) \ | |
9 (sizeof(x)/sizeof((x)[0])) | |
10 #endif | |
11 | |
12 enum types { | |
13 TYPES_UNKNOWN = 0, | |
14 TYPES_VF, | |
15 TYPES_VEG | |
16 }; | |
17 | |
18 int set_file_information(FILE* target, uint8_t version, enum types type); | |
19 int get_file_information(FILE* input, uint8_t* version, enum types* type); | |
20 | |
21 #endif /* msvpvf_common_h */ |