@@ -41,24 +41,6 @@ index 68b59d1b9..412d01bb7 100644
4141 if (!*s)
4242 {
4343 *o++ = '\0';
44- @@ -2666,7 +2667,7 @@ static qboolean FS_NativePath(const char *fname, enum fs_relative relativeto, ch
45-
46- if (relativeto == FS_SYSTEM)
47- {
48- - //system is already the native path. we can just pass it through. perhaps we should clean it up first however, although that's just making sure all \ are /
49- + //system is already the native path. we can just pass it through. perhaps we should clean it up first however, although that's just making sure all \ are /
50- if (fordisplay)
51- {
52- if (com_homepathenabled && !strncmp(fname, com_homepath, strlen(com_homepath))) //'FS_HOME'
53- @@ -2857,7 +2858,7 @@ vfsfile_t *FS_OpenWithFriends(const char *fname, char *displayname, size_t displ
54- lastwritable = search;
55- if (search->handle->FindFile(search->handle, &loc, fname, NULL))
56- break;
57- -
58- +
59- va_start(ap, numfriends);
60- for (i = 0; i < numfriends; i++)
61- {
6244@@ -2987,7 +2988,7 @@ vfsfile_t *QDECL FS_OpenVFS(const char *filename, const char *mode, enum fs_rela
6345 }
6446 else
@@ -68,111 +50,3 @@ index 68b59d1b9..412d01bb7 100644
6850 return NULL;
6951 if (*mode == 'w')
7052 COM_CreatePath(fullname);
71- @@ -3286,7 +3287,7 @@ qbyte *COM_LoadFile (const char *path, unsigned int locateflags, int usehunk, si
72- qbyte *buf;
73- qofs_t len;
74- flocation_t loc;
75- -
76- +
77- locateflags &= ~FSLF_DEEPONFAILURE; //disable any flags that can't be supported here
78-
79- if (!FS_FLocateFile(path, locateflags, &loc) || !loc.search)
80- @@ -4083,7 +4084,7 @@ static void FS_AddDataFiles(searchpath_t **oldpaths, const char *purepath, const
81- char *names = buffer;
82- search->handle->ReadFile(search->handle, &loc, buffer);
83- buffer[loc.len] = 0;
84- -
85- +
86- while (names && *names)
87- {
88- names = COM_ParseOut(names, filename, sizeof(filename));
89- @@ -4487,7 +4488,7 @@ char *FS_GetManifestArgs(void)
90- char *homearg = com_homepathenabled?"-usehome ":"-nohome ";
91- if (fs_manifest->filename)
92- return va("%s-manifest %s -basedir %s", homearg, fs_manifest->filename, com_gamepath);
93- -
94- +
95- return va("%s-game %s -basedir %s", homearg, pubgamedirfile, com_gamepath);
96- }
97- #ifdef SUBSERVERS
98- @@ -4824,7 +4825,7 @@ vfsfile_t *CL_OpenFileInPackage(searchpathfuncs_t *search, char *name)
99- if (search)
100- found = search->FindFile(search, &loc, name, NULL);
101- else
102- - found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
103- + found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
104- if (found)
105- {
106- f = (search?search:loc.search->handle)->OpenVFS(search?search:loc.search->handle, &loc, "rb");
107- @@ -4845,7 +4846,7 @@ vfsfile_t *CL_OpenFileInPackage(searchpathfuncs_t *search, char *name)
108- if (search)
109- found = search->FindFile(search, &loc, name, NULL);
110- else
111- - found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
112- + found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
113- if (found)
114- {
115- f = (search?search:loc.search->handle)->OpenVFS(search?search:loc.search->handle, &loc, "rb");
116- @@ -4942,7 +4943,7 @@ qboolean CL_ListFilesInPackage(searchpathfuncs_t *search, char *name, int (QDECL
117- if (search)
118- found = search->FindFile(search, &loc, name, NULL);
119- else
120- - found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
121- + found = FS_FLocateFile(name, FSLF_IFFOUND, &loc);
122- if (found)
123- {
124- f = (search?search:loc.search->handle)->OpenVFS(search?search:loc.search->handle, &loc, "rb");
125- @@ -5227,7 +5228,7 @@ static void FS_ReloadPackFilesFlags(unsigned int reloadflags)
126- if (dir && (fs_manifest->gamepath[i].flags&GAMEDIR_BASEGAME))
127- {
128- //paths should be validated before here, when parsing the manifest.
129- -
130- +
131- #ifdef NQPROT
132- //vanilla NQ uses a slightly different protocol when started with -rogue or -hipnotic (and by extension -quoth).
133- //QW+FTE protocols don't care so we can get away with being a little loose here
134- @@ -5616,7 +5617,7 @@ static qboolean Sys_SteamHasFile(char *basepath, int basepathlen, char *steamdir
135- FILE *f;
136- DWORD resultlen;
137- HKEY key = NULL;
138- -
139- +
140- if (RegOpenKeyExW(HKEY_CURRENT_USER, L"SOFTWARE\\Valve\\Steam", 0, STANDARD_RIGHTS_READ|KEY_QUERY_VALUE, &key) == ERROR_SUCCESS)
141- {
142- wchar_t suckysucksuck[MAX_OSPATH];
143- @@ -5635,14 +5636,14 @@ static qboolean Sys_SteamHasFile(char *basepath, int basepathlen, char *steamdir
144- }
145-
146- #ifdef HAVE_CLIENT
147- - static INT CALLBACK StupidBrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
148- + static INT CALLBACK StupidBrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
149- { //'stolen' from microsoft's knowledge base.
150- //required to work around microsoft being annoying.
151- wchar_t szDir[MAX_PATH];
152- wchar_t *foo;
153- - switch(uMsg)
154- + switch(uMsg)
155- {
156- - case BFFM_INITIALIZED:
157- + case BFFM_INITIALIZED:
158- if (GetCurrentDirectoryW(sizeof(szDir)/sizeof(TCHAR), szDir))
159- {
160- // foo = strrchr(szDir, '\\');
161- @@ -5656,7 +5657,7 @@ static INT CALLBACK StupidBrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LP
162- break;
163- case BFFM_VALIDATEFAILEDW:
164- break; //FIXME: validate that the gamedir contains what its meant to
165- - case BFFM_SELCHANGED:
166- + case BFFM_SELCHANGED:
167- if (SHGetPathFromIDListW((LPITEMIDLIST) lp, szDir))
168- {
169- wchar_t statustxt[MAX_OSPATH];
170- @@ -7115,7 +7116,7 @@ static int QDECL FS_EnumeratedFMF(const char *fname, qofs_t fsize, time_t mtime,
171- {
172- ftemanifest_t *man = NULL;
173- fmfenums_t *e = inf;
174- - vfsfile_t *f = NULL;
175- + vfsfile_t *f = NULL;
176- if (spath)
177- {
178- flocation_t loc;
0 commit comments