Giter VIP home page Giter VIP logo

Comments (7)

yifanlu avatar yifanlu commented on September 2, 2024

I'm debating whether this should be a problem or not. The reason Sony chose to put these modules as weak imports is because they affect game load time and memory usage. If we encourage this, it may lead to plugins causing some slowdown for games. I think the workaround is find if you absolutely need to use some module.

from taihen.

TheOfficialFloW avatar TheOfficialFloW commented on September 2, 2024

I have got some thoughts about it:

  1. I believe that sysmodule loads some modules with special arguments. Those can't be passed via config.txt
  2. A future plugins manager wouldn't know which modules belong to which plugin in order to enable/disable correctly.

However there's another workaround which would require splitting a plugin into two suprx where the first one loads the neccessary libraries via sysmodule and the second one can finally import them.

from taihen.

yifanlu avatar yifanlu commented on September 2, 2024

The problem here is that the Vita is not designed to load suprx with weak imports (it seems to be limited to main app). Maybe I'm missing something and I will dig more into it, but it won't be easy to add without making some significant changes to modulemgr.

from taihen.

yifanlu avatar yifanlu commented on September 2, 2024

Can you test this? Manually modify the velf so in the import structure for that library, change the flags field (offset 4), set the uint16_t flags to 0x8 and see if that will work. If it does, I'll change the toolchain.

from taihen.

TheOfficialFloW avatar TheOfficialFloW commented on September 2, 2024

I can confirm that changing the flags works.

from taihen.

yifanlu avatar yifanlu commented on September 2, 2024

Cool, guess we can make a change in the toolchain.

from taihen.

yifanlu avatar yifanlu commented on September 2, 2024

This will be tracked in the toolchain vitasdk/vita-toolchain#71 and will be closed here since no additional changes will have to be made to taiHEN to support this.

from taihen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.