Mercurial > msvpvf
comparison src/gui.c @ 24:348a4a4beb17
Backport from master
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Thu, 07 Apr 2022 19:32:19 -0400 |
parents | b5df3f47a30e |
children | bf872a9c70d9 |
comparison
equal
deleted
inserted
replaced
23:ee96b991e033 | 24:348a4a4beb17 |
---|---|
35 HWND hWndListBox, hWndComboBox; | 35 HWND hWndListBox, hWndComboBox; |
36 int16_t version = 11; | 36 int16_t version = 11; |
37 enum type { | 37 enum type { |
38 vf, | 38 vf, |
39 veg | 39 veg |
40 } | 40 }; |
41 char* file_name = " "; | 41 char* file_name = " "; |
42 | 42 |
43 void set_data(unsigned char magic[], uint16_t version, FILE* target) { | 43 void set_data(unsigned char magic[], uint16_t version, FILE* target) { |
44 int i; | 44 int i; |
45 fseek(target, 0x46, SEEK_SET); | 45 fseek(target, 0x46, SEEK_SET); |
143 case vf: | 143 case vf: |
144 unsigned char magic[] = {0xEF, 0x29, 0xC4, 0x46, 0x4A, 0x90, 0xD2, 0x11, | 144 unsigned char magic[] = {0xEF, 0x29, 0xC4, 0x46, 0x4A, 0x90, 0xD2, 0x11, |
145 0x87, 0x22, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A}; | 145 0x87, 0x22, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A}; |
146 set_data(magic, version, output); | 146 set_data(magic, version, output); |
147 break; | 147 break; |
148 case veg: | 148 default: |
149 unsigned char magic[] = {0xF6, 0x1B, 0x3C, 0x53, 0x35, 0xD6, 0xF3, 0x43, | 149 unsigned char magic[] = {0xF6, 0x1B, 0x3C, 0x53, 0x35, 0xD6, 0xF3, 0x43, |
150 0x8A, 0x90, 0x64, 0xB8, 0x87, 0x23, 0x1F, 0x7F}; | 150 0x8A, 0x90, 0x64, 0xB8, 0x87, 0x23, 0x1F, 0x7F}; |
151 set_data(magic, version, output); | 151 set_data(magic, version, output); |
152 break; | 152 break; |
153 } | 153 } |