Giter Club home page Giter Club logo

Comments (6)

copyrat90 avatar copyrat90 commented on September 20, 2024 1

I just confirmed that you can use newer gba-link-connection sources without editing Butano source.

Although you need to override some ISRs and manually enable them via bn::hw::*:

linkUniversal = /* ... */ ;

bn::memory::set_dma_enabled(false);
bn::hw::irq::set_isr(bn::hw::irq::id::SERIAL, LINK_UNIVERSAL_ISR_SERIAL);
bn::hw::irq::set_isr(bn::hw::irq::id::TIMER1, LINK_UNIVERSAL_ISR_TIMER);
bn::core::set_vblank_callback(LINK_UNIVERSAL_ISR_VBLANK);

bn::hw::irq::enable(bn::hw::irq::id::SERIAL);
bn::hw::irq::enable(bn::hw::irq::id::TIMER1);
linkUniversal->activate();

from butano.

GValiente avatar GValiente commented on September 20, 2024

Since I don't have multiple wireless adapters for testing and they're too niche to be interesting to me, for now I'm not going to support them.

What I'm interested in is to know if it is possible to use modern LinkConnection with Butano without having to modify internal Butano code. Have you tried?

from butano.

copyrat90 avatar copyrat90 commented on September 20, 2024

LinkConnection.h has been renamed to LinkCable.hpp, and looks like some API has been changed (for example I can't find LinkResponse in new API).
So I believe we need to change some code in bn_hw_link.cpp.
I haven't done this myself.

In my opinion, if you decide to put effort to accommodate the API change of the new LinkCable.hpp, it would be better to update it to LinkUniversal.hpp instead.

from butano.

GValiente avatar GValiente commented on September 20, 2024

I mean using modern LinkConnection without touching/using existing bn::link implementation.

from butano.

copyrat90 avatar copyrat90 commented on September 20, 2024

No, I haven't tried that either.

from butano.

GValiente avatar GValiente commented on September 20, 2024

9724f7a and ddcf441 should allow to use the latest version of LinkConnection without changing current implementation.

from butano.

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.