changeset 13:a4e604789e2e

Multiple changes Move non-required includes from common.h to CLI and fix GUI compatibility with MSVC
author Paper <mrpapersonic@gmail.com>
date Tue, 01 Feb 2022 21:01:29 -0500
parents d2cd8c5672fa
children 423aa3429d21
files include/common.h src/main.c
diffstat 2 files changed, 2 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/include/common.h	Wed Jan 26 23:12:41 2022 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#include <unistd.h>
-#include <getopt.h>
-
-static struct option options_long[5];
-char* strremove(char* str, const char* sub);
-void set_data(unsigned char magic[], uint16_t version, FILE* target);
-int copy_file(char* source_file, char* target_file);
--- a/src/main.c	Wed Jan 26 23:12:41 2022 -0500
+++ b/src/main.c	Tue Feb 01 21:01:29 2022 -0500
@@ -1,13 +1,10 @@
-/* Movie Studio / Vegas Pro version spoofer
- * by Paper
-*/
-
 #include <inttypes.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "../include/common.h"
+#include <unistd.h>
+#include <getopt.h>
 #ifdef _MSC_VER
 #define strdup(p) _strdup(p)
 #endif