It'll be used as fallback in case no core is dynamically loaded, thus bringing the ygoprodll target on par with the default one, with only extra features available (loading dynamically)
Implement a stateful Duel object wrapping the udnerlying core api automatically managing its lifetime and simplifying calling the various OCG_ functions
Those textures are usable only if the texture is rendered with clamp to edge, add that property to the global 2d material and enable it for the other materials whenever the driver is gles1/2 rather than when there's no npot support
The background textures were being copied without incrementing their ref counts, leading to memory corruption and possible crashes, avoid this issue by not copying them and explicitly checking for them to be null when drawing
This adds the option in the "Duel" settings menu to randomly choose RPS when starting a duel
---------
Co-authored-by: Edoardo Lolletti <edoardo762@gmail.com>
Add card names into deck files, toggleable via a setting. Card names are put as comment with # above the code line
closes#282
---------
Co-authored-by: Julian <Julian@DESKTOP-H7KSEM0.local>
Slightly cleaner code and fixes an issue when using sdl mixer audio backend and sdl device in irrlicht, where irrlicht's device was being terminated before the audio backend, thus calling SDL_Quit before the audio backend could do its cleanup
Add new repo option "not_git_repo", if present and set to true, the target path will not be treated as a git repo, but rather as a folder to only read things from, in that case, the "url" parameter becomes optional
Cleaned up the classes inheriting virtual classes by using override where needed and marking most of them as final.
Also update usave of position2d to vector2d
This would allow to easily ser up costants and global functions for custom cards requiring them without having to manually call loadscript on every card needing them
Fmt 10 completely removed the adl lookup that was being used to handle custom string types, work around by manually "converting" those string beforehand via templates