isle-portable/ISLE
foxtacles 29955df947
Export MultiplayerExt symbols accessed from isle executable (#1)
* Export MultiplayerExt symbols accessed from isle executable

When lego1 is built as a shared library (DLL), symbols used by the isle
executable through the Extension<T>::Call() template need to be exported.
Add LEGO1_EXPORT to MultiplayerExt::enabled and MultiplayerExt::CheckRejected()
which are referenced from isleapp.cpp via the template instantiation.

https://claude.ai/code/session_01HHMmowothg25fephi6iidq

* Use inline const instead of constexpr for extension function pointers

constexpr cannot be used with dllimport function addresses since they
are resolved at load time through the IAT, not at compile time. Change
to inline const which preserves the single-definition semantics (via
inline) while allowing runtime initialization of the function pointers.

https://claude.ai/code/session_01HHMmowothg25fephi6iidq

* Fix multiplayer extension link errors across DLL boundary

When lego1 is a shared library, Extension<T>::Call() instantiated from
isle.exe references MultiplayerExt::enabled and CheckRejected() which
are not exported. Instead of exporting internal symbols (which also
breaks constexpr with dllimport), add an exported IsMultiplayerRejected()
wrapper that keeps the Extension<T>::Call() instantiation inside lego1.

https://claude.ai/code/session_01HHMmowothg25fephi6iidq

* Guard IsMultiplayerRejected with EXTENSIONS ifdef

extensions.cpp is only compiled when ISLE_EXTENSIONS is ON, so the
wrapper function and its call site need #ifdef EXTENSIONS guards for
targets like x86 MSVC where extensions are disabled.

https://claude.ai/code/session_01HHMmowothg25fephi6iidq

* Move IsMultiplayerRejected definition to multiplayer.cpp

The function is declared in multiplayer.h and belongs with the rest of
the multiplayer extension code, not in the general extensions.cpp file.

https://claude.ai/code/session_01HHMmowothg25fephi6iidq

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-01 18:21:15 -08:00
..
3ds Implement real transition for 3DS (#538) 2025-07-06 15:00:39 +00:00
android Clean up config code (#679) 2025-08-15 18:56:36 +02:00
emscripten Add room management, relay capacity, and rejection handling 2026-03-01 14:37:08 -08:00
ios Clean up config code (#679) 2025-08-15 18:56:36 +02:00
res New 3DS banner sound, move 3DS data to packaging (#605) 2025-07-14 20:37:44 +02:00
switch Switch port (#731) 2025-11-15 23:51:19 +01:00
vita Add PSVita port (#541) 2025-10-31 23:23:12 +00:00
xbox_one_series Add Xbox One/Series X|S port (#526) 2025-07-06 07:28:00 -07:00
isleapp.cpp Export MultiplayerExt symbols accessed from isle executable (#1) 2026-03-01 18:21:15 -08:00
isleapp.h Add isle:Active in Background config option (#756) 2025-12-31 15:48:40 +00:00
islefiles.cpp (Web port) Add HD textures option (#647) 2025-07-24 22:10:15 +00:00
library_msvc.h Add SmartHeap for LEGO1 (#1694) 2025-10-12 07:36:36 +02:00
library_smartheap.h Small update to datacmp and roadmap (#1048) 2024-06-28 14:58:35 -07:00