|
46 | 46 |
|
47 | 47 | ---------------------------------------------------------------------------------------- |
48 | 48 |
|
49 | | --- patch paths |
50 | | -if ReadDataFile then |
51 | | - ReadDataFile = replaceAddonPath(ReadDataFile) |
52 | | - ReadDataFile = replaceAllLVL(ReadDataFile) |
53 | | -end |
54 | | - |
55 | | -if ReadDataFileInGame then |
56 | | - ReadDataFileInGame = replaceAddonPath(ReadDataFileInGame) |
57 | | - ReadDataFileInGame = replaceAllLVL(ReadDataFileInGame) |
58 | | -end |
| 49 | +if(ScriptCB_IsFileExist("side\\all2.lvl") == 1) then |
| 50 | + print("This is BF Classic Collection; patching file paths") |
| 51 | + -- patch paths |
| 52 | + if ReadDataFile then |
| 53 | + ReadDataFile = replaceAddonPath(ReadDataFile) |
| 54 | + ReadDataFile = replaceAllLVL(ReadDataFile) |
| 55 | + end |
59 | 56 |
|
60 | | -if ScriptCB_IsFileExist then |
61 | | - ScriptCB_IsFileExist = replaceAddonPath(ScriptCB_IsFileExist) |
62 | | -end |
| 57 | + if ReadDataFileInGame then |
| 58 | + ReadDataFileInGame = replaceAddonPath(ReadDataFileInGame) |
| 59 | + ReadDataFileInGame = replaceAllLVL(ReadDataFileInGame) |
| 60 | + end |
63 | 61 |
|
64 | | --- not needed, ScriptCB_DoFile 'does' a file that has already been read into memory. |
65 | | ---if ScriptCB_DoFile then |
66 | | --- ScriptCB_DoFile = replaceAddonPath(ScriptCB_DoFile) |
67 | | ---end |
| 62 | + if ScriptCB_IsFileExist then |
| 63 | + ScriptCB_IsFileExist = replaceAddonPath(ScriptCB_IsFileExist) |
| 64 | + end |
68 | 65 |
|
69 | | -if PlayAudioStream then |
70 | | - PlayAudioStream = replaceAddonPath(PlayAudioStream) |
71 | | -end |
| 66 | + -- not needed, ScriptCB_DoFile 'does' a file that has already been read into memory. |
| 67 | + --if ScriptCB_DoFile then |
| 68 | + -- ScriptCB_DoFile = replaceAddonPath(ScriptCB_DoFile) |
| 69 | + --end |
72 | 70 |
|
73 | | --- I do not know who came up with the idea to make this a whole other function, but screw you |
74 | | -if PlayAudioStreamUsingProperties then |
75 | | - PlayAudioStreamUsingProperties = replaceAddonPath(PlayAudioStreamUsingProperties) |
76 | | -end |
| 71 | + if PlayAudioStream then |
| 72 | + PlayAudioStream = replaceAddonPath(PlayAudioStream) |
| 73 | + end |
77 | 74 |
|
78 | | -if OpenAudioStream then |
79 | | - OpenAudioStream = replaceAddonPath(OpenAudioStream) |
80 | | -end |
| 75 | + -- I do not know who came up with the idea to make this a whole other function, but screw you |
| 76 | + if PlayAudioStreamUsingProperties then |
| 77 | + PlayAudioStreamUsingProperties = replaceAddonPath(PlayAudioStreamUsingProperties) |
| 78 | + end |
81 | 79 |
|
82 | | -if AudioStreamAppendSegments then |
83 | | - AudioStreamAppendSegments = replaceAddonPath(AudioStreamAppendSegments) |
84 | | -end |
| 80 | + if OpenAudioStream then |
| 81 | + OpenAudioStream = replaceAddonPath(OpenAudioStream) |
| 82 | + end |
85 | 83 |
|
86 | | -if SetMissionEndMovie then |
87 | | - SetMissionEndMovie = replaceAddonPath(SetMissionEndMovie) |
88 | | -end |
| 84 | + if AudioStreamAppendSegments then |
| 85 | + AudioStreamAppendSegments = replaceAddonPath(AudioStreamAppendSegments) |
| 86 | + end |
89 | 87 |
|
90 | | -if CreateEffect then |
91 | | - CreateEffect = replaceAddonPath(CreateEffect) |
92 | | -end |
| 88 | + if SetMissionEndMovie then |
| 89 | + SetMissionEndMovie = replaceAddonPath(SetMissionEndMovie) |
| 90 | + end |
93 | 91 |
|
| 92 | + if CreateEffect then |
| 93 | + CreateEffect = replaceAddonPath(CreateEffect) |
| 94 | + end |
94 | 95 |
|
| 96 | +end |
95 | 97 |
|
96 | 98 | -- This does not work. Find a better solution asap. |
97 | 99 | --[[ load core again for custom localization |
|
0 commit comments