Hacking Official [Release] CakesFW

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
There is much problems for devs. I hope you can fix your makefile oneday. Also there is potential problems in the names.
Go to see the forks on github, and find me. I've tried to fix it a bit.
1. Make sure the FIL handle is closed before leave, and show the FRESULT instead of just 1 or 0. 0 is FR_OK.
2. Tried to set a byte for boot-option in "0:cakefw.config". This would be used if you do not hold one key when entering.
I don't have my console at hand. Maybe you could build it again and test it out, and first - review it please.
I won't make a pull this time, you can cherrypick it from the branch to yours.
BTW: Codebase is a little awful. I thought you could take a look at pasta's cfw_loader part - which is already written in a better way.

But... I did my best to have it clean.
Anyway, the arm9 payload is a bit shit, I admit, since that was mostly rushing for release.

1) okay, sure, return FRESULT. Haven't had any use for that, but for completeness, okay.
2) I don't like voiding the function arguments.
3) hid regs is not used anywhere else. No need for it to be global. Even less if you have a get_key function...
4) The menu is temporary. the menu options were a last-minute change.
5) I don't know what your problem with the paths is. But I haven't found a better way to make armips put resulting files in another folder.
 

hairyfairy

Well-Known Member
Newcomer
Joined
Jun 5, 2015
Messages
53
Trophies
0
Age
27
XP
69
Country
United States
This is a CFW solution me and @b1l1s have been working on for a while.

Q&A:

Q: Muh pasta.
A: No. This has nothing to do with Pasta (no code is shared whatsoever). Only thing this could have something to do with it, is that I started thinking about this/tinkering when Pasta released, and @b1l1s sent me the POC for MSET a day later. This is more gateway/rxTools than pasta.

it actually does reuse lots of code from pasta - with variables and function names renamed and slightly reordered. you can't deny it, there are things inside your source code that only the pasta CFW has.
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
it actually does reuse lots of code from pasta - with variables and function names renamed and slightly reordered. you can't deny it, there are things inside your source code that only the pasta CFW has.

fcadc148b4b34377851528cf766cbf55.png

So that's how you protect yourself from space aliens.
 
  • Like
Reactions: WhoAmI?

pikatsu

Well-Known Member
Member
Joined
Apr 16, 2014
Messages
845
Trophies
1
Age
39
XP
1,174
Country
Argentina
it actually does reuse lots of code from pasta - with variables and function names renamed and slightly reordered. you can't deny it, there are things inside your source code that only the pasta CFW has.

It doesnt matter if it tooks code. The good news is that it enables all types of emunand
 

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
1. FRESULT so we can deal with the files much better. You know sometime you can't open file cause it doesn't exist, but sometime it is denied.
2. Well. All okey indeed. However if you do so you might face some warnings. You can regard such as a "Byte-adder".
3. To make the function so that i can know if any key is pressed. I used to directly take the value with a global var.
4. Temporary, yes. You might have some time developing it later.
5. when building it. A. It can not detect devkitARM path even devkitARM present in environment vars. B. after i placed the armips to devkitARM binary, it still stop me from generate the line in makefile, where i've marked it out with comment, see it in commits. C. you may write something in README.md for instructions on how to build it.

And.. Bye. I must sleep now.
 
D

Deleted User

Guest
I don't care about your plagiarism. I'm just calling you a liar :)
You do realize that Pasta is based on code from other projects, right? The code you say was used from Pasta is probably code from other projects. (I see Decrypt9's code and similar other things reused a lot as a base)
 
  • Like
Reactions: Syphurith

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
it actually does reuse lots of code from pasta - with variables and function names renamed and slightly reordered. you can't deny it, there are things inside your source code that only the pasta CFW has.
Well it isn't. I think he wrote some of them based on part of decrypt9 or other. pasta is re-coded to make it more friendly for code-readers..
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
1. FRESULT so we can deal with the files much better. You know sometime you can't open file cause it doesn't exist, but sometime it is denied.
2. Well. All okey indeed. However if you do so you might face some warnings. You can regard such as a "Byte-adder".
3. To make the function so that i can know if any key is pressed. I used to directly take the value with a global var.
4. Temporary, yes. You might have some time developing it later.
5. when building it. A. It can not detect devkitARM path even devkitARM present in environment vars. B. after i placed the armips to devkitARM binary, it still stop me from generate the line in makefile, where i've marked it out with comment, see it in commits. C. you may write something in README.md for instructions on how to build it.

And.. Bye. I must sleep now.

Okay, I will write instructions. But I don't know what weird version of make you're using and how your environment is set up.
I use linux, with the latest devkitarm and a patched armips to work on linux. I might want to release that patch, even though it's more hacky than anything.
 

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
Okay, I will write instructions. But I don't know what weird version of make you're using and how your environment is set up.
I use linux, with the latest devkitarm and a patched armips to work on linux. I might want to release that patch, even though it's more hacky than anything.
I used the one on devkitpro that for windows users. BTW i want to see if you would test my edits out. BYE.
I think you could make the path a relative one thus it is usable for both platforms.
 

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
But seriously.
Every file that's taken from another project (crypto.c/h, fatfs) is clearly either commented at the top of the file, or in a separate directory.
 

Suiginou

(null)
Member
Joined
Jun 26, 2012
Messages
565
Trophies
0
Location
pc + 8
XP
738
Country
Gambia, The
I use linux, with the latest devkitarm and a patched armips to work on linux. I might want to release that patch, even though it's more hacky than anything.
You've probably got $DEVKITPRO/devkitARM/bin in your path; other people might have a different cross-compiler by default or rely on Makefiles setting tool paths relative to $DEVKITPRO. I know it tripped me up, but the "fix" was relatively easy, just using "PATH=~/devkitPro/devkitARM/bin:$PATH make" to compile.
 
  • Like
Reactions: Syphurith

hairyfairy

Well-Known Member
Newcomer
Joined
Jun 5, 2015
Messages
53
Trophies
0
Age
27
XP
69
Country
United States
But seriously.
Every file that's taken from another project (crypto.c/h, fatfs) is clearly either commented at the top of the file, or in a separate directory.

here's a hint (and this is just _one_ example):

jump_table.s (cake)
arm11.s (pasta)
 
  • Like
Reactions: b1l1s

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
You've probably got $DEVKITPRO/devkitARM/bin in your path; other people might have a different cross-compiler by default or rely on Makefiles setting tool paths relative to $DEVKITPRO.

Originally I didn't care what cross compiler was used, since nothing from the libc is used.
Now, it only requires __aeabi_uidiv or something because of fatfs. I don't know if that's in the libc, though.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe a ghost writer?
  • BigOnYa @ BigOnYa:
    "Oh my God the graphics are so realistic looking." Lol of course it was the shiznit back then tho.
  • BigOnYa @ BigOnYa:
    I've never stood in line overnight or for hours, to buy anything. I can just wait and buy it later.
  • RedColoredStars @ RedColoredStars:
    I have never done that either.
  • RedColoredStars @ RedColoredStars:
    closest ive done is getting to target a couple hours early in the moring to get some amiibos.
  • Xdqwerty @ Xdqwerty:
    Im back
  • RedColoredStars @ RedColoredStars:
    But that topic makes me sad. :(
  • RedColoredStars @ RedColoredStars:
    Abusive narcissistic ex shame guilted me into selling them becasue my gaming and interests were childish like a little kid collecting toys. :(
  • RedColoredStars @ RedColoredStars:
    I had soooooooooooo many of them. All still sealed.
    +1
  • RedColoredStars @ RedColoredStars:
    I eventually had to contact a domestic abuse advocate to help me get out of the apartment I was in a lease with her. And filed a restraining order on her cuz she kept harassing me after i left her.
  • Xdqwerty @ Xdqwerty:
    I didnt bring my Charger and nobody here has one compatible with my phone
  • RedColoredStars @ RedColoredStars:
    either you have usb C and no one else does, or everone else has usb c except you. haha
    +1
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, i don't have usb c
  • RedColoredStars @ RedColoredStars:
    That happened to me for like a year. lol. I was the only one of all my friends and family to still have an old phone.
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, my phone is from around 2019
  • RedColoredStars @ RedColoredStars:
    Mine was from 2017. lolol. I just got this new one like 6 months ago. Not even new, second hand cheapo $40 phone. But it has usb c. lol
  • RedColoredStars @ RedColoredStars:
    I cant justify $1k+ on a nice ass phone. I can spend that on a 75" tv screen. Why a 6" screen device cost me the same? lol
    +2
  • BigOnYa @ BigOnYa:
    I had a iPhone 5 for like 6 years, till last year, and had to get new phone, when phone companies stop using the cdna networks, which the iphone5 used.
  • K3Nv2 @ K3Nv2:
    A phone can do more than a TV
    +2
  • BigOnYa @ BigOnYa:
    These smart TVs are getting close tho. Gonna be like "back to future" TVs before long.
    +1
  • K3Nv2 @ K3Nv2:
    Nah a phones going to always be more powerful than a TV if the TVs $2grand maybe but why when I can put a smaller device in my pocket that does basically everything a TV already does
    +1
  • K3Nv2 @ K3Nv2:
    I can justify a decent $800 smartphone that'll last 3 years when I could get a 65" TV for $400 and buy a decent micro computer for $100 more
  • K3Nv2 @ K3Nv2:
    Tbf there are decent $400 smartphones in today's market that make top end spec phones unjust it's just what you want
    K3Nv2 @ K3Nv2: Tbf there are decent $400 smartphones in today's market that make top end spec phones unjust...