Skip to content

Commit

Permalink
major update! see README.md for details
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy-420 committed Nov 3, 2021
1 parent 872c99e commit d9d92e4
Show file tree
Hide file tree
Showing 7 changed files with 279 additions and 239 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# OS X noise
.DS_Store
.AppleDouble
._*
.theos
packages
*.txt
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
# ftt
Description: First made by iPad_kid - then updated by myself. Change Flex 3 patches into Theos projects using simple terminal commands.
Description: First made by iPadkid358 - then updated by myself. Change Flex 3 patches into Theos projects using simple terminal commands.

Use 'ftt -?' For a full list of options.

Flex 3 beta repo - http://getdelta.co

Original flex to theos coding I found :https://github.com/ipadkid358/FlexToTheos/find/master?q=
Original flex to theos coding I found :https://github.com/ipadkid358/FlexToTheos


DIFFERENCES BETWEEN FLEX TO THEOS FROM IPADKID358 AND MINE

V0.3.8 - I fixed the following bugs that were present in ipadkid358's version of flex to theos, but I hadn't gotten around to fixing until now

Fixed a bug that would try to return %orig; on a void method

If the output folder already exists, it will change the number on the end instead of failing to convert the project from flex to theos

Ability to set FINALPACKAGE: && DEBUG: automatically when generating the makefile.

Added ability to convert ALL flex patches to theos code projects with one command (ftt -z)


----------------------------
PAST FLEX TO THEOS UPDATES

Fix bug that would add an extra character between the return value, causing the project not to make properly
- (bool) <- two characters

Added the ability to make the deb straight from flex to theos terminal output (ftt -m)

I have ftt -g hooked to some of my personal flex patches

Added a preference bundle which allows the user to set custom arm support for their deb as well as customize the developers name / email and bundle name

Added the ability to add a description to your patch straight from the terminal while using ftt

Added ability to automatically name the folder after the flex patch you're making (ftt -a)
13 changes: 13 additions & 0 deletions added.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#define PREFS @"com.randy420.fttprefs"

static NSString *GetNSString(NSString *pkey, NSString *defaultValue, NSString *plst){
NSMutableDictionary *Dict = [NSMutableDictionary dictionaryWithDictionary:[NSMutableDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist",plst]]];

return [Dict objectForKey:pkey] ? [Dict objectForKey:pkey] : defaultValue;
}

static BOOL GetBool(NSString *pkey, BOOL defaultValue, NSString *plst) {
NSMutableDictionary *Dict = [NSMutableDictionary dictionaryWithDictionary:[NSMutableDictionary dictionaryWithContentsOfFile:[NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist",plst]]];

return [Dict objectForKey:pkey] ? [[Dict objectForKey:pkey] boolValue] : defaultValue;
}
6 changes: 3 additions & 3 deletions control
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: ru.rj.ftt
Name: Flex To Theos
Depends: mobilesubstrate, ws.hbang.common, com.randy420.tools (>=0.7)
Depends: mobilesubstrate, ws.hbang.common, com.randy420.tools (>=1.6)
Architecture: iphoneos-arm
Description: First made by iPad_kid - then updated by myself. Change Flex 3 patches into Theos projects using simple terminal commands. Use 'ftt -?' For a full list of options. Flex 3 beta repo - http://getdelta.co Original flex to theos coding I found :https://github.com/ipadkid358/FlexToTheos/find/master?q=
Homepage: https://theemeraldisle.family
Maintainer: Randy420 <randy.skinner@hotmail.com>
Author: ipad_kid_Randy420 <ipadkid358@gmail.com, randy.skinner@hotmail.com>
Section: Utilities
Version: 0.3.7
Replaces: com.ipadkid.ftt, com.randy420.ipadkid.ftt
Version: 0.3.8
Replaces: com.ipadkid.ftt, com.azmilaila.ftt, com.ceadd.flextotheosbyipadkid358, com.randy420.ipadkid.ftt
22 changes: 10 additions & 12 deletions include/420.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@

@implementation _420Manager
-(void) RunCMD:(NSString *)RunCMD WaitUntilExit:(BOOL)WaitUntilExit {


NSString *SSHGetFlex = [NSString stringWithFormat:@"%@",RunCMD];
NSString *SSHGetFlex = [NSString stringWithFormat:@"%@",RunCMD];

NSTask *task = [[NSTask alloc] init];
NSMutableArray *args = [NSMutableArray array];
[args addObject:@"-c"];
[args addObject:SSHGetFlex];
[task setLaunchPath:@"/bin/sh"];
[task setArguments:args];
[task launch];
if (WaitUntilExit)
[task waitUntilExit];
NSTask *task = [[NSTask alloc] init];
NSMutableArray *args = [NSMutableArray array];
[args addObject:@"-c"];
[args addObject:SSHGetFlex];
[task setLaunchPath:@"/bin/sh"];
[task setArguments:args];
[task launch];
if (WaitUntilExit)
[task waitUntilExit];
}
@end
21 changes: 0 additions & 21 deletions include/c_admin.h

This file was deleted.

Loading

0 comments on commit d9d92e4

Please sign in to comment.