Last change
on this file since 43 was 37, checked in by Ben Rietbroek, 11 years ago |
Reworked Build Environment [2012-02-15]
WARNING!!
All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!
Changes
o Reworked build environment
o Start made with coding FIXCODE in C
o Moved MBR protection image
o New overlap macro
o Protect type 0x35 from edit (user popup)
o Protect type 0x35 from adding to menu (user popup)
o More...
! No LVM Label change yet
Note
o Changed license to GPL v3
See file COPYING in trunk.
|
File size:
971 bytes
|
Line | |
---|
1 | #include "FIXCODE.H"
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifdef PLATFORM_DOS
|
---|
5 | char welcome[] = "FIXCODE: Hello from DOS !";
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifdef PLATFORM_OS2
|
---|
9 | char welcome[] = "FIXCODE: Hello from OS/2 !";
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifdef PLATFORM_WINNT
|
---|
13 | char welcome[] = "FIXCODE: Hello from Windows NT !";
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #ifdef PLATFORM_LINUX
|
---|
17 | char welcome[] = "FIXCODE: Hello from Linux !";
|
---|
18 | #endif
|
---|
19 |
|
---|
20 |
|
---|
21 | #define IN_FILE "AIR-BOOT.COM" // Target from assembly.
|
---|
22 | #define MERGE_FILE "MBR_PROT.BIN" // MBR protection TSR.
|
---|
23 | #define OUT_FILE "AIRBOOT.BIN" // Generated loader image.
|
---|
24 |
|
---|
25 |
|
---|
26 |
|
---|
27 | int main(int argc, char* argv[]) {
|
---|
28 | FILE* ifile = NULL;
|
---|
29 | FILE* mfile = NULL;
|
---|
30 | FILE* ofile = NULL;
|
---|
31 |
|
---|
32 | ifile = fopen(IN_FILE, "rb");
|
---|
33 | mfile = fopen(MERGE_FILE, "rb");
|
---|
34 | ofile = fopen(OUT_FILE, "wb");
|
---|
35 |
|
---|
36 |
|
---|
37 | printf("\n%s\n", welcome);
|
---|
38 |
|
---|
39 | #if DEBUG_LEVEL > 0
|
---|
40 | printf("Debug level is: %d", DEBUG_LEVEL);
|
---|
41 | #endif
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | return 0L;
|
---|
47 | }
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.