X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Ffile.qh;h=5bc24f627185f5fd5c4bf87aaaf32a40f0908ff8;hb=3d26fc0c5b264d9564d5756884737b743012e7e8;hp=f732bfe2c1c53e3d2922a6b3e744cf5c30148ef8;hpb=32ca966802c45c4c231210c2d8776bc3f4135dc2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/file.qh b/qcsrc/lib/file.qh index f732bfe2c..5bc24f627 100644 --- a/qcsrc/lib/file.qh +++ b/qcsrc/lib/file.qh @@ -1,13 +1,10 @@ -#ifndef FILE_H -#define FILE_H +#pragma once +ERASEABLE bool fexists(string f) { - int fh = fopen(f, FILE_READ); - if (fh < 0) - return false; - fclose(fh); - return true; + int fh = fopen(f, FILE_READ); + if (fh < 0) return false; + fclose(fh); + return true; } - -#endif