Skip to content

Commit

Permalink
refactor: use custom flex loader instead of libbhFLEX
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed May 14, 2024
1 parent 165aa4d commit e3caf17
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 46 deletions.
2 changes: 1 addition & 1 deletion build-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

echo 'Note: This script is meant to be used while developing the tweak.'
echo ' This does not build "libbhFLEX", it must be done manually and moved to ./packages'
echo ' This does not build "libsciFLEX", it must be done manually and moved to ./packages'
echo

./build.sh sideload --dev
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ then
# Check if building with dev mode
if [ "$2" == "--dev" ];
then
FLEXPATH='packages/libbhFLEX.dylib'
FLEXPATH='packages/libsciFLEX.dylib'

make "DEV=1"
else
FLEXPATH='.theos/obj/debug/libbhFLEX.dylib'
FLEXPATH='.theos/obj/debug/libsciFLEX.dylib'

make "SIDELOAD=1"
fi
Expand Down
3 changes: 0 additions & 3 deletions modules/libflex/depiction

This file was deleted.

13 changes: 0 additions & 13 deletions modules/libflex/libFLEX.h

This file was deleted.

1 change: 0 additions & 1 deletion modules/libflex/libbhFLEX.plist

This file was deleted.

26 changes: 0 additions & 26 deletions modules/libflex/libbhFLEX.x

This file was deleted.

1 change: 1 addition & 0 deletions modules/libflex/libsciFLEX.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#import <Foundation/Foundation.h>
14 changes: 14 additions & 0 deletions modules/libflex/libsciFLEX.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">
<dict>
<key>Filter</key>
<dict>
<key>Bundles</key>
<array>
<string>com.burbn.instagram</string>
</array>
</dict>
</dict>
</plist>
1 change: 1 addition & 0 deletions modules/libflex/libsciFLEX.x
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#import "libsciFLEX.h"

0 comments on commit e3caf17

Please sign in to comment.