-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added db for 3.65/3.67 #300
Conversation
Have the NIDs of 3.60 functions changed on 3.65/3.67 or are there only some new functions ?
|
if filled `firmware` in the root and this value isn't `3.60`, will attach postfix before `_stub.a` eg; pass to ``` firmware: 3.67 ``` all generated libs will end with `_367_stub.a` like `libSceCpuForKernel_367_stub.a` Related vitasdk/vita-headers#300
An improved proposal based on yours: |
@xerpi do you mean you are proposing to call ksceMemcpy_368(); when compiling for 3.68 ? |
@CelesteBlue-dev that would be necessary only if you want to call the 368 version of |
@xerpi I think the easiest way is to edit vita-elf-create or such to add --version argument. |
@CelesteBlue-dev but you don't even need to touch vita-elf-create for that, only your Makefile. |
yes but with my way, you would only have to do make 368 or make 365 or make (by default 360). if (is_368())
func_368()
else
func() but so which libs do you import ? 360 stubs or 368 stubs ? |
My 'way' isn't different than yours but only an improvement that also allows you to be able to choose what function to call at runtime. |
@xerpi sorry I don't understand how a skprx can be loaded if it imports 368 and 360 stubs. |
Hmm so if an SKPRX imports an invalid library it returns an error when loading it? I thought it would just leave the stubs uninitialized. |
I don't think it will work either, since you'll end up with two libraries with the same name but different library nid. Maybe it works if we declare it as weak import, can somebody test? |
@xerpi I tried loading a skprx that imported 360 NIDs on my 365 PSVita using your kernel loader and it returns an error : |
Yeah maybe weak imports might do the trick. My thought was that the Vita's dynamic loader would skip unknown libraries intead of erroring. |
replaced #592 |
We need to have a way to specify 3.65/3.67 NIDs. Maybe use
*_367_stub.a
?