MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / checkDXReinstall

Function checkDXReinstall

softgpu.c:151–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149char sysinfomsg[1024];
150
151BOOL checkDXReinstall()
152{
153 char syspath[MAX_PATH];
154 size_t syspath_len;
155
156 if(GetSystemDirectoryA(syspath, MAX_PATH) == 0)
157 {
158 return FALSE;
159 }
160 syspath_len = strlen(syspath);
161
162 strcat(syspath, "\\ddraw.dll");
163 if(is_wrapper(syspath, FALSE))
164 {
165 //strcpy(syspath+syspath_len, "\\ddsys.dll");
166 //if(is_wrapper(syspath, TRUE))
167 return TRUE;
168 }
169
170 strcpy(syspath+syspath_len, "\\d3d8.dll");
171 if(is_wrapper(syspath, FALSE))
172 {
173 //strcpy(syspath+syspath_len, "\\msd3d8.dll");
174 //if(is_wrapper(syspath, TRUE))
175 return TRUE;
176 }
177
178 if(version_compare(&sysver, &WINVER98) >= 0)
179 {
180 strcpy(syspath+syspath_len, "\\d3d9.dll");
181 if(is_wrapper(syspath, FALSE))
182 {
183 //strcpy(syspath+syspath_len, "\\msd3d9.dll");
184 //if(is_wrapper(syspath, TRUE))
185 return TRUE;
186 }
187 }
188
189 return FALSE;
190}
191
192void readCPUInfo()
193{

Callers 1

softgpu_sysinfoFunction · 0.85

Calls 2

is_wrapperFunction · 0.85
version_compareFunction · 0.85

Tested by

no test coverage detected