Comments (6)
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.
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.
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.
I mean using modern LinkConnection without touching/using existing bn::link implementation.
from butano.
No, I haven't tried that either.
from butano.
9724f7a and ddcf441 should allow to use the latest version of LinkConnection without changing current implementation.
from butano.
Related Issues (20)
- can't open file `C:\\devkitPro\\msys2\\tools\\butano_assets_tool.py`: [Errno 2] No such file or directory
- Is possible to use 16x16 tiles in Regular backgrounds? HOT 2
- [Request] Add hash support for `bn::type_id_t` HOT 1
- [Docs] Same derived class appears 6 times in `bn::igeneric_pool_base` HOT 3
- `bn_best_fit_allocator.h` doesn't include dependent headers HOT 1
- `bn::utf8_character::size()` returns `0` for ASCII characters HOT 1
- Undefined reference to `__assert_func` on `-O0` after newlib was removed HOT 2
- Can't return static local variable, after newlib was removed HOT 4
- [Feature Request] Ability to run user-defined code upon failed BN_ASSERT or BN_ERROR? HOT 7
- std::shared_ptr fails during linking HOT 2
- DMG music master volume is 25% (too quiet) HOT 6
- "VgmIntrVblank failed" when pausing VGM music at the end of the song HOT 2
- Setting palette ID erroneously adjusting adjacent cell's tile_index HOT 2
- [Request] Configurable precision for fixed_point. HOT 2
- Butano CMake Toolchain? HOT 1
- Makefile error message about missing DEVKITARM/WONDERFUL_TOOLCHAIN is not displayed correctly HOT 2
- Support for GSM player? HOT 2
- I can't create gba file using make on Debian HOT 4
- `random.get_int(int limit)` can bias towards small numbers HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from butano.