comparison src/common.c @ 58:fcd4b9fe957b

[gui.c]: show version and type in a box
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Thu, 21 Jul 2022 00:46:18 -0400
parents 652343b56a60
children 8f90d5addda9
comparison
equal deleted inserted replaced
57:01c605e78f48 58:fcd4b9fe957b
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <stdint.h> 2 #include <stdint.h>
3 3
4 void set_data(unsigned char magic[], uint16_t version, FILE* target) { 4 void set_data(unsigned char* magic, uint16_t version, FILE* target) {
5 int i; 5 int i;
6 fseek(target, 0x46, SEEK_SET); 6 fseek(target, 0x46, SEEK_SET);
7 fputc(version, target); 7 fputc(version, target);
8 for (i=0; i<=sizeof(*magic); ++i) { 8 for (i=0; i<=sizeof(*magic); ++i) {
9 fseek(target, 0x18+i, SEEK_SET); 9 fseek(target, 0x18+i, SEEK_SET);