#development
1 messages · Page 146 of 1
L
y paper 1 wrong
and are banned by the US government
imagine not having a personal connection to bert and ernie
lol
ert and bernie
nvm
math major write a single 5 paragraph essay challenge
fr
cool you’re now more qualified than cameren
fuck you just reminded me
i have a 3 page paper due
frick
whats it on
uhhh
L
3 double spaced?
that’s like 2 hours ezpz
fr
even with delays and breaks
gimme twenty bucks ill write it
the role suffering in the odyseey to demonstrate how odysseus is not an average person on the mental level because the suffering he experiences does not change his personal goals i guess
aw hell naw
classics or high school english
classics & humanities
cringe
im in college
rip

your grammar is very good
usually people miss commas but your commas are all correct
looks good just go finish it fr
i took ap lang 🤷♂️
and a humanities course based on composition last semester
did u take ap lit or just ap lang
lmao
i took public speaking my senior year
it's like having subway surfers gameplay in the background of a vid
an attempt at engagement
idk man teachers come up with the weirdest things
i cant remember which one i took
lang is more composition based
Lit is more comprehention based
maybe i did de english instead of taking either
i did ap english
then did de english senior year
TWINKS
lol
only lit and lang
lemme login to my damn ap acc
i thought this said thanks 💀
fr
nice ss
one of them themes ever
🤓
damn
read it and weep
popped off
too bad i changed my major
none of them rly did anything
chem got me out of gen eds and lang got me out of english
that's the most random aps i've ever seen
still impressive
2021:
world history: 2
2022:
comp sci p: 3 (i was sick)
lang: 3
physics 1: 2
2023:
calc ab: 4
comp sci a: 4
macro economics: 3
physics 2: 3
dropping 5s ain’t that easy
did dual enrollment bio english and organic chem senior year instead of ap
any high schoolers in here i highly recommend dual enrolling if its available
i got my calc ab4 so i’m happy
i did a ton of IB's
to this day I still think of 2019 as "one year ago" and 2018 as "two years ago"
help.
wait it is -
i wanna go back to 2019
oh
i got calc ab 3 and bc 2 in 2020
not in that ss tho
smh real ones got over time dilation last year
2020-2022 was one year
lol
but now my sense of time is normal
it’s 2023
ok problem is @primal perch @lean ermine
i didnt actually read the odyssey 
i did a stats competition in my state and got 2nd place 🤓
odysseus leave home
wif get sadd
yapp time
odysseus kill cuclop
stats goat
odysseus go home
BRO ALL YOU DO IS YAP
odysseus probably has one of the best spark notes pages that has ever existed
odyssey
it aint named odysseus..
brick
🧱
literature class is the bane of any cs student's existence
my professor said id get extra credit if i used "rizz" in the essay
average 2005er
I mean more the analyzing text part
real
why are u here then
my professor is like 50 and she was amazed with "rizz"
bc its required 
there is a clear dif from cs majors that came in knowing programming and ones that didnt and its so funny
fr
the ones that came from math are more goated tho
it’s a dead giveaway
mathematicians and physicists are way more humble
cuz they are the 150 iqs
yeah i go around helpign people better than the professor
more respect from me
fr they are more humble but smarter
yea
my best friend is a cs major and when he started cs i knew way more than him but i fell off
true geniuses
least furry cs fan
fr
like if i have the advantage in comp sci
im not gonna just sit to myself
if someone needs help imma provide it, granted imma poke fun a bit
but in the end i want to see them get it
i tutored 1 person today and helped 3 people in my class w the assignment
good man
being ahead isn’t the problem
being arrogant and smart assing the professor is
no no, instead of helping them, waste their time by helping them analyze shakespeare together ✅

real
i took intro to programming and just did the assignments without whining cus that’s the program
it was the easiest A ever but i didn’t have to mouth off shit
then i learned you can test out of shit so i did that for the next 2 courses
"they dont know I made SettingsWidgets 😠" - shep in his sleep (probably)

lmfao
sadly yes
no, i did
we did a very very very simple C program today and i wasnt paying attention bc why would i
and the professor goes: "i want to see it before you leave"
so im like, ugh so i type it out
and the professor goes: "i trust you did it"
inshallah brother
what was the program
uhhhh
yeah that’s real though it’s not like i pay attention to everything
just do the class and get the bag easy
discrete math im paying attention tho
and automata shit
that’s new to me
#include <stdio.h>
int x;
int main() {
int y, z;
printf("Enter 2 numbers: ")
scanf("%d %d", &y, &z);
x = y + z;
printf("%d", x);
return 0;
}
bruh
smth like that
lmao
i get that
oui
#include <stdio.h>
int x;
int main() {
int y, z;
printf("Enter the value of x and y\n");
scanf("%d %d", &x, &y);
z = x + y;
printf("Sum of x and y is %d\n", z);
return 0;
}
exact code
he posted
what would be the better way of capturing user input for this
minimal scope for variable is a dead giveaway for noobs vs intermediate
Automaton theory?
i’d use getline with a hardcode buffer length and parse with strtoull or sum
scanf_s is the safe version but you should probably use fgets
yea
this also works but why
id create a webserver hosting a simple webpage that sends a request to a localhosted webserver and the webserver parses and casts the requests payload into a variable
do it in asm 🙏

💯
do it in arm64 hex asm
@indigo peak when did u start programing, like how many yrs ago?
armconverter my beloved
.
6-ish?
🙏
otool > armconverter
and that one shell storm x64 site
ur 12?????
wha
LOL
i never said i coded half my life 😭
bro cannot read
i started when i was 12-13
ur 12 years old bruh..
how many years old?
wat 12 year old needs to read the odyssey and analyze the mental effects of suffering 😭
Fourteen-year-old programmer and software developer Santiago Gonzalez might just be the next Steve Jobs. He already has 15 iOS apps to his name and dreams of designing for Apple. At age 12, Santiago became a full-time college student and is on track to earn his bachelor's degree in computer science and electrical engineering by age 16. By 17, w...
im sorry i had to
well i get bitches and that mf def aint get no pussy
ew camel case
when she come over i make her sqrt() 🙏 💯 🗣️
preach
sw*ft should rot
both should lowkey
mfw cwift
opengl is not fun to write so respect
bro what
more fun than vulkan 
he wrote a literal essay as a comment
i have bootlooped this iphone 4 23 times today
looks like the code i wrote today
i dont write comments
only if im givign code to people will i comment
like to teach
real af
mine is not
no you just write them in the most obvious spots (wherever they dont need them)
i can read it, others can not
inb4 str_patcher code
// this deletes the folder
rmdir(path)
yes
@native orbit like i said
https://github.com/donato-fiore/Cach3D/blob/master/Tweak.xm
readable
i didnt know what LSBundleProxy's were
i dont comment my asm at all either lmao
lmfao
i only comment what branches are what
with static offsets
like if i have
bl 0x12fa238a
or smth
ill ; function to get bitches
true
fr
(wtf are those magic numbers)
beautiful
see
unsigned rn = (op >> 5) & 0x1F;
i dont support react native here
delete this pls
wha
but then no str_patcher
wha
tf this even for lmao
🗿
_wrapperFunction:
sub sp, sp, #160
stp fp, lr, [sp, #144]
add fp, sp, #144
stp x0, x1, [fp, #-16]
stp x2, x3, [fp, #-32]
stp x4, x5, [fp, #-48]
stp x6, x7, [fp, #-64]
stp x8, x9, [fp, #-80]
stp x10, x11, [fp, #-96]
stp x12, x13, [fp, #-112]
stp x14, x15, [fp, #-128]
mov x0, #-2 //RTLD_DEFAULT from #import <dlfcn.h>
adr x1, _helperFunction
bl #0x5F0AA4 //_dlsym
str x0, [fp, #-136]
ldr x8, [fp, #-136]
blr x8
str x0, [fp, #-144]
ldp x0, x1, [fp, #-16]
ldp x2, x3, [fp, #-32]
ldp x4, x5, [fp, #-48]
ldp x6, x7, [fp, #-64]
ldp x8, x9, [fp, #-80]
ldp x10, x11, [fp, #-96]
ldp x12, x13, [fp, #-112]
ldp x14, x15, [fp, #-128]
ldr x16, [fp, #-144]
cbnz x16, _useHacks
b _useStock
_useHacks:
mov w8, #0x52a9cdc8
b _end
_useStock:
mov w8, #0x52A84E08
_end:
ldp fp, lr, [sp, #144]
add sp, sp, #160
ret
_helperFunction:
.asciz "GSGetLongLines"
.align 4
uint64_t GSGetLongLines(void) {
BOOL x = [NSUserDefaults.standardUserDefaults boolForKey:@"useHacks"];
return (x) ? 1 : 0;
}
if it works it works 
yea
@primal perch @lean ermine just spent like 45 min writting this piece of shit
click the cfstring structure
fuckin ds store
you should see an associated string at some point
where, i checked all the references to the struct
im so cooked
real
apple
how you gon have 2 unique letters and both be vowels
sigh
its time
hell no
based
i’d strongly recommend running any of these cracks in a vm even if you were
(i use window)
fr
what ab cryptics version
did he crack it himself
zero idea
pretty sure it’s just his repack
thats so real
ida77.tar.zst
it’s probably fine but i assume all pirated executables are compromised so go for it
@topaz yew well if you have a way to execute exes, whether it be wine or a vm i can def not dm you the url
reconstructing tweaks from ida is fun but time consuming
yeah im tryna use some undocumented functions
thats always fun
thats the best
yup
to do what
uh weather.framework for a lockscreen tweak and calculate.framework for a calculator tweak
fair enough lol
im tryna make a window manager thingy
or desktop replacement
we'll see how that goes
idk if yk calculatorhistory
but i orig coded it by detecting when certain buttons were pressed
but i recently rewrote (unreleased) to just hook the calculate framework and parse the calculation string
bluds remaking macos
oh ye i think i saw you working on it
probably 🤷♂️
i mean you're not wrong
but its just a tweak at the end of the day
true
how tf did you not ping 💀
rip scoop
wha happen
nothing he just gon
yea
been a min since i talked
whatever he’s doing i think he’s a bartender
(been a while: january 31st 2024)
fr
thats cool
ida going hard

fr
thugged it out and ran sshrd again (didnt learn from last time :3) mounting with 16.6 ramdisk instead of 14.3 didnt work. anything 17.x just said it couldnt get ios ver from iboot
no bootloop which is fuckin awesome
@lean ermine @primal perch
im gonna drop out of school if i have to write anymore 😭
no you can code it yourself
i did it for flora
GPL
W
Huge W

i believe in OSS
can anyone test flora rootful
please
i had to rebuild libsandy to work with the sdk
great now the prefs dont work in rootless
this is annoying
you probably forgot to use ROOT_PATH_NS somewhere lol
but anyway, if you're building rootless it should already link against the rootless version of the lib if you have it
yeah i do
this is really weird
theres no paths that i can even pass to this that could break without ROOT_PATH_NS
im just linking against gcuniversal in my makefile
the installer already builds for both rootless and rootful
for both of my libs
using THEOS_PACKAGE_SCHEME i assume?
yeah
i guess make clean and start over ig
yea thats what i was about to try
ok it worked now
but i still need someone to test rootful and see if it even works
like at all
this is the build script now
task "Clearing packages directory" "rm -rf packages/*;"
task "Cleaning paths" "gmake clean;"
task "Making rootful tweak" "gmake package && [ -e \$(find packages/com.rosiepie.flora*.deb) ];"
task "Renaming package filename" "find packages/com.rosiepie.flora*.deb -exec sh -c 'mv \"\$0\" packages/Flora.rootful.deb' {} \;"
task "Making rootless tweak" "gmake package THEOS_PACKAGE_SCHEME=rootless && [ -e \$(find packages/com.rosiepie.flora*.deb) ];"
task "Renaming package filename" "find packages/com.rosiepie.flora*.deb -exec sh -c 'mv \"\$0\" packages/Flora.deb' {} \;"
ok will do
How can I build properly the go project which is using dylib with cgo on rootless jb?
yea and i offered to help but something tells me they dont want my shitcode in their codebase

Yo @grim sparrow do ya think you could fix MacSpoof on iOS 16?
I’m a busy bitch
i'm trying to make a simple respring button app in objective-c with theos but i'm getting these errors:
BRootViewController.m::77::22:: error: error: expected ']'
expected ']'
[UIScreenmainScreen].applicationFrame];
^
[UIScreenmainScreen].applicationFrame];
^
and this is my code:
#import "RBRootViewController.h"
@implementation RBRootViewController
- (void)loadView {
[super loadView];
UIView *view = [[UIView alloc] initWithFrame
[UIScreenmainScreen].applicationFrame];
[view setBackgroundColor:[UIColor whiteColor]];
self.title = @"Respring Button";
UIButton *button = [UIButton
buttonWithType:UIButtonTypeCustom];
[button addTarget:self
action:@selector(respring)
forControlEvents:UIControlEventTouchUpInside];
[button setTitle:@"Respring" forState:UIControlStateNormal];
button.frame = CGRectMake(0, 50, 100, 100);
button.center = view.center;
[button setTitleColor: self.view.tintColor
forState:UIControlStateNormal];
[view addSubview:button];
self.view = view;
}
- (IBAction) respring {
pid_t pid;
int status;
const char* args[] = {"killall", "backboardd", NULL};
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char*
const*)args, NULL);
waitpid(pid, &status, WEXITED);
}
@end
and my makefile:
export TARGET := iphone:clang:16.5:14.5
export THEOS_PACKAGE_SCHEME=rootless
include /Users/pixeljellyfish/theos/makefiles/common.mk
APPLICATION_NAME = RespringButton
INSTALL_TARGET_PROCESSES = RespringButton
RespringButton_FILES = main.m RBAppDelegate.m RBRootViewController.m
RespringButton_FRAMEWORKS = UIKit CoreGraphics
RespringButton_CFLAGS = -fobjc-arc
include /Users/pixeljellyfish/theos/makefiles/application.mk
any help would be helpful plz :) <3
I hope diffuser Ui will see the light of day
[UIScreen mainScreen] not [UIScreenmainScreen]
it still shows the error
wait
nvm it still shows the error :(
ah i got working
doesn’t work on ios 14
It works smh tho it is a little weird
I do but not atm
Captinc has contributed to theos, I’m sure you’d be fine

hello, but what is this entitlemens for? com.apple.private.CacheDelete
Also it’s Perl, so no one can really write “good” code
Hey I am following this tutorial on my iOS 12 iPhone but FLEXing shows _UlLegibilitylmageView while the tutorial shows _UlStatusBarStringView, did Apple change how this works or am I doing something wrong? https://blog.sourceloc.net/ios-14-tweak-development-beginner-tutorial/
free flora here ? 
oui
do the tweak prefs work at least?
yeah
well i really have no way to debug atm because my mac is dead expect me to return in a few hours :3
what the fuck 
apple moment
why is chimera called “chimera120”
that makes me feel sick for some reason
looks scary
just like zefram
Thanks I was using Nightwind’s tutorial first but it’s for obj-c so I switched to this one, it might be a good exercise to try and do it correctly
Would making the status bar empty be easier?
Or removing it
I think that’s what nightwind did in his tutorial
I found that weird too but I’m too lazy to sign it myself so I use https://jailbreaks.app/
Download the latest jailbreaks online, for free!
fair
yeah you’re right I just have to make sure I realise when I’m doing something that’s bad practice
Do you have any experience with swift playgrounds?
I think there’s some tutorials there to make apps I will look into that
I tried it before but it’s kind annoying on iPad
Anyway thanks for the tips
@placid kraken not sure why or if it’s Flora but ever since I have installed Flora my music app (Deezer) is crashing
None
It just crashes
No crash logs in cr4shed
Nor in privacy
Yeah lmao
H0w ?
Dmesg ?
this is a crashlog for flora but i have no idea what the fuck it means https://cdn.discordapp.com/attachments/1138667099787644958/1212052505505308732/Yks7B33B.txt?ex=65f06edc&is=65ddf9dc&hm=d1b6d40b4a8a67de308f829f7ca8c7e4052895f6b791ab0b4b95836ba3444785&
yeah that's what i usually use
@grave sparrow I can't seem to click the right thing and when I search it it doesn't show up either, could another tweak be causing this?
same thing
I can’t get the three finger gesture to work but I was on the Home Screen and long pressed status bar
🧢
make one of those chains again
Hello everyone, new here, i have a question about how to get variables from PreferenceStorage.swift to Tweak.x.swift using the Comet framework by Ginsu, currently everything resulted in builds failing (couldnt find module or couldnt find PreferenceStorage in scope)
Can somebody help me??
why though
it’s fun 
sure, but, kind of annoying
somehow flora is persistent for one person even after uninstalling and going into unjailbroken state
its a UICOLOR HOOK
how the fuck is it persisting out of jb state
probably cached
yeah but even after a reboot and in unjailbroken state its still there apparently
what do i say to clear caches
no idea where its stored but i had something like that a while ago and found it in the app bundle stored somehere
he forgor to turn it off
apparently not
Can I build Cardculator without getting Venture cuz my VM 100% can’t handle that
Cuz rn it’s not building, it keeps saying “unable to load standard library”
I checked Xcode was enabled and not command line tools
Google doesn’t tell me anything else so what do I do
how do i put icon in package manger thingy
Do you have comet and remotelog installed? (And ofcourse Theos)
Yeah you need it, it gave me errors that it needed them. The code also has it baked in at multiple occasions
Done
Did it work?
Same error
hmm whats a good website to upload that?
imgur probably
GitHub pages if you already use GitHub?
true ^
i just hvae an images/tweak icon folder on my GH repo repo
works great
ok
- its like never gona be down
Hmm i see, do any other tweaks compile? You can try one of sourcelocs tutorials and see if that works
yo
this is prob really stupid but i googled and cant find it
and looked through theos docs
how do i port my phone in console again?
Wdym port your phone?
yeah set theos device ip variable
it's in the theos docs but not as a guide
the list of all environment variables are there tho
To the ip of your phone on your local network
because it's supposed to go elsewhere
Cuz then other people will get an error if their phone isn’t on same ip
If they compile your tweak
Even if no one else gets your source code it’s still best practice
makefiles are for project specific stuff only
personal configs should go in the config file
i cant see that folder
oh 💀
Cuz it’s a dot folder you can’t see it
or i can do make do THEOS_DEVICE_IP=<your device ip> THEOS_PACKAGE_SCHEME=rootless
right
Oh yeah true it’s not .theos
Yeah
the rootless scheme can go in your makefile tho
if you don't plan to build rootful it's fine
Your phones private ip on your local network
cant i just put my ip in my makefile for now?
I mean yeah but only if you aren’t gonna forget anything
Not recommend
Yeah
the hostname also works if you have that
I don’t expect most people who don’t know what a private ip is to run their own dns server
that's not related to running a dns server
ik what a private ip is
i forgor
I mean it is and it isn’t but kinda and yeah
literally the name of your device becomes the hostname
after stripping special characters and spaces
ios does it for you
ssh: connect to host (ip) port 22: Connection refused
this one right
not my router
I’m not familiar with how iOS does that. Most computers aren’t bothered and you have to do it yourself
i dont think so
most computers do? even windows sets it
Then install “openssh-server”
I run LSTC so idk maybe?
man
that's macos but you get the point
is it bad if i hook a class that has like 5 instances on SB ?
You trying to get a repo setup?
(i only want one)
I’m on a goddamn Mac and my host name is 10.0.2.15
do you have open ssh ?
yeah you need that
that's your ip
He’s trying install wireless
i did have it
u need it to ssh nto ur device
I rna the host name command
my device is plugged in
u could use iproxy
i mean that's weird
i did i acidentaly uninstall it 💀
like 1 sec ago
L
but when error happended i had it
U probly still need open ssh or what ever

you need openssh on the device
You don’t need them on the computer
You need to install “openssh-server” package on phone
its default in like everything
@faint stag ?
the repo is *
the repo is
oh
This deserves another 
i mean
does each instance have the same methods?
sometimes you do have to hook them all
@acoustic imp what you hooking
im not gona hook anything other than like regualr UIView methods
Also I can tell you how to make the thing for next update
sm SB walppaper thing
then you should probably check the parent view (well, superview) to make sure it's the one you want
Well hooking every method of UIKit view prolly isn’t the best ideas but if you limit scope to less than a dozen you’ll be fine
(direct) root login isn't permitted on a rootless jb, login as mobile
when you jailbroke for the first time it should've asked you to set the password
Unless you mess up and crash springboard
i was gona just add a property and have it see if the BOOL is YES, and from the certain instances super view il set that one instaces bool to 1, super eficent 👍
Back then palera1n couldn’t be bothered to ask this so it could be alpine
Download what?
the deb
i use airdrop lol
Oh you mean to send
im on windows 😭
Wormhole.app
rip
no
you do it ince then in term clcik up key and boom ur 100%
i dont know the password
i mean you'll probably need to ssh once you crash springboard so why not get used to it now


use newterm to set it
can i reset the password
tweak? mobile? pc?
Mobile tweak
its a app/tweak
on the device, install it
as long as its on the same network
If you don’t have zhn router you’re fine
Cuz it comes with stupid firewall defaults
Experienced the effects of that first hand, took me 2 hours…
eeek
!t shellaccess
Hey @lunar ginkgo, have a look at this!
Changes to shell logins
When you jailbreak for the first time, using a rootless jailbreak, you will be asked to set a password for the mobile user.
This is because logging in as the root user directly is deprecated. You must use the sudo command to elevate permissions. This also applies for logging in over SSH.
- Running
sudo <command>will run your command as the root user when authenticated. - Running
sudo -iwill give you a shell with root-level permissions.
This does not mean you can write anywhere in the root filesystem.
If you'd like to change this password after it has been set on a rootless jailbreak, run passwd mobile in a terminal.
Rootful jailbreaks will keep the password as the default (alpine) for both accounts. If you'd like to change a specific one, run passwd <username>
Please see /tag sshsftp for instructions on how to SSH.
tag is already getting used fr
that didnt work
to chnage psw?
dont respond
ok
wait
it wont let me change the pasword
it needs the old password
nvm
i ran sudo
wait
idk
ok soon
how do i store a referance to a object/instance?
like some how get the offset and use that ?
yea
nvm il do it another way
could either see if the object has a shared instance method, if it’s your own custom class make your own shared instance
You could also create a new property on classA of type classB and do self.clasBInstance=blah
Or just make a global variable
like
UIView *someView;
then someview = self.view
then anywehre in my code i can just someView.whatEever ?
no that causes undefined behavior
pov : pointers
this ^ ?
yeah get the pointer to it
consider https://github.com/acquitelol/flora/blob/1.0.3/Tweak/Flora.x (its updated)
it checks if preferences exists before trying to access any selectors on it
wait until he learns that all instances of classes are offsets
its the like 00x0000 thing in flex
mem address?
thats a memory address
offsets 😭
It's fucking pointers
ik ik to do that i was jus saying to see make sure i got what he was saying
That is not an allowed behavior
00x00000 is wrong
tesla man what are you actually trying to do
0x00000 is right
black magic (Idek)
thats what i mean
I was putting it in terms that he would understand
get a referance to smth that the superviews dont have a propery for
idk i was just brainstorming ways to make it efficent
idk
like the entire tweak?
the idea
well yk how on IOS16 the LS walp liek stays in the same position
basically do that on IOS 16>
(IOS already does it, if the HS walp is diff from the LS, it just layers another UIImagevieww(not exaclty) over the LS one)
I have never noticed
or tf are you on about
one sec il show u
stop deleting

See how with the same wallpaper it stays like the same and with a different one it goes up
@slim bramble
see?
are there any working ssh ramdisks for 17.x?
I can tell you how it works and you can implement it
ik how it works and ik how to implement it
use nathan's tool
doesnt mount filesystems nor lets you use a 17.x ramdisk. panics sep
then why would you need pointers
@visual meadow
i think he alr knows
bc there is multiple views, and idk was just asking of ways to do it
i didnt bootloop this time because i didnt use a fuckin ios 14 ramdisk lol
nathan says iboot64patcher needs to be updated or sum which is why i asked if theres another ramdisk tool
Yeah it doesnt work right rn
sad
is there really not anyone else making a ramdisk tool? surely people would make one because of like icloud bypass people
Hook the wallpaper view apply a blur to it
then apply a directional transform
its not the simple
You alr have the code for it on 16P
yeah and ?
nvm
@acoustic imp how did your test go
it wednesday oops
idiot
indded, but i did my quiz, i didnt finish....
i was destracted tho
and i couldnt do naything ab it
so
i get retake 🎉
wdym you were distracted
ive exam week this week and here i am programming silly tweaks instead
same™️
ppl kept talking to me
u should study 👍
so should I
no ill be fine these are mocks
ill study when i finish 1.0.3
if i were to um
lets say
[Utilities loopUIColorWithBlock:^(unsigned int index, SEL selector, NSString *name, Method method, Class uiColorClass) {
__block UIColor *(*originalColorWithCGColor)(id self, SEL _cmd);
UIColor *originalColor = [UIColor performSelector:selector];
MSHookMessageEx(
uiColorClass,
selector,
imp_implementationWithBlock(^(id self, SEL _cmd) {
// do something with the originalColor here
}),
(IMP *)&originalColorWithCGColor
);
}];
``` do this
would it hold the originalColor pointer forever
or would it drop it at the end of the iteration and then the block is calling a use after free
would the block hold the pointer in scope is what im trying to say
(it puts me into safemode so)
don’t you have to define originalColor with __block or smth
or am I dumb
wait it’s there 
no the __block is for the orig impl block
im trying a different approach because its producing weird results
but yea i guess that makes sense ty
nope still puts me in safemode
load preferences in style
wha
A lightweight and modern alternative to Dustin Howett's PreferenceLoader.
whats this mean?
"_OBJC_CLASS_$_SBFWallpaperView", referenced from:
objc-class-ref in Tweak.x.d1a11214.o
"_OBJC_CLASS_$_SBWallpaperEffectView", referenced from:
objc-class-ref in Tweak.x.d1a11214.o
"_OBJC_CLASS_$__SBFakeBlurView", referenced from:
objc-class-ref in Tweak.x.d1a11214.o
ld: symbol(s) not found for architecture arm64
``` do u need to see my code?
idk what that means but ok
you can’t just do [SBWallpaperEffectView method]
Because the linker will look for the definition of thay code but it doesn’t have it
so you need to use runtime functions to get the class
cant really help more than say 'google until it makes sense'
you can use something like
you need to either make an @interface for SBWallpaperView or link against its headers if they exist
i did ?
@interface SFTouchPassThroughView : UIView
@end
@interface SBWWallpaperEffectViewBase : UIView
@end
@interface _SBFakeBlurView : UIView
@end
@interface SBFWallpaperView : UIView
@property (nonatomic, assign) BOOL isTheRightInstance;
@end
@interface SBWallpaperEffectView : SBWWallpaperEffectViewBase
@end
@interface SBCoverSheetPanelBackgroundContainerView : SFTouchPassThroughView
-(UIView *)findWallpaperEffectViewInView;
-(void)setSBFWallpaperViewInstance;
@end```
%c(SBWallpaperEffectView)
NSClassFromString(@“SBWallpaperEffectView”)
objc_getClass(“SBWallpaperEffectView”)
no
ahh
wait wait nvm im stupid
one doesnt link against headers
isKindOfClass:[_SBFakeBlurView class] so this is nono
i meant link against the framework that has the headers for it
%c is a logos preprocessor directive so it will only work in logos files (.x) but if you wanted to do it in regular objc (.m) you would do objc_getClass or NSClassFromString
%c... c = class ?
presumably
fr
works now 👍 thx
No it stands for chlamydia
settingsWidget 💪
I made that, not shep
🧢
OneSettings is made by fiore actually
i watched him make it
it was in vc
i also love spreading misinformation on the internet but thats unrelated
(we’ve never been in a vc before)
dont worry about it
how would i actually implement this to work? ```#import <GcUniversal/GcColorPickerUtils.h>
UIColor *color = [GcColorPickerUtils colorFromDefaults:@"DEFAULTS" withKey:@"KEY"];
UIColor *colorWithFallback = [GcColorPickerUtils colorFromDefaults:@"DEFAULTS" withKey:@"KEY" fallback:@"ffffffff"];```
in your color picker you set a key property and defaults property
make sure they match, and you get your color
u need a UIColor var
UIColor color;
UIColor colorWithFallback;```
also
that not how you do fallback
theyre pointers
yes it is you dont pass the # in this lib
or i think you probably can but its trimmed later
if i had to guess
its liek this ```objc
color = [GcColorPickerUtils colorFromDefaults:@"com.teslaman3092.tweak" withKey:@"color" fallback:@"000000"];
you also dont need an ivar for it
you can just declare a variable
lmao the way theyre doing it is fine
Tru
it can also be 000000ff
they just need to declare the stuff in the cell
yeah the last 2 hex values are alpha
the last two represent the alpha value
THATS HIW YOU DO IT
but by default they're assumed ff already so you dont need to have them there
HOW*
thank god we use rgba and not argb or whatever apple likes using
what does fallback mean?
the color that you get if the color doesnt exist
ohhh
its like a placeholder
yea lol
yep
