Skip to content

Commit 93c2042

Browse files
committed
Remove unix specifc code
1 parent cc3abbe commit 93c2042

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

SourceX/miniwin/misc.cpp

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "stubs.h"
55
#include "dx.h"
66
#include "DiabloUI/diabloui.h"
7-
#include <glob.h>
87
#include <string>
98

109
namespace dvl {
@@ -407,29 +406,15 @@ void GetLocalTime(LPSYSTEMTIME lpSystemTime)
407406
UNIMPLEMENTED();
408407
}
409408

410-
glob_t globbuf;
411-
int _findfirsti;
412-
/**
413-
* @return The value is not unique, but the engine only users one at a time
414-
*/
415409
long _findfirst(const char *pattern, struct DVL_finddata_t *finder)
416410
{
417-
glob(pattern, 0, NULL, &globbuf);
418-
_findfirsti = 0;
419-
return _findnext(0, finder);
411+
DUMMY();
412+
return -1;
420413
}
421414

422415
int _findnext(long, struct DVL_finddata_t *finder)
423416
{
424-
while (_findfirsti < globbuf.gl_pathc) {
425-
strncpy(finder->name, globbuf.gl_pathv[_findfirsti], DVL_MAX_PATH);
426-
_findfirsti++;
427-
return 0;
428-
}
429-
430-
if (globbuf.gl_pathc > 0)
431-
globfree(&globbuf);
432-
417+
UNIMPLEMENTED();
433418
return -1;
434419
}
435420

0 commit comments

Comments
 (0)