X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Ffile.qh;h=5bc24f627185f5fd5c4bf87aaaf32a40f0908ff8;hb=d865de7a9a17c5a1d9286aec40f68c3530697660;hp=f732bfe2c1c53e3d2922a6b3e744cf5c30148ef8;hpb=96e1acc3050bcb718e2f06702e5b88a60459a015;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