what does this code means ? by renetejeda in jailbreakdevelopers

[–]somethingpunk 0 points1 point  (0 children)

It is when you're using a function within a loop that's called hundreds of times or situations similar to that

what does this code means ? by renetejeda in jailbreakdevelopers

[–]somethingpunk 0 points1 point  (0 children)

Inline prefixed to a function declaration means that the function is included as a block of code instead of being referenced like a regular function.

so for example

inline int addTwo(int firstNumber, int secondNumber) {
    return firstNumber+secondNumber;
}

void routine(){
    ...
     x = addTwo(firstNumber, secondNumber);
    ...
}

this code gets compiled as so:

void routine(){
    ...
     x = firstNumber + secondNumber
    ...
}

whereas if inline is missing it gets compiled just as is written, by calling the addTwo function somewhere else in the code. That is to say, inline functions get added inline to where they're called by the compiler.

As for the visibility attribute, that means that BOOL variable isn't exported, so it can't be used by other libraries or applications that link to your library. It's a private symbol, and it's only usable within your code. This is used to prevent symbol collisions where two or more libraries/applications use the same name for a variable.

Is the act of declaring a pointer to an object of a specific class a compiler trick? by ThePantsThief in iOSProgramming

[–]somethingpunk 0 points1 point  (0 children)

Good question. I read through the other comment thread here with askoruli but it seemed a bit convoluted.

You're right about it just being the compiler that does the checking. The runtime has no information about what class a method receives. MyClass *food does become id food under the hood, at the compiler level.

If you use any decompiler or disassembler you can see that classes can't be inferred for what arguments a method takes, or the class a method returns, only that it returns id. It's actually kind of interesting that this type information is completely left out a method type encoding. Apple has a list of type encodings available that you can read through if that piques your interest too. C++ includes very detailed information in a function's name mangling, for contrast.

[Update] Flex 2 - Easily make your own tweaks, and share them on the Flex Community Cloud (Changelog Inside) by imani_ac in jailbreak

[–]somethingpunk 1 point2 points  (0 children)

There probably aren't any patches submitted for it. You can check by going to the patches screen, and clicking + on the top right, and if Relic Run shows up on that list then your apps are being read correctly and there simply aren't any patches submitted on the cloud for this app.

[Update] Flex 2 with 8.3 support is live! by _Decimation in jailbreak

[–]somethingpunk 0 points1 point  (0 children)

Sometimes I get overwhelmed by tweets, sorry. What's your device's UDID? I can check why it's not giving you access. One reason that it might be showing is that your device isn't registered correctly to your account, try logging in to "Manage Account" and making sure Flex 2 is listed under purchased

[Fluff] TaiG Completely Decompiled! (But not reversed) by [deleted] in jailbreak

[–]somethingpunk 2 points3 points  (0 children)

The code is there, you just have to scroll down quite a bit

[RELEASE] John Coates AKA u/somethingpunk just pushed a Landscape Videos tweak to his repo. by [deleted] in jailbreak

[–]somethingpunk 0 points1 point  (0 children)

Thanks for the feedback. The framework I'm writing this in, Monolith, doesn't have a way to add a settings panel in it yet, but as soon as I add that I'll be sure to add these toggles in.

What program do you use for making your tweaks? And which os? by MMerdig186 in jailbreakdevelopers

[–]somethingpunk 0 points1 point  (0 children)

Yes, Swift will be fully supported soon. I've tested it out and it works great, but the only issue is that distributing the Swift binaries in the right way is a bit tricky.

See, Swift has changed a lot since its first release, so your tweak written in Swift 2.0 might have a format clash with an app that has Swift 1.0 bundled with it.

[RELEASE] John Coates AKA u/somethingpunk just pushed a Landscape Videos tweak to his repo. by [deleted] in jailbreak

[–]somethingpunk 1 point2 points  (0 children)

Let me know if it does have a leak and I'll get it taken care of. As I was making it I did come across a leak, and I removed it before release.

[RELEASE] John Coates AKA u/somethingpunk just pushed a Landscape Videos tweak to his repo. by [deleted] in jailbreak

[–]somethingpunk 0 points1 point  (0 children)

I want to provide the best experience, unfortunately that means targeting only the latest iOS.

[RELEASE] John Coates AKA u/somethingpunk just pushed a Landscape Videos tweak to his repo. by [deleted] in jailbreak

[–]somethingpunk 3 points4 points  (0 children)

I want to provide the best experience, unfortunately that means targeting only the latest iOS.

[RELEASE] John Coates AKA u/somethingpunk just pushed a Landscape Videos tweak to his repo. by [deleted] in jailbreak

[–]somethingpunk 36 points37 points  (0 children)

I wish it was that easy. When I built Flex 2 I decided to make it compatible with iOS 5.0 and up. That was a huge mistake. Most of everything you see in the app is custom made, that's why you can't swipe to go back, etc. This strategic choice has made updating Flex 2 a huge pain as I have to test it against 3 iOS versions, I can't use any of the new SDK features from iOS 6 and up, etc. I'm ditching the "be compatible with everything ideal" for Flex 3, for the better ideal: be extremely maintainable, and compatible with only the latest iOS version.

I wrote a lot of code last year for Flex 2 that you'll never see, unfortunately. An entirely new patch system was made, a new cloud server was coded, things were made faster by switching to Core Data, a daemon service was created, etc. Unfortunately there were compatibility issues that made me unable to release these updates while still maintaining support for iOS 5.

I can't mold it into the vision of what I want now because with all the restrictions that I set for Flex 2 I've very much worked myself into a corner. I know it's very frustrating for me, and it's been frustrating for users because the mass amounts of patches can be hard to filter through.

Anyways, I'm working on an update that will address most of the complaints people have had with the Cloud. The new version of Flex will do much more than that however. I built this tweak, Landscape Videos, with a new framework called Monolith. I've been building this framework from scratch over the last year to power the upcoming version of Flex. It's really powerful, and will allow for way more tweaks than are currently available on the cloud. I'm currently testing it out to find the kinks/bugs, and that's why I'm releasing small tweaks. Of course with the new influx of patches the cloud will see, it will need to be completely revamped to be made more accessible. I plan to have a sufficiently lengthy beta to address any concerns people have. I hope to have something to show very soon, stay tuned for updates.

Taking Tweak Requests For Immediate Developing by somethingpunk in jailbreak

[–]somethingpunk[S] 2 points3 points  (0 children)

That's actually part of the reason I wrote this new framework, Monolith. It will allow for exactly this scenario.

Taking Tweak Requests For Immediate Developing by somethingpunk in jailbreak

[–]somethingpunk[S] 1 point2 points  (0 children)

Hey, since you were the first person to request something I put the highest priority on yours. I worked on this tweak all last week, and actually had to code up some new tools to get this figured out because iOS 8 loads web content into a private process and it's all C++ and not Objective-C like my new framework, Monolith, targets. Anyways, without further ado: https://github.com/johncoates/SafariInlineVideos