From a07d588c94f68cdc559ceb016c031c9199f0b868 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 20 Mar 2022 11:52:09 -0400 Subject: we can now build a mac bundle! --- CMakeLists.txt | 1 + macOS/Ether.xcodeproj/project.pbxproj | 523 +++++++++++++++++++++ .../project.xcworkspace/contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 5 + .../UserInterfaceState.xcuserstate | Bin 0 -> 45018 bytes .../WorkspaceSettings.xcsettings | 18 + .../xcschemes/xcschememanagement.plist | 14 + .../AppIcon.appiconset/Contents.json | 65 +++ .../Assets.xcassets/AppIcon.appiconset/icon.png | Bin 0 -> 504 bytes .../Assets.xcassets/AppIcon.appiconset/icon128.png | Bin 0 -> 1680 bytes .../AppIcon.appiconset/icon256-1.png | Bin 0 -> 2625 bytes .../Assets.xcassets/AppIcon.appiconset/icon256.png | Bin 0 -> 2625 bytes .../AppIcon.appiconset/icon32-1.png | Bin 0 -> 735 bytes .../Assets.xcassets/AppIcon.appiconset/icon32.png | Bin 0 -> 735 bytes .../Assets.xcassets/AppIcon.appiconset/icon64.png | Bin 0 -> 1084 bytes macOS/Ether/Assets.xcassets/Contents.json | 6 + macOS/Ether/Ether.entitlements | 10 + macOS/Ether/Info.plist | 30 ++ res/Master.bank | 1 + res/Master.strings.bank | 1 + res/fmod/.cache/fsbcache/Desktop/1FE16EE9.fobj | Bin 2507 -> 2507 bytes res/fmod/.cache/fsbcache/Desktop/3019A628.fobj | Bin 1421014 -> 1421014 bytes res/fmod/.cache/fsbcache/Desktop/3AA7253D.fobj | Bin 820154 -> 820154 bytes res/fmod/.cache/fsbcache/Desktop/3C7FCD0D.fobj | Bin 1426 -> 1426 bytes res/fmod/.cache/fsbcache/Desktop/53616416.fobj | Bin 146752 -> 146752 bytes res/fmod/.cache/fsbcache/Desktop/57E359F0.fobj | Bin 3238 -> 3238 bytes res/fmod/.cache/fsbcache/Desktop/5A3FB1CD.fobj | Bin 2113 -> 2113 bytes res/fmod/.cache/fsbcache/Desktop/71C77FCD.fobj | Bin 2312 -> 2312 bytes res/fmod/.cache/fsbcache/Desktop/7FBDFDEC.fobj | Bin 1779 -> 1779 bytes res/fmod/.cache/fsbcache/Desktop/8E6D2689.fobj | Bin 3184 -> 3184 bytes res/fmod/.cache/fsbcache/Desktop/B1D38FCD.fobj | Bin 1624 -> 1624 bytes res/fmod/.cache/fsbcache/Desktop/BA7E5A1C.fobj | Bin 880483 -> 880483 bytes res/fmod/.cache/fsbcache/Desktop/C8D72C41.fobj | Bin 1387706 -> 1387706 bytes res/fmod/.cache/fsbcache/Desktop/E5DD54AC.fobj | Bin 1528 -> 1528 bytes res/fmod/.cache/fsbcache/Desktop/ED73FAF7.fobj | Bin 945324 -> 945324 bytes .../{a23d2b1c-914e-48d4-8df9-80f6edad6c28}.xml | 3 + res/icon.png | Bin 0 -> 504 bytes res/icon128.png | Bin 0 -> 1680 bytes res/icon256.png | Bin 0 -> 2625 bytes res/icon32.png | Bin 0 -> 735 bytes res/icon64.png | Bin 0 -> 1084 bytes src/game.cpp | 9 +- src/game.h | 3 +- src/main.cpp | 1 - src/muxer.cpp | 5 +- src/renderer.cpp | 23 +- src/runtime.h | 13 + src/runtime_macos.mm | 16 + src/runtime_test.cpp | 5 + 50 files changed, 748 insertions(+), 19 deletions(-) create mode 100644 macOS/Ether.xcodeproj/project.pbxproj create mode 100644 macOS/Ether.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/WorkspaceSettings.xcsettings create mode 100644 macOS/Ether.xcodeproj/xcuserdata/hatkirby.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon128.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256-1.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32-1.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32.png create mode 100644 macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon64.png create mode 100644 macOS/Ether/Assets.xcassets/Contents.json create mode 100644 macOS/Ether/Ether.entitlements create mode 100644 macOS/Ether/Info.plist create mode 120000 res/Master.bank create mode 120000 res/Master.strings.bank create mode 100644 res/icon.png create mode 100644 res/icon128.png create mode 100644 res/icon256.png create mode 100644 res/icon32.png create mode 100644 res/icon64.png create mode 100644 src/runtime.h create mode 100644 src/runtime_macos.mm create mode 100644 src/runtime_test.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f6d26c..58a7649 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ add_executable(Ether src/game.cpp src/sign.cpp src/menu.cpp + src/runtime_test.cpp vendor/fov.c ) diff --git a/macOS/Ether.xcodeproj/project.pbxproj b/macOS/Ether.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4a8219f --- /dev/null +++ b/macOS/Ether.xcodeproj/project.pbxproj @@ -0,0 +1,523 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 6C0CDB7F27E7839D00F43B44 /* libSDL2_image-2.0.0.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6CD6FEF127E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6C0CDB8027E7839D00F43B44 /* libSDL2_ttf-2.0.0.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6CD6FEF327E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6C0CDB8127E7839D00F43B44 /* libSDL2-2.0.0.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6CD6FEF227E76CA2005B65A5 /* libSDL2-2.0.0.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6CD6FEBE27E76AE1005B65A5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FEBD27E76AE1005B65A5 /* Assets.xcassets */; }; + 6CD6FEE027E76BCF005B65A5 /* animation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FECB27E76BCE005B65A5 /* animation.cpp */; }; + 6CD6FEE127E76BCF005B65A5 /* renderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FECC27E76BCE005B65A5 /* renderer.cpp */; }; + 6CD6FEE227E76BCF005B65A5 /* game.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FECE27E76BCE005B65A5 /* game.cpp */; }; + 6CD6FEE327E76BCF005B65A5 /* menu.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FED027E76BCE005B65A5 /* menu.cpp */; }; + 6CD6FEE427E76BCF005B65A5 /* sign.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FED227E76BCE005B65A5 /* sign.cpp */; }; + 6CD6FEE527E76BCF005B65A5 /* muxer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FED427E76BCE005B65A5 /* muxer.cpp */; }; + 6CD6FEE627E76BCF005B65A5 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FEDA27E76BCE005B65A5 /* main.cpp */; }; + 6CD6FEE727E76BCF005B65A5 /* runtime_macos.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FEDE27E76BCE005B65A5 /* runtime_macos.mm */; }; + 6CD6FEEF27E76C3F005B65A5 /* libfmodstudio.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FEEB27E76C3F005B65A5 /* libfmodstudio.dylib */; }; + 6CD6FEF027E76C3F005B65A5 /* libfmod.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FEEC27E76C3F005B65A5 /* libfmod.dylib */; }; + 6CD6FEF427E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FEF127E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib */; }; + 6CD6FEF527E76CA2005B65A5 /* libSDL2-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FEF227E76CA2005B65A5 /* libSDL2-2.0.0.dylib */; }; + 6CD6FEF627E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FEF327E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib */; }; + 6CD6FF0727E77C59005B65A5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6CD6FF0627E77C59005B65A5 /* Cocoa.framework */; }; + 6CD6FF1227E77D7B005B65A5 /* title3.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0827E77D7A005B65A5 /* title3.png */; }; + 6CD6FF1327E77D7B005B65A5 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0927E77D7A005B65A5 /* icon.png */; }; + 6CD6FF1427E77D7B005B65A5 /* lamp.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0A27E77D7A005B65A5 /* lamp.png */; }; + 6CD6FF1527E77D7B005B65A5 /* lighting.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0B27E77D7A005B65A5 /* lighting.png */; }; + 6CD6FF1627E77D7B005B65A5 /* runninbloods.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0C27E77D7B005B65A5 /* runninbloods.png */; }; + 6CD6FF1727E77D7B005B65A5 /* menu.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0D27E77D7B005B65A5 /* menu.png */; }; + 6CD6FF1827E77D7B005B65A5 /* read_instruction.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0E27E77D7B005B65A5 /* read_instruction.png */; }; + 6CD6FF1927E77D7B005B65A5 /* player.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF0F27E77D7B005B65A5 /* player.png */; }; + 6CD6FF1A27E77D7B005B65A5 /* title0.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF1027E77D7B005B65A5 /* title0.png */; }; + 6CD6FF1B27E77D7B005B65A5 /* title1.png in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF1127E77D7B005B65A5 /* title1.png */; }; + 6CD6FF1F27E77ED5005B65A5 /* libfmod.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6CD6FEEC27E76C3F005B65A5 /* libfmod.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6CD6FF2027E77ED5005B65A5 /* libfmodstudio.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6CD6FEEB27E76C3F005B65A5 /* libfmodstudio.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + 6CD6FF2827E780D3005B65A5 /* softsquare.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2527E780D3005B65A5 /* softsquare.ttf */; }; + 6CD6FF2927E780D3005B65A5 /* childoflight.txt in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2627E780D3005B65A5 /* childoflight.txt */; }; + 6CD6FF2A27E780D3005B65A5 /* player_anim.txt in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2727E780D3005B65A5 /* player_anim.txt */; }; + 6CD6FF2D27E780E6005B65A5 /* fov.c in Sources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2C27E780E6005B65A5 /* fov.c */; }; + 6CD6FF3027E78218005B65A5 /* Master.strings.bank in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2E27E78218005B65A5 /* Master.strings.bank */; }; + 6CD6FF3127E78218005B65A5 /* Master.bank in Resources */ = {isa = PBXBuildFile; fileRef = 6CD6FF2F27E78218005B65A5 /* Master.bank */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 6CD6FF1E27E77EC6005B65A5 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 6C0CDB7F27E7839D00F43B44 /* libSDL2_image-2.0.0.dylib in CopyFiles */, + 6C0CDB8027E7839D00F43B44 /* libSDL2_ttf-2.0.0.dylib in CopyFiles */, + 6C0CDB8127E7839D00F43B44 /* libSDL2-2.0.0.dylib in CopyFiles */, + 6CD6FF1F27E77ED5005B65A5 /* libfmod.dylib in CopyFiles */, + 6CD6FF2027E77ED5005B65A5 /* libfmodstudio.dylib in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 6CD6FEB727E76AE0005B65A5 /* Ether.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Ether.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6CD6FEBD27E76AE1005B65A5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6CD6FEC227E76AE1005B65A5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6CD6FEC527E76AE1005B65A5 /* Ether.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Ether.entitlements; sourceTree = ""; }; + 6CD6FECB27E76BCE005B65A5 /* animation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = animation.cpp; path = ../../src/animation.cpp; sourceTree = ""; }; + 6CD6FECC27E76BCE005B65A5 /* renderer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = renderer.cpp; path = ../../src/renderer.cpp; sourceTree = ""; }; + 6CD6FECD27E76BCE005B65A5 /* consts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = consts.h; path = ../../src/consts.h; sourceTree = ""; }; + 6CD6FECE27E76BCE005B65A5 /* game.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = game.cpp; path = ../../src/game.cpp; sourceTree = ""; tabWidth = 2; }; + 6CD6FECF27E76BCE005B65A5 /* direction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = direction.h; path = ../../src/direction.h; sourceTree = ""; }; + 6CD6FED027E76BCE005B65A5 /* menu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = menu.cpp; path = ../../src/menu.cpp; sourceTree = ""; }; + 6CD6FED127E76BCE005B65A5 /* renderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = renderer.h; path = ../../src/renderer.h; sourceTree = ""; }; + 6CD6FED227E76BCE005B65A5 /* sign.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = sign.cpp; path = ../../src/sign.cpp; sourceTree = ""; }; + 6CD6FED327E76BCE005B65A5 /* menu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = menu.h; path = ../../src/menu.h; sourceTree = ""; }; + 6CD6FED427E76BCE005B65A5 /* muxer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = muxer.cpp; path = ../../src/muxer.cpp; sourceTree = ""; }; + 6CD6FED527E76BCE005B65A5 /* timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = timer.h; path = ../../src/timer.h; sourceTree = ""; }; + 6CD6FED627E76BCE005B65A5 /* interpolation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = interpolation.h; path = ../../src/interpolation.h; sourceTree = ""; }; + 6CD6FED727E76BCE005B65A5 /* muxer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = muxer.h; path = ../../src/muxer.h; sourceTree = ""; }; + 6CD6FED827E76BCE005B65A5 /* sign.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sign.h; path = ../../src/sign.h; sourceTree = ""; }; + 6CD6FED927E76BCE005B65A5 /* game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = game.h; path = ../../src/game.h; sourceTree = ""; }; + 6CD6FEDA27E76BCE005B65A5 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = ../../src/main.cpp; sourceTree = ""; }; + 6CD6FEDB27E76BCE005B65A5 /* animation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = animation.h; path = ../../src/animation.h; sourceTree = ""; }; + 6CD6FEDC27E76BCE005B65A5 /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = util.h; path = ../../src/util.h; sourceTree = ""; }; + 6CD6FEDD27E76BCE005B65A5 /* map.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = map.h; path = ../../src/map.h; sourceTree = ""; }; + 6CD6FEDE27E76BCE005B65A5 /* runtime_macos.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = runtime_macos.mm; path = ../../src/runtime_macos.mm; sourceTree = ""; }; + 6CD6FEDF27E76BCF005B65A5 /* runtime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = runtime.h; path = ../../src/runtime.h; sourceTree = ""; }; + 6CD6FEE927E76C3F005B65A5 /* libfmodstudioL.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfmodstudioL.dylib; path = ../vendor/fmod/lib/libfmodstudioL.dylib; sourceTree = ""; }; + 6CD6FEEA27E76C3F005B65A5 /* libfmodL.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfmodL.dylib; path = ../vendor/fmod/lib/libfmodL.dylib; sourceTree = ""; }; + 6CD6FEEB27E76C3F005B65A5 /* libfmodstudio.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfmodstudio.dylib; path = ../vendor/fmod/lib/libfmodstudio.dylib; sourceTree = ""; }; + 6CD6FEEC27E76C3F005B65A5 /* libfmod.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libfmod.dylib; path = ../vendor/fmod/lib/libfmod.dylib; sourceTree = ""; }; + 6CD6FEF127E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2_image-2.0.0.dylib"; path = "../../../../../usr/local/Cellar/sdl2_image/2.0.5/lib/libSDL2_image-2.0.0.dylib"; sourceTree = ""; }; + 6CD6FEF227E76CA2005B65A5 /* libSDL2-2.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2-2.0.0.dylib"; path = "../../../../../usr/local/Cellar/sdl2/2.0.14_1/lib/libSDL2-2.0.0.dylib"; sourceTree = ""; }; + 6CD6FEF327E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libSDL2_ttf-2.0.0.dylib"; path = "../../../../../usr/local/Cellar/sdl2_ttf/2.0.15/lib/libSDL2_ttf-2.0.0.dylib"; sourceTree = ""; }; + 6CD6FF0627E77C59005B65A5 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; + 6CD6FF0827E77D7A005B65A5 /* title3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = title3.png; path = ../../../res/title3.png; sourceTree = ""; }; + 6CD6FF0927E77D7A005B65A5 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = ../../../res/icon.png; sourceTree = ""; }; + 6CD6FF0A27E77D7A005B65A5 /* lamp.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = lamp.png; path = ../../../res/lamp.png; sourceTree = ""; }; + 6CD6FF0B27E77D7A005B65A5 /* lighting.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = lighting.png; path = ../../../res/lighting.png; sourceTree = ""; }; + 6CD6FF0C27E77D7B005B65A5 /* runninbloods.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = runninbloods.png; path = ../../../res/runninbloods.png; sourceTree = ""; }; + 6CD6FF0D27E77D7B005B65A5 /* menu.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = menu.png; path = ../../../res/menu.png; sourceTree = ""; }; + 6CD6FF0E27E77D7B005B65A5 /* read_instruction.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = read_instruction.png; path = ../../../res/read_instruction.png; sourceTree = ""; }; + 6CD6FF0F27E77D7B005B65A5 /* player.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = player.png; path = ../../../res/player.png; sourceTree = ""; }; + 6CD6FF1027E77D7B005B65A5 /* title0.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = title0.png; path = ../../../res/title0.png; sourceTree = ""; }; + 6CD6FF1127E77D7B005B65A5 /* title1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = title1.png; path = ../../../res/title1.png; sourceTree = ""; }; + 6CD6FF2527E780D3005B65A5 /* softsquare.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = softsquare.ttf; path = ../../../res/softsquare.ttf; sourceTree = ""; }; + 6CD6FF2627E780D3005B65A5 /* childoflight.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = childoflight.txt; path = ../../../res/childoflight.txt; sourceTree = ""; }; + 6CD6FF2727E780D3005B65A5 /* player_anim.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = player_anim.txt; path = ../../../res/player_anim.txt; sourceTree = ""; }; + 6CD6FF2B27E780E6005B65A5 /* fov.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = fov.h; path = ../../vendor/fov.h; sourceTree = ""; }; + 6CD6FF2C27E780E6005B65A5 /* fov.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = fov.c; path = ../../vendor/fov.c; sourceTree = ""; }; + 6CD6FF2E27E78218005B65A5 /* Master.strings.bank */ = {isa = PBXFileReference; lastKnownFileType = file; name = Master.strings.bank; path = ../../../res/fmod/Build/Desktop/Master.strings.bank; sourceTree = ""; }; + 6CD6FF2F27E78218005B65A5 /* Master.bank */ = {isa = PBXFileReference; lastKnownFileType = file; name = Master.bank; path = ../../../res/fmod/Build/Desktop/Master.bank; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6CD6FEB427E76AE0005B65A5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 6CD6FF0727E77C59005B65A5 /* Cocoa.framework in Frameworks */, + 6CD6FEF427E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib in Frameworks */, + 6CD6FEF527E76CA2005B65A5 /* libSDL2-2.0.0.dylib in Frameworks */, + 6CD6FEF627E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib in Frameworks */, + 6CD6FEEF27E76C3F005B65A5 /* libfmodstudio.dylib in Frameworks */, + 6CD6FEF027E76C3F005B65A5 /* libfmod.dylib in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6CD6FEAE27E76AE0005B65A5 = { + isa = PBXGroup; + children = ( + 6CD6FEB927E76AE0005B65A5 /* Ether */, + 6CD6FEB827E76AE0005B65A5 /* Products */, + 6CD6FEE827E76C3F005B65A5 /* Frameworks */, + ); + sourceTree = ""; + }; + 6CD6FEB827E76AE0005B65A5 /* Products */ = { + isa = PBXGroup; + children = ( + 6CD6FEB727E76AE0005B65A5 /* Ether.app */, + ); + name = Products; + sourceTree = ""; + }; + 6CD6FEB927E76AE0005B65A5 /* Ether */ = { + isa = PBXGroup; + children = ( + 6CD6FF0127E76DC7005B65A5 /* resources */, + 6CD6FF0027E76DB8005B65A5 /* vendor */, + 6CD6FECB27E76BCE005B65A5 /* animation.cpp */, + 6CD6FEDB27E76BCE005B65A5 /* animation.h */, + 6CD6FECD27E76BCE005B65A5 /* consts.h */, + 6CD6FECF27E76BCE005B65A5 /* direction.h */, + 6CD6FECE27E76BCE005B65A5 /* game.cpp */, + 6CD6FED927E76BCE005B65A5 /* game.h */, + 6CD6FED627E76BCE005B65A5 /* interpolation.h */, + 6CD6FEDA27E76BCE005B65A5 /* main.cpp */, + 6CD6FEDD27E76BCE005B65A5 /* map.h */, + 6CD6FED027E76BCE005B65A5 /* menu.cpp */, + 6CD6FED327E76BCE005B65A5 /* menu.h */, + 6CD6FED427E76BCE005B65A5 /* muxer.cpp */, + 6CD6FED727E76BCE005B65A5 /* muxer.h */, + 6CD6FECC27E76BCE005B65A5 /* renderer.cpp */, + 6CD6FED127E76BCE005B65A5 /* renderer.h */, + 6CD6FEDE27E76BCE005B65A5 /* runtime_macos.mm */, + 6CD6FEDF27E76BCF005B65A5 /* runtime.h */, + 6CD6FED227E76BCE005B65A5 /* sign.cpp */, + 6CD6FED827E76BCE005B65A5 /* sign.h */, + 6CD6FED527E76BCE005B65A5 /* timer.h */, + 6CD6FEDC27E76BCE005B65A5 /* util.h */, + 6CD6FEBD27E76AE1005B65A5 /* Assets.xcassets */, + 6CD6FEC227E76AE1005B65A5 /* Info.plist */, + 6CD6FEC527E76AE1005B65A5 /* Ether.entitlements */, + ); + path = Ether; + sourceTree = ""; + }; + 6CD6FEE827E76C3F005B65A5 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 6CD6FF0627E77C59005B65A5 /* Cocoa.framework */, + 6CD6FEF127E76CA2005B65A5 /* libSDL2_image-2.0.0.dylib */, + 6CD6FEF327E76CA2005B65A5 /* libSDL2_ttf-2.0.0.dylib */, + 6CD6FEF227E76CA2005B65A5 /* libSDL2-2.0.0.dylib */, + 6CD6FEEC27E76C3F005B65A5 /* libfmod.dylib */, + 6CD6FEEA27E76C3F005B65A5 /* libfmodL.dylib */, + 6CD6FEEB27E76C3F005B65A5 /* libfmodstudio.dylib */, + 6CD6FEE927E76C3F005B65A5 /* libfmodstudioL.dylib */, + ); + name = Frameworks; + sourceTree = ""; + }; + 6CD6FF0027E76DB8005B65A5 /* vendor */ = { + isa = PBXGroup; + children = ( + 6CD6FF2C27E780E6005B65A5 /* fov.c */, + 6CD6FF2B27E780E6005B65A5 /* fov.h */, + ); + name = vendor; + sourceTree = ""; + }; + 6CD6FF0127E76DC7005B65A5 /* resources */ = { + isa = PBXGroup; + children = ( + 6CD6FF2F27E78218005B65A5 /* Master.bank */, + 6CD6FF2E27E78218005B65A5 /* Master.strings.bank */, + 6CD6FF2627E780D3005B65A5 /* childoflight.txt */, + 6CD6FF2727E780D3005B65A5 /* player_anim.txt */, + 6CD6FF2527E780D3005B65A5 /* softsquare.ttf */, + 6CD6FF0927E77D7A005B65A5 /* icon.png */, + 6CD6FF0A27E77D7A005B65A5 /* lamp.png */, + 6CD6FF0B27E77D7A005B65A5 /* lighting.png */, + 6CD6FF0D27E77D7B005B65A5 /* menu.png */, + 6CD6FF0F27E77D7B005B65A5 /* player.png */, + 6CD6FF0E27E77D7B005B65A5 /* read_instruction.png */, + 6CD6FF0C27E77D7B005B65A5 /* runninbloods.png */, + 6CD6FF1027E77D7B005B65A5 /* title0.png */, + 6CD6FF1127E77D7B005B65A5 /* title1.png */, + 6CD6FF0827E77D7A005B65A5 /* title3.png */, + ); + path = resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6CD6FEB627E76AE0005B65A5 /* Ether */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6CD6FEC827E76AE1005B65A5 /* Build configuration list for PBXNativeTarget "Ether" */; + buildPhases = ( + 6CD6FEB327E76AE0005B65A5 /* Sources */, + 6CD6FEB427E76AE0005B65A5 /* Frameworks */, + 6CD6FEB527E76AE0005B65A5 /* Resources */, + 6CD6FF1E27E77EC6005B65A5 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Ether; + productName = Ether; + productReference = 6CD6FEB727E76AE0005B65A5 /* Ether.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6CD6FEAF27E76AE0005B65A5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1010; + ORGANIZATIONNAME = "Starla Insigna"; + TargetAttributes = { + 6CD6FEB627E76AE0005B65A5 = { + CreatedOnToolsVersion = 10.1; + }; + }; + }; + buildConfigurationList = 6CD6FEB227E76AE0005B65A5 /* Build configuration list for PBXProject "Ether" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6CD6FEAE27E76AE0005B65A5; + productRefGroup = 6CD6FEB827E76AE0005B65A5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6CD6FEB627E76AE0005B65A5 /* Ether */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6CD6FEB527E76AE0005B65A5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6CD6FF3027E78218005B65A5 /* Master.strings.bank in Resources */, + 6CD6FF3127E78218005B65A5 /* Master.bank in Resources */, + 6CD6FF1B27E77D7B005B65A5 /* title1.png in Resources */, + 6CD6FF1927E77D7B005B65A5 /* player.png in Resources */, + 6CD6FF1627E77D7B005B65A5 /* runninbloods.png in Resources */, + 6CD6FF1427E77D7B005B65A5 /* lamp.png in Resources */, + 6CD6FF2827E780D3005B65A5 /* softsquare.ttf in Resources */, + 6CD6FEBE27E76AE1005B65A5 /* Assets.xcassets in Resources */, + 6CD6FF1227E77D7B005B65A5 /* title3.png in Resources */, + 6CD6FF1827E77D7B005B65A5 /* read_instruction.png in Resources */, + 6CD6FF2927E780D3005B65A5 /* childoflight.txt in Resources */, + 6CD6FF1A27E77D7B005B65A5 /* title0.png in Resources */, + 6CD6FF1327E77D7B005B65A5 /* icon.png in Resources */, + 6CD6FF1727E77D7B005B65A5 /* menu.png in Resources */, + 6CD6FF2A27E780D3005B65A5 /* player_anim.txt in Resources */, + 6CD6FF1527E77D7B005B65A5 /* lighting.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6CD6FEB327E76AE0005B65A5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6CD6FF2D27E780E6005B65A5 /* fov.c in Sources */, + 6CD6FEE727E76BCF005B65A5 /* runtime_macos.mm in Sources */, + 6CD6FEE127E76BCF005B65A5 /* renderer.cpp in Sources */, + 6CD6FEE027E76BCF005B65A5 /* animation.cpp in Sources */, + 6CD6FEE327E76BCF005B65A5 /* menu.cpp in Sources */, + 6CD6FEE427E76BCF005B65A5 /* sign.cpp in Sources */, + 6CD6FEE627E76BCF005B65A5 /* main.cpp in Sources */, + 6CD6FEE227E76BCF005B65A5 /* game.cpp in Sources */, + 6CD6FEE527E76BCF005B65A5 /* muxer.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 6CD6FEC627E76AE1005B65A5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 6CD6FEC727E76AE1005B65A5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + }; + name = Release; + }; + 6CD6FEC927E76AE1005B65A5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; + CODE_SIGN_ENTITLEMENTS = Ether/Ether.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + HEADER_SEARCH_PATHS = ( + /usr/local/include/SDL2, + /Users/hatkirby/Repos/ether/vendor/fmod/inc, + ); + INFOPLIST_FILE = Ether/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + /usr/local/Cellar/sdl2_image/2.0.5/lib, + /usr/local/Cellar/sdl2/2.0.14_1/lib, + /usr/local/Cellar/sdl2_ttf/2.0.15/lib, + /Users/hatkirby/Repos/ether/vendor/fmod/lib, + ); + PRODUCT_BUNDLE_IDENTIFIER = se.feffernoo.Ether; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 6CD6FECA27E76AE1005B65A5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; + CODE_SIGN_ENTITLEMENTS = Ether/Ether.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + HEADER_SEARCH_PATHS = ( + /usr/local/include/SDL2, + /Users/hatkirby/Repos/ether/vendor/fmod/inc, + ); + INFOPLIST_FILE = Ether/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + /usr/local/Cellar/sdl2_image/2.0.5/lib, + /usr/local/Cellar/sdl2/2.0.14_1/lib, + /usr/local/Cellar/sdl2_ttf/2.0.15/lib, + /Users/hatkirby/Repos/ether/vendor/fmod/lib, + ); + PRODUCT_BUNDLE_IDENTIFIER = se.feffernoo.Ether; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6CD6FEB227E76AE0005B65A5 /* Build configuration list for PBXProject "Ether" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6CD6FEC627E76AE1005B65A5 /* Debug */, + 6CD6FEC727E76AE1005B65A5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6CD6FEC827E76AE1005B65A5 /* Build configuration list for PBXNativeTarget "Ether" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6CD6FEC927E76AE1005B65A5 /* Debug */, + 6CD6FECA27E76AE1005B65A5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 6CD6FEAF27E76AE0005B65A5 /* Project object */; +} diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/macOS/Ether.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..27087db --- /dev/null +++ b/macOS/Ether.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..0c67376 --- /dev/null +++ b/macOS/Ether.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,5 @@ + + + + + diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..9974391 Binary files /dev/null and b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/WorkspaceSettings.xcsettings b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f25782d --- /dev/null +++ b/macOS/Ether.xcodeproj/project.xcworkspace/xcuserdata/hatkirby.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,18 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataLocationStyle + Default + EnabledFullIndexStoreVisibility + + IssueFilterStyle + ShowActiveSchemeOnly + LiveSourceIssuesEnabled + + + diff --git a/macOS/Ether.xcodeproj/xcuserdata/hatkirby.xcuserdatad/xcschemes/xcschememanagement.plist b/macOS/Ether.xcodeproj/xcuserdata/hatkirby.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..2061852 --- /dev/null +++ b/macOS/Ether.xcodeproj/xcuserdata/hatkirby.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Ether.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/Contents.json b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..388036d --- /dev/null +++ b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,65 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon32-1.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "icon256-1.png", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon.png new file mode 100644 index 0000000..0b43935 Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon128.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon128.png new file mode 100644 index 0000000..eff7e8d Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon128.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256-1.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256-1.png new file mode 100644 index 0000000..37b6894 Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256-1.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256.png new file mode 100644 index 0000000..37b6894 Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon256.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32-1.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32-1.png new file mode 100644 index 0000000..580c814 Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32-1.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32.png new file mode 100644 index 0000000..580c814 Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon32.png differ diff --git a/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon64.png b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon64.png new file mode 100644 index 0000000..b04357b Binary files /dev/null and b/macOS/Ether/Assets.xcassets/AppIcon.appiconset/icon64.png differ diff --git a/macOS/Ether/Assets.xcassets/Contents.json b/macOS/Ether/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/macOS/Ether/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/macOS/Ether/Ether.entitlements b/macOS/Ether/Ether.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/macOS/Ether/Ether.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/macOS/Ether/Info.plist b/macOS/Ether/Info.plist new file mode 100644 index 0000000..98b16f1 --- /dev/null +++ b/macOS/Ether/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSApplicationCategoryType + public.app-category.games + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2022 Starla Insigna. All rights reserved. + + diff --git a/res/Master.bank b/res/Master.bank new file mode 120000 index 0000000..421f73f --- /dev/null +++ b/res/Master.bank @@ -0,0 +1 @@ +fmod/Build/Desktop/Master.bank \ No newline at end of file diff --git a/res/Master.strings.bank b/res/Master.strings.bank new file mode 120000 index 0000000..aa181c7 --- /dev/null +++ b/res/Master.strings.bank @@ -0,0 +1 @@ +fmod/Build/Desktop/Master.strings.bank \ No newline at end of file diff --git a/res/fmod/.cache/fsbcache/Desktop/1FE16EE9.fobj b/res/fmod/.cache/fsbcache/Desktop/1FE16EE9.fobj index 32ffbc7..0ab6cd5 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/1FE16EE9.fobj and b/res/fmod/.cache/fsbcache/Desktop/1FE16EE9.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/3019A628.fobj b/res/fmod/.cache/fsbcache/Desktop/3019A628.fobj index d7c5f5b..29a7667 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/3019A628.fobj and b/res/fmod/.cache/fsbcache/Desktop/3019A628.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/3AA7253D.fobj b/res/fmod/.cache/fsbcache/Desktop/3AA7253D.fobj index 6407ce9..3348d10 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/3AA7253D.fobj and b/res/fmod/.cache/fsbcache/Desktop/3AA7253D.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/3C7FCD0D.fobj b/res/fmod/.cache/fsbcache/Desktop/3C7FCD0D.fobj index 3cc9fd7..8bb9e34 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/3C7FCD0D.fobj and b/res/fmod/.cache/fsbcache/Desktop/3C7FCD0D.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/53616416.fobj b/res/fmod/.cache/fsbcache/Desktop/53616416.fobj index 40284c4..721ec90 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/53616416.fobj and b/res/fmod/.cache/fsbcache/Desktop/53616416.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/57E359F0.fobj b/res/fmod/.cache/fsbcache/Desktop/57E359F0.fobj index 2438622..343a4ee 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/57E359F0.fobj and b/res/fmod/.cache/fsbcache/Desktop/57E359F0.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/5A3FB1CD.fobj b/res/fmod/.cache/fsbcache/Desktop/5A3FB1CD.fobj index 48acbe0..d2e1237 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/5A3FB1CD.fobj and b/res/fmod/.cache/fsbcache/Desktop/5A3FB1CD.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/71C77FCD.fobj b/res/fmod/.cache/fsbcache/Desktop/71C77FCD.fobj index ee4f169..8c473ab 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/71C77FCD.fobj and b/res/fmod/.cache/fsbcache/Desktop/71C77FCD.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/7FBDFDEC.fobj b/res/fmod/.cache/fsbcache/Desktop/7FBDFDEC.fobj index 9420705..d081c02 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/7FBDFDEC.fobj and b/res/fmod/.cache/fsbcache/Desktop/7FBDFDEC.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/8E6D2689.fobj b/res/fmod/.cache/fsbcache/Desktop/8E6D2689.fobj index 9cab574..0bbfa9d 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/8E6D2689.fobj and b/res/fmod/.cache/fsbcache/Desktop/8E6D2689.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/B1D38FCD.fobj b/res/fmod/.cache/fsbcache/Desktop/B1D38FCD.fobj index b9b2179..5134d87 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/B1D38FCD.fobj and b/res/fmod/.cache/fsbcache/Desktop/B1D38FCD.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/BA7E5A1C.fobj b/res/fmod/.cache/fsbcache/Desktop/BA7E5A1C.fobj index c719bce..2c18b9c 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/BA7E5A1C.fobj and b/res/fmod/.cache/fsbcache/Desktop/BA7E5A1C.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/C8D72C41.fobj b/res/fmod/.cache/fsbcache/Desktop/C8D72C41.fobj index a5764cd..50648aa 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/C8D72C41.fobj and b/res/fmod/.cache/fsbcache/Desktop/C8D72C41.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/E5DD54AC.fobj b/res/fmod/.cache/fsbcache/Desktop/E5DD54AC.fobj index e4b878b..c056e3f 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/E5DD54AC.fobj and b/res/fmod/.cache/fsbcache/Desktop/E5DD54AC.fobj differ diff --git a/res/fmod/.cache/fsbcache/Desktop/ED73FAF7.fobj b/res/fmod/.cache/fsbcache/Desktop/ED73FAF7.fobj index 57514a3..09cdb22 100644 Binary files a/res/fmod/.cache/fsbcache/Desktop/ED73FAF7.fobj and b/res/fmod/.cache/fsbcache/Desktop/ED73FAF7.fobj differ diff --git a/res/fmod/Metadata/Bank/{a23d2b1c-914e-48d4-8df9-80f6edad6c28}.xml b/res/fmod/Metadata/Bank/{a23d2b1c-914e-48d4-8df9-80f6edad6c28}.xml index 75781eb..4a6657c 100644 --- a/res/fmod/Metadata/Bank/{a23d2b1c-914e-48d4-8df9-80f6edad6c28}.xml +++ b/res/fmod/Metadata/Bank/{a23d2b1c-914e-48d4-8df9-80f6edad6c28}.xml @@ -1,6 +1,9 @@ + + Master + {ad94bc40-033a-43b5-b7c3-369573d66376} diff --git a/res/icon.png b/res/icon.png new file mode 100644 index 0000000..0b43935 Binary files /dev/null and b/res/icon.png differ diff --git a/res/icon128.png b/res/icon128.png new file mode 100644 index 0000000..eff7e8d Binary files /dev/null and b/res/icon128.png differ diff --git a/res/icon256.png b/res/icon256.png new file mode 100644 index 0000000..37b6894 Binary files /dev/null and b/res/icon256.png differ diff --git a/res/icon32.png b/res/icon32.png new file mode 100644 index 0000000..580c814 Binary files /dev/null and b/res/icon32.png differ diff --git a/res/icon64.png b/res/icon64.png new file mode 100644 index 0000000..b04357b Binary files /dev/null and b/res/icon64.png differ diff --git a/src/game.cpp b/src/game.cpp index a3aa7be..39828f4 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1,6 +1,6 @@ #include "game.h" #include -#include +#include "fov.h" #include #include #include @@ -8,6 +8,7 @@ #include "util.h" #include "renderer.h" #include "consts.h" +#include "runtime.h" Game::Game(std::mt19937& rng, Muxer& muxer, Renderer& renderer) : rng(rng), @@ -35,7 +36,7 @@ Game::Game(std::mt19937& rng, Muxer& muxer, Renderer& renderer) : tick(); } while (!isInitialCaveBigEnough()); - std::ifstream textFile("../res/childoflight.txt"); + std::ifstream textFile(Runtime::getResourcePath("childoflight.txt")); std::string line; while (std::getline(textFile, line)) { signTexts.push_back(line); @@ -284,7 +285,7 @@ void Game::recalculateLighting() if (game.map.inBounds(x, y)) { MapData& sourceData = *static_cast(source); - double lightRadius = static_cast(sourceData.lightRadius); + //double lightRadius = static_cast(sourceData.lightRadius); if (!game.map.at(x,y).lit) { @@ -302,7 +303,7 @@ void Game::recalculateLighting() for (int x = map.getLeft(); x < map.getRight(); x++) { Source ls = Source::None; - int lightRadius; + int lightRadius = 0; if (renderPlayer && player_x == x && player_y == y) { diff --git a/src/game.h b/src/game.h index 3b092dd..914df53 100644 --- a/src/game.h +++ b/src/game.h @@ -13,6 +13,7 @@ #include "consts.h" #include "sign.h" #include "menu.h" +#include "runtime.h" class Renderer; @@ -88,7 +89,7 @@ public: int player_oldx = 0; int player_oldy = 0; bool renderPlayer = true; - Animation playerAnim {"../res/player_anim.txt"}; + Animation playerAnim {Runtime::getResourcePath("player_anim.txt")}; int maxZoom = INIT_ZOOM; int curZoom = INIT_ZOOM; diff --git a/src/main.cpp b/src/main.cpp index ae64079..0b9195f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,4 @@ #include -#include #include #include #include "util.h" diff --git a/src/muxer.cpp b/src/muxer.cpp index 6ae6936..c276c0f 100644 --- a/src/muxer.cpp +++ b/src/muxer.cpp @@ -1,6 +1,7 @@ #include "muxer.h" #include #include +#include "runtime.h" void ERRCHECK_fn(FMOD_RESULT result, const char* file, int line) { if (result != FMOD_OK) { @@ -22,10 +23,10 @@ Muxer::Muxer() { ERRCHECK(system_->initialize(1024, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, nullptr)); FMOD::Studio::Bank* masterBank = nullptr; - ERRCHECK(system_->loadBankFile("../res/fmod/Build/Desktop/Master Bank.bank", FMOD_STUDIO_LOAD_BANK_NORMAL, &masterBank)); + ERRCHECK(system_->loadBankFile(Runtime::getResourcePath("Master.bank").c_str(), FMOD_STUDIO_LOAD_BANK_NORMAL, &masterBank)); FMOD::Studio::Bank* stringsBank = nullptr; - ERRCHECK(system_->loadBankFile("../res/fmod/Build/Desktop/Master Bank.strings.bank", FMOD_STUDIO_LOAD_BANK_NORMAL, &stringsBank)); + ERRCHECK(system_->loadBankFile(Runtime::getResourcePath("Master.strings.bank").c_str(), FMOD_STUDIO_LOAD_BANK_NORMAL, &stringsBank)); } void Muxer::setPlayerLoc(int x, int y) { diff --git a/src/renderer.cpp b/src/renderer.cpp index 724e297..09bddc9 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -1,6 +1,7 @@ #include "renderer.h" #include #include "game.h" +#include "runtime.h" Renderer::Renderer() { @@ -33,7 +34,7 @@ Renderer::Renderer() } texture_ptr origFade; - loadTextureFromFile("../res/lighting.png", origFade); + loadTextureFromFile("lighting.png", origFade); playerFade_ = texture_ptr( SDL_CreateTexture( @@ -105,22 +106,22 @@ Renderer::Renderer() SDL_SetRenderDrawColor(ren_.get(), 100, 100, 100, 255); SDL_RenderFillRect(ren_.get(), nullptr); - loadTextureFromFile("../res/player.png", playerSheet_); - loadTextureFromFile("../res/runninbloods.png", tileset_); - loadTextureFromFile("../res/lamp.png", lamp_); - loadTextureFromFile("../res/read_instruction.png", readInstruction_); - loadTextureFromFile("../res/menu.png", menuBg_); + loadTextureFromFile("player.png", playerSheet_); + loadTextureFromFile("runninbloods.png", tileset_); + loadTextureFromFile("lamp.png", lamp_); + loadTextureFromFile("read_instruction.png", readInstruction_); + loadTextureFromFile("menu.png", menuBg_); - loadTextureFromFile("../res/title0.png", titles_[0]); + loadTextureFromFile("title0.png", titles_[0]); SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); - loadTextureFromFile("../res/title1.png", titles_[1]); + loadTextureFromFile("title1.png", titles_[1]); SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); - loadTextureFromFile("../res/title3.png", titles_[2]); + loadTextureFromFile("title3.png", titles_[2]); SDL_QueryTexture(titles_[2].get(), nullptr, nullptr, &titleWidths_[2], &titleHeights_[2]); - font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); + font_ = font_ptr(TTF_OpenFont(Runtime::getResourcePath("softsquare.ttf").c_str(), 45)); if (!font_) { throw ttf_error(); } @@ -553,7 +554,7 @@ void Renderer::renderTitle(int num, double fade) { } void Renderer::loadTextureFromFile(std::string_view path, texture_ptr& texture) { - surface_ptr pfs(IMG_Load(path.data())); + surface_ptr pfs(IMG_Load(Runtime::getResourcePath(path).c_str())); if (!pfs) { throw img_error(); diff --git a/src/runtime.h b/src/runtime.h new file mode 100644 index 0000000..a0e3a2c --- /dev/null +++ b/src/runtime.h @@ -0,0 +1,13 @@ +#ifndef RUNTIME_H_A8DA6E1E +#define RUNTIME_H_A8DA6E1E + +#include +#include + +class Runtime { +public: + + static std::string getResourcePath(std::string_view filename); +}; + +#endif /* end of include guard: RUNTIME_H_A8DA6E1E */ diff --git a/src/runtime_macos.mm b/src/runtime_macos.mm new file mode 100644 index 0000000..b46e6f8 --- /dev/null +++ b/src/runtime_macos.mm @@ -0,0 +1,16 @@ +#include "runtime.h" +#import + +std::string Runtime::getResourcePath(std::string_view filename) { + CFStringRef fileNameRef = CFStringCreateWithCString(kCFAllocatorDefault, filename.data(), kCFStringEncodingUTF8); + CFURLRef appUrlRef = CFBundleCopyResourceURL(CFBundleGetMainBundle(), fileNameRef, NULL, NULL); + CFStringRef filePathRef = CFURLCopyPath(appUrlRef); + const char* filePath = CFStringGetCStringPtr(filePathRef, kCFStringEncodingUTF8); + std::string result(filePath); + + CFRelease(filePathRef); + CFRelease(appUrlRef); + CFRelease(fileNameRef); + + return result; +} diff --git a/src/runtime_test.cpp b/src/runtime_test.cpp new file mode 100644 index 0000000..b4a6d34 --- /dev/null +++ b/src/runtime_test.cpp @@ -0,0 +1,5 @@ +#include "runtime.h" + +std::string Runtime::getResourcePath(std::string_view name) { + return std::string("../res/") + std::string(name); +} -- cgit 1.4.1