Skip to content

Commit

Permalink
[MIRROR] Remove old 515 fcopy hack (#927)
Browse files Browse the repository at this point in the history
* [MIRROR] Remove old 515 fcopy hack [MDB IGNORE] (#25283)

Remove old 515 fcopy hack

Co-authored-by: vvvv-vvvv <[email protected]>
Co-authored-by: Bloop <[email protected]>

* 😿

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: vvvv-vvvv <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: ReezeBL <[email protected]>
  • Loading branch information
5 people authored Dec 4, 2023
1 parent fdb89a4 commit ffa3a63
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions code/__byond_version_compat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,3 @@

/// Call by name proc reference, checks if the proc is an existing global proc
#define GLOBAL_PROC_REF(X) (/proc/##X)

/// 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 (istext(Src) && !fexists(Src))
return 0
return fcopy(Src, Dst)

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

0 comments on commit ffa3a63

Please sign in to comment.