Link Here
|
|
|
1 |
diff -ru ../orig/HLExtract/Main.c ./HLExtract/Main.c |
2 |
--- ../orig/HLExtract/Main.c 2011-09-17 00:41:54.000000000 -0300 |
3 |
+++ ./HLExtract/Main.c 2013-02-11 18:29:02.880217165 -0200 |
4 |
@@ -52,7 +52,7 @@ |
5 |
# define WIN32_LEAN_AND_MEAN |
6 |
# include <windows.h> |
7 |
#else |
8 |
-# include <linux/limits.h> |
9 |
+# include <sys/param.h> |
10 |
# define MAX_PATH PATH_MAX |
11 |
|
12 |
# define FOREGROUND_BLUE 0x0001 |
13 |
@@ -618,15 +618,15 @@ |
14 |
printf("\n"); |
15 |
printf("Example HLExtract usage:\n"); |
16 |
#ifdef _WIN32 |
17 |
- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n"); |
18 |
- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -c -m -v\n"); |
19 |
- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n"); |
20 |
- printf("HLExtract.exe -p \"C:\\half-life.gcf\" -m -f\n"); |
21 |
+ printf("hlextract -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n"); |
22 |
+ printf("hlextract -p \"C:\\half-life.gcf\" -c -m -v\n"); |
23 |
+ printf("hlextract -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n"); |
24 |
+ printf("hlextract -p \"C:\\half-life.gcf\" -m -f\n"); |
25 |
#else |
26 |
- printf("HLExtract.exe -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n"); |
27 |
- printf("HLExtract.exe -p \"~/half-life.gcf\" -c -m -v\n"); |
28 |
- printf("HLExtract.exe -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n"); |
29 |
- printf("HLExtract.exe -p \"~/half-life.gcf\" -m -f\n"); |
30 |
+ printf("hlextract -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n"); |
31 |
+ printf("hlextract -p \"~/half-life.gcf\" -c -m -v\n"); |
32 |
+ printf("hlextract -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n"); |
33 |
+ printf("hlextract -p \"~/half-life.gcf\" -m -f\n"); |
34 |
#endif |
35 |
} |
36 |
|
37 |
@@ -657,6 +657,8 @@ |
38 |
fprintf(pFile, "%s\n", lpPath); |
39 |
} |
40 |
break; |
41 |
+ default: |
42 |
+ ; |
43 |
} |
44 |
} |
45 |
|
46 |
@@ -843,6 +845,8 @@ |
47 |
PrintValidation(eValidation); |
48 |
printf("\n"); |
49 |
break; |
50 |
+ default: |
51 |
+ ; |
52 |
} |
53 |
} |
54 |
else |
55 |
@@ -851,6 +855,8 @@ |
56 |
printf(" \n"); |
57 |
} |
58 |
break; |
59 |
+ default: |
60 |
+ ; |
61 |
} |
62 |
|
63 |
return eValidation; |
64 |
@@ -882,6 +888,8 @@ |
65 |
case HL_ATTRIBUTE_STRING: |
66 |
printf("%s%s: %s%s\n", lpPrefix, pAttribute->lpName, pAttribute->Value.String.lpValue, lpPostfix); |
67 |
break; |
68 |
+ default: |
69 |
+ ; |
70 |
} |
71 |
} |
72 |
|
73 |
@@ -1151,6 +1159,8 @@ |
74 |
printf(" Size: %u B\n", hlFileGetSize(pSubItem)); |
75 |
printf(" Size On Disk: %u B\n", hlFileGetSizeOnDisk(pSubItem)); |
76 |
break; |
77 |
+ default: |
78 |
+ ; |
79 |
} |
80 |
|
81 |
uiItemCount = hlPackageGetItemAttributeCount(); |
82 |
Only in ./HLExtract: Main.c.bak |