Skip to content

Commit

Permalink
* Fix MacOS build.
Browse files Browse the repository at this point in the history
This is done by including RedStoneTorchTile.cpp from WireTile.cpp.  It's a big old hack, but unless Apple can get its crap together or Brent can step in, it'll do.
  • Loading branch information
iProgramMC committed Apr 7, 2024
1 parent b7f2ab7 commit bb0afa2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/world/tile/WireTile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
#include "WireTile.hpp"
#include "world/level/Level.hpp"

#ifdef __APPLE__

// HACK HACK HACK: This is crap

// Include the C++ source directly, because Apple made it purposely
// difficult to add more source files by modifying the PBXPROJ. I
// have to allocate GUIDs and .. ugh, it's a pain. Apple can suck
// a big, fat one.
//
// Brent, please help. I don't want to merge it into master like this.
#include "RedStoneTorchTile.cpp"

#endif

WireTile::WireTile(int id) : Tile(id, Material::decoration)
{
m_TextureFrame = 164;
Expand Down

0 comments on commit bb0afa2

Please sign in to comment.