Mercurial > msvpvf
annotate src/gui.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 | 0d62f49c1948 |
children | a2e979245441 |
rev | line source |
---|---|
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
1 /** |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
2 * msvpvf GUI for Windows |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
3 * Copyright (c) Paper 2022 |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
4 * |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
5 * View this file with 4-tab spacing; if you don't it will be a formatting nightmare. |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
6 * |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
7 * Permission is hereby granted, free of charge, to any person obtaining a copy |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
8 * of this software and associated documentation files (the "Software"), to deal |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
9 * in the Software without restriction, including without limitation the rights |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
11 * copies of the Software, and to permit persons to whom the Software is |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
12 * furnished to do so, subject to the following conditions: |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
13 * |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
14 * The above copyright notice and this permission notice shall be included in all |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
15 * copies or substantial portions of the Software. |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
16 * |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
23 * SOFTWARE. |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
24 **/ |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
25 #include <stdio.h> |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
26 #include <windows.h> |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
27 #include <stdint.h> |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
28 #include <stdbool.h> |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
29 #include <commdlg.h> |
47
7cb4ca7cf257
Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents:
40
diff
changeset
|
30 #include "../include/common.h" |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
31 #define _WIN32_WINNT 0x0400 |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
32 #define ARRAYSIZE(a) \ |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
33 sizeof(a)/sizeof(a[0]) |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
34 #define OPEN_FILE_BUTTON 0 |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
35 #define COMBOBOX 1 |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
36 #define LISTBOX 2 |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
37 #define SAVE_FILE_BUTTON 3 |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
38 #define VERSION 4 |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
39 #ifdef _MSC_VER |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
40 #define strdup(p) _strdup(p) |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
41 #endif |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
42 |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
43 HWND hWndListBox, hWndComboBox, hWndVersion; |
26
0d19cff70e93
cast for type, make type a static variable
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
20
diff
changeset
|
44 int16_t version = 13; |
28
1b8d066e55ae
actually define our enum properly...
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
26
diff
changeset
|
45 enum types { |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
46 vf, |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
47 veg |
31
9401d767d989
wtf??
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
30
diff
changeset
|
48 } type; |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
49 char* file_name = " "; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
50 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
51 void display_file(char* path) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
52 /* Read the file to memory */ |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
53 FILE* file; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
54 file = fopen(path, "rb"); |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
55 fseek(file, 0x46, SEEK_SET); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
56 int f_version = fgetc(file); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
57 fseek(file, 0x18, SEEK_SET); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
58 TCHAR p[32]; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
59 switch (fgetc(file)) { |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
60 case 0xEF: |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
61 snprintf(p, 32, "File version: %s %d", "VEGAS Pro", f_version); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
62 break; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
63 case 0xF6: |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
64 snprintf(p, 32, "File version: %s %d", "Movie Studio", f_version); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
65 break; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
66 default: |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
67 snprintf(p, 32, "File version: %s %d", "Unknown", f_version); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
68 break; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
69 } |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
70 printf("%s", p); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
71 SendMessage(hWndVersion, WM_SETTEXT, (WPARAM)0, (LPARAM)p); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
72 fclose(file); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
73 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
74 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
75 char* open_file(HWND hWnd) { |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
76 OPENFILENAME ofn; |
9 | 77 char filename[256]; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
78 |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
79 ZeroMemory(&ofn, OPENFILENAME_SIZE_VERSION_400); |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
80 ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
81 ofn.hwndOwner = hWnd; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
82 ofn.lpstrFile = filename; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
83 ofn.lpstrFile[0] = '\0'; |
9 | 84 ofn.nMaxFile = 256; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
85 ofn.lpstrFilter = "Project files\0*.veg;*.vf\0All files\0*.*\0"; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
86 ofn.nFilterIndex = 1; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
87 |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
88 if (GetOpenFileName(&ofn) == 0) { |
38
161ec4e87d0a
Crash fix for Windows 2000 and XP
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
34
diff
changeset
|
89 return " "; |
161ec4e87d0a
Crash fix for Windows 2000 and XP
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
34
diff
changeset
|
90 } |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
91 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
92 display_file(filename); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
93 |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
94 return strdup(filename); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
95 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
96 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
97 void save_file(HWND hWnd, char* input_file) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
98 if (strcmp(input_file, " ") == 0) { |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
99 MessageBox(hWnd, |
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
100 TEXT("Please open a file first!"), |
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
101 TEXT("Invalid input file!"), |
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
102 MB_ICONEXCLAMATION); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
103 return; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
104 } |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
105 OPENFILENAME ofn; |
9 | 106 char output_file[256]; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
107 |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
108 ZeroMemory(&ofn, OPENFILENAME_SIZE_VERSION_400); |
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
109 ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
110 ofn.hwndOwner = hWnd; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
111 ofn.lpstrFile = output_file; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
112 ofn.lpstrFile[0] = '\0'; |
9 | 113 ofn.nMaxFile = 256; |
17
812089083c89
GUI: automatically select project file extension
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
14
diff
changeset
|
114 ofn.lpstrFilter = "Movie Studio project files\0*.vf\0VEGAS Pro project files\0*.veg\0All files\0*.*\0"; |
20
bf872a9c70d9
Add curly brackets around our switch statement so it actually works
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
19
diff
changeset
|
115 ofn.nFilterIndex = (int)type+1; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
116 |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
117 if (GetSaveFileName(&ofn) == 0) { |
38
161ec4e87d0a
Crash fix for Windows 2000 and XP
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
34
diff
changeset
|
118 return; |
161ec4e87d0a
Crash fix for Windows 2000 and XP
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
34
diff
changeset
|
119 } |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
120 |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
121 if (CopyFile((TCHAR*)input_file, (TCHAR*)output_file, 0) == 0) { |
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
122 MessageBox(hWnd, TEXT("Failed to copy original project file! Does the destination file already exist?"), TEXT("Saving project failed!"), MB_ICONEXCLAMATION); |
56
0d62f49c1948
Update gui.c
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
52
diff
changeset
|
123 return; |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
124 } |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
125 FILE* output = fopen(output_file, "r+b"); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
126 if (output == NULL) { |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
127 MessageBox(hWnd, TEXT("Failed to save project file!"), TEXT("Saving project failed!"), MB_ICONEXCLAMATION); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
128 return; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
129 } |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
130 unsigned char* magic; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
131 static const unsigned char magic_veg[] = {0xEF, 0x29, 0xC4, 0x46, 0x4A, 0x90, 0xD2, 0x11, 0x87, 0x22, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A}; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
132 static const unsigned char magic_vf[] = {0xF6, 0x1B, 0x3C, 0x53, 0x35, 0xD6, 0xF3, 0x43, 0x8A, 0x90, 0x64, 0xB8, 0x87, 0x23, 0x1F, 0x7F}; |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
133 if (type == veg) |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
134 memcpy(magic, magic_veg, sizeof(magic_veg)); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
135 else |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
136 memcpy(magic, magic_vf, sizeof(magic_vf) ); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
137 |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
138 set_data(magic, version, output); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
139 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
140 fclose(output); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
141 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
142 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
143 void AddControls(HWND hWnd) { |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
144 /* Versions */ |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
145 hWndComboBox = CreateWindow("ComboBox", NULL, |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
146 CBS_DROPDOWNLIST | CBS_HASSTRINGS | WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_VSCROLL, |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
147 (int)((225 - 50)/2), 30, 50, 200, |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
148 hWnd, (HMENU)COMBOBOX, NULL, NULL); /** |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
149 * I don't understand what half of |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
150 * these arguments are for, so chances |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
151 * are that you don't either. |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
152 **/ |
47
7cb4ca7cf257
Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents:
40
diff
changeset
|
153 TCHAR versions[][10] = {TEXT("8"), TEXT("9"), TEXT("10"), |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
154 TEXT("11"), TEXT("12"), TEXT("13"), |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
155 TEXT("14"), TEXT("15"), TEXT("16"), |
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
156 TEXT("17"), TEXT("18"), TEXT("19")}; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
157 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
158 int i = 0; |
47
7cb4ca7cf257
Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents:
40
diff
changeset
|
159 for (i = 0; i < ARRAYSIZE(versions); i++) { |
7cb4ca7cf257
Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents:
40
diff
changeset
|
160 SendMessage(hWndComboBox, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)versions[i]); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
161 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
162 SendMessage(hWndComboBox, CB_SETCURSEL, (WPARAM)3, (LPARAM)0); |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
163 /* Open File */ |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
164 HWND open_button = CreateWindow("Button", "Open", WS_VISIBLE | WS_CHILD, (int)((225 - 50)/2), 5, 50, 20, hWnd, (HMENU)OPEN_FILE_BUTTON, NULL, NULL); |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
165 /* Type */ |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
166 TCHAR listbox_items[][13] = {TEXT("VEGAS Pro"), TEXT("Movie Studio")}; |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
167 hWndListBox = CreateWindow("Listbox", NULL, WS_VISIBLE | WS_CHILD | LBS_STANDARD | LBS_NOTIFY, (int)((225 - 100)/2), 55, 100, 40, hWnd, (HMENU)LISTBOX, NULL, NULL); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
168 for (i = 0; i < ARRAYSIZE(listbox_items); i++) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
169 int pos = (int)SendMessage(hWndListBox, LB_ADDSTRING, i, (LPARAM) listbox_items[i]); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
170 SendMessage(hWndListBox, LB_SETITEMDATA, pos, (LPARAM) i); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
171 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
172 SendMessage(hWndListBox, LB_SETCURSEL, (WPARAM)0, (LPARAM)0); |
18
b5df3f47a30e
Use enums for `type`
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
17
diff
changeset
|
173 /* Save File */ |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
174 HWND save_button = CreateWindow("Button", "Save", WS_VISIBLE | WS_CHILD, (int)((225 - 50)/2), 90, 50, 20, hWnd, (HMENU)SAVE_FILE_BUTTON, NULL, NULL); |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
175 /* Version and Type display */ |
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
176 hWndVersion = CreateWindow("Edit", "", WS_VISIBLE | WS_CHILD | WS_BORDER | ES_READONLY | ES_CENTER | ES_MULTILINE | SS_CENTER, (int)((225 - 150)/2), 120, 150, 40, hWnd, (HMENU)VERSION, NULL, NULL); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
177 if (open_button == NULL || save_button == NULL || hWndListBox == NULL || hWndComboBox == NULL) |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
178 MessageBox(hWnd, TEXT("how did you even trigger this"), TEXT("GUI could not be initialized!"), MB_ICONEXCLAMATION); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
179 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
180 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
181 bool CALLBACK SetFont(HWND child, LPARAM font) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
182 SendMessage(child, WM_SETFONT, font, true); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
183 return true; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
184 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
185 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
186 LRESULT CALLBACK WindowProcedure(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
187 switch(msg) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
188 case WM_COMMAND: |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
189 if(HIWORD(wParam) == CBN_SELCHANGE) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
190 if (LOWORD(wParam) == COMBOBOX) |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
191 version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
192 if (LOWORD(wParam) == LISTBOX) |
34
800b9eabc548
wait.. is the cast even needed?
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
33
diff
changeset
|
193 type = SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
194 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
195 switch(wParam) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
196 case OPEN_FILE_BUTTON: |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
197 file_name = open_file(hWnd); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
198 case COMBOBOX: |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
199 case LISTBOX: |
58
fcd4b9fe957b
[gui.c]: show version and type in a box
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
56
diff
changeset
|
200 case VERSION: |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
201 break; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
202 case SAVE_FILE_BUTTON: |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
203 save_file(hWnd, file_name); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
204 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
205 break; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
206 case WM_CREATE: { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
207 AddControls(hWnd); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
208 EnumChildWindows(hWnd, (WNDENUMPROC)SetFont, (LPARAM)GetStockObject(DEFAULT_GUI_FONT)); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
209 break; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
210 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
211 case WM_DESTROY: |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
212 PostQuitMessage(0); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
213 break; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
214 default: |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
215 return DefWindowProc(hWnd, msg, wParam, lParam); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
216 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
217 return false; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
218 } |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
219 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
220 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR args, int ncmdshow) { |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
221 WNDCLASS wc = {0}; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
222 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
223 wc.hbrBackground = (HBRUSH)COLOR_WINDOW; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
224 wc.hCursor = LoadCursor(NULL, IDC_ARROW); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
225 wc.hInstance = hInstance; |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
226 wc.lpszClassName = "msvpvf"; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
227 wc.lpfnWndProc = WindowProcedure; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
228 |
51
0f6c604b6863
We don't need to specify that it's ANSI
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
47
diff
changeset
|
229 if (!RegisterClass(&wc)) return -1; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
230 |
52
cf9a14755472
Use Win32 libraries to copy files
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
51
diff
changeset
|
231 CreateWindow(TEXT("msvpvf"), TEXT("Movie Studio / Vegas Pro version spoofer"), WS_OVERLAPPED | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU, 100, 100, 225, 200, NULL, NULL, hInstance, NULL); |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
232 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
233 MSG msg = {0}; |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
234 |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
235 while (GetMessage(&msg, NULL, 0, 0)) { |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
236 TranslateMessage(&msg); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
237 DispatchMessage(&msg); |
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
238 } |
39
b32218b54640
Use ANSI instead of Unicode (Windows 95 support)
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents:
38
diff
changeset
|
239 return 0; |
6
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents:
diff
changeset
|
240 } |