logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 4 / 2
endrift
the other stuff is in mGBA
profi200
I thought it was some gspWaitForPPF()?
endrift
https://github.com/mgba-emu/mgba/commit/3ab6a5db6b9d099bc6751599bd8ee792d897a41f
yuriks
hm, I think linearAlloc already aligns like that?
endrift
not that much but w/e
yuriks
oh
profi200
I see.
yuriks
yeah, not sure how much difference that'll make
endrift
me neither
profi200
I could imagine without that wait tearing could appear.
nopy4869
Attempting to build mgba
>be me
>see cmake
>try for an hour to work with it
>ragequit
yuriks
you poor soul
nopy4869
I hate cmake, always have. the idea is novel, but I'd rather just use regular make files
endrift
regular make files don't work for anything more than one OS with one configuration
which us
*uh
is a rather simplistic view
of how projects work
nopy4869
There's a whole spectrum
on one side you have braindead-simple that is relatively inflexible
endrift
also making a good makefile is fu*king dreadful and a lot of work
that should be done by a system that knows what it's doing
nopy4869
then the other side is writing a whole vm from scratch to set up makefiles
Cmake looks like it could be alright
but
endrift
all you should need to do is...have sf2dlib installed (need to build my version from source at the moment), then set DEVKITPRO in your env...
then do cmake .. -DCMAKE_TOOLCHAIN_FILE=../src/platform/3ds/CMakeToolchain.txt
bam
yuriks
hmm, my favorite part
works perfectly in citra, black screens on hardware
nopy4869
Love it
endrift
anyway
I need to head to bed
yuriks
me too ;_;
endrift
I've been playing mother 3 to see if it's stopped crashing and uh
it sure seems to have
that one crash was me fiddling with the screen adjustment stuff
nopy4869
I was trying to download mgba to see if I could tweak it a little bit to get some stuff to run a little faster
I gotta have my Kirby
I ripped it myself
ACTUALLY RIPPED IT
And I want to taste the sweeeeeeeeeet taste of <(*.*)> on 3DS
endrift
good luck :/ the core is verrrry heavily optimized at this point and would take architectural changes to squeeze any more than 1-2% out
nopy4869
What about replacing a few of the 1 or 2 line functions with inline functions?
And have you thought about DMA'ing some of the gba arm code into the app's text section and executing straight?
Again, I've been more focused on getting it to build than looking over the source, so please disregard if you are already doing this :)
endrift
I'm pretty sure LTO + compiler inlining would take care of that already
but the DMAing would just become a partial dynarec, which isn't really a thing on 9.9
which is what I'm deving on
I have an old 3DS on 9.2 still but I've barely touched it since it can't really run this project at a reasonable speed
nopy4869
How does the HBL load code?
endrift
I have no idea
you'd have to ask smea that question
I just know I can't do rwx sections, which are needed for a good dynarec
nopy4869
Or grep the source %^)
endrift
I might be able to flop them between rw- and r-x but that's presumably slow
nopy4869
Can't you set to rwx?
endrift
no, the kernel won't let me
https://github.com/smealum/ctrulib/blob/master/libctru/include/3ds/svc.h#L242
nopy4869
Yeah, and in order to faithfully emulate a gba you'd have to be able to RWX All of ram
I wonder if anyone has tried to find a TC Savegame exploit in AGB_FIRM
endrift
er...I mean yes but you can't just do all of that without a layer of translation in the middle
TC?
nopy4869
Total Control
endrift
oh pfft
I'm kind of curious what can be done with that mode
nopy4869
Me too
endrift
but only the kernel can drop into it
nopy4869
Yeah, and unless you had an ambassator 3DS you're out of luck
endrift
I should set up emunand (again) on my 9.2 3DS and see what can be done
nopy4869
Unless w***Z
or Kernel
That too
endrift
I thought there were CFWs with ROM injections?
not that that's actually useful for trying to poke your way out
nopy4869
There are, but that involves pirating the emulator software that's bundled with the rom
endrift
you want to poke your way IN
oh, gross
nopy4869
Yeah...
VC injection relies on nintendo's code for emulation
and as "Trivial" as an NES emulator is, it's still copyrighted
:/
vaguerant
I thought we were talking about GBA.
nopy4869
Same idea
I didn't want to use "Trivial" and "GBA Emulator" in the same sentence
because it isn't
which is why we're talking about it at almost 3:00 a.m.
vaguerant
I don't believe there's a "GBA emulator" for the GBA Ambassador games in any conventional sense.
nopy4869
No, but I'm pretty sure the VC titles ship with some manner of support code.
Stuff to set up AGB_FIRM, load stuff into memory, etc
vaguerant
Yeah. Possibly something that could be RE'd though and replicated by a CFW.
nopy4869
Which brings me back to my original point: Downloading a shell for VC injection is still technically piracy :3
True, about the RE and CFW thing
vaguerant
Not something that's been done, but I don't see any reason it should strictly be necessary to ... yeah, exactly.
endrift
someone cleanroom it
nopy4869
Yep!
« prev 1 2 3 4 next »