Giter Club home page Giter Club logo

Comments (2)

EZForever avatar EZForever commented on September 24, 2024 1

This whole "Bootstrap" thing is part of my naive approach for supporting Fabric Load 0.12+ back in 2021. The key is this line:

ClassLoader cl = FabricLoader.class.getClassLoader();

IIRC since 0.12.x Fabric Loader load its internal classes in a ClassLoader separate to the one the game and mods are using. Thus in order to inject into, or even just get access to, Fabric Loader's internal classes, as it's done in ModInjector.install() and DirectoryWalker.walk(), we have to load our relevent code with Fabric's ClassLoader.

This worked under development environment when tested back then, but since the official releases of Fabric Loader jars are digitally signed this is not usable in real situations.


WARNING: Groundless rants ahead; contact me for deletion if you feel offended.

(To Fabric Loader developers: Just WHY?? Why are you actively locking your packages down, which doesn't serve any praticial purpose other than messing with us mod developers? Like, it's not justifiable even for security reasons; you're running an open-source project to inject unsigned 3rd-party code into a game, and there's no point trying to play nice. If you're really into security, might as well obfuscate all of your internal classes so as to ensure no bad-behaving mods like the one I'm making here could ever exist. Heck, why not just require all mods to be signed by you and host a marketplace for them? That's some MCBE Marketplace BS all over again. Oh wait, maybe we can just write a wrapper to chain-load the Fabric Loader and bypass the lockdown? Don't worry, the developers got you covered: Fabric Loader's entrypoint is an implementation detail. There's no escape. Frankly, now I kinda understand why Quilt is a thing.)

from thatorthis.

EZForever avatar EZForever commented on September 24, 2024

Closing as it's not an issue.

from thatorthis.

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.