Skip to content

Commit

Permalink
port /tg/ PR #75835
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Jun 3, 2023
1 parent c73feb8 commit 18198ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/_byond_version_compat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@
/// Call by name proc reference, checks if the proc is existing global proc
#define GLOBAL_PROC_REF(X) (/proc/##X)
#endif

#if (DM_VERSION == 515)
/// fcopy will crash on 515 linux if given a non-existant file, instead of returning 0 like on 514 linux or 515 windows
/// var case matches documentation for fcopy.
/world/proc/__fcopy(Src, Dst)
if (!fexists(Src))
return 0
return fcopy(Src, Dst)

#define fcopy(Src, Dst) world.__fcopy(Src, Dst)

#endif

0 comments on commit 18198ff

Please sign in to comment.