* "Mortal Edge" description nit
"Darkhammer" seems to be the more common rendering of the name.
* Add missing option descriptions
* Tighten spacing for version/disc info on mobile
* Graphics API init failure message nit
* Improve Widescreen/Ultrawide Collection/File Select Menus
Re-scale (unstretch) and center elements of the Collection Screen/File Select details screen for Widescreen/Ultrawide
* Fix oversight
Fix default behavior
* Support ultrawide on Collection menu, target PC
support ultrawide instead of reverting to default behavior
wrap logic in target PC ifdefs (both changed functions themselves are still behind them as a whole as well) and use old function behavior otherwise
* Fix icon overshift at ultrawide
Icon shifted too much at ultrawide
Move redundant duplicate line
* Finished Collection/File Select screen changes
Added settings for the scaling mode (GameCube, Wii, Dusklight)
Depending on the setting in the Interface menu (Dusklight preset automatically sets scaling to Dusklight option, Classic preset sets to Gamecube, Wii/all old behavior available as well) Collection and File Select screens get scaled differently
Fixed backdrop behind slots on File Select with Dusklight setting (the Magic Armor background slot seeming too low on all aspects is vanilla behavior)
Fixed Fused Shadow/Mirror size and position with Dusklight setting
All logic is behind TARGET_PC gates (not the logic specifically, but the functions themselves have always been)
Changes dSelect_cursor_c::refreshAspectScale to take a parameter so the scale of the selection cursor can be reset to default (only ever called in TARGET_PC functions or wrapped in gates)
* Ultrawide oversight
* Update d_file_select.cpp
copy paste oopsie
* Update d_file_select.cpp
im tired, never tested msvc
* Menu Scaling Mode
changed definitions to be more open ended
header additions now in TARGET_PC ifdefs
fixed/added scaling for Save/Option buttons in Collection menu with Dusklight setting, stopped scaling just the text
* Update settings.cpp
Adds an Output Resampling option to the Video tab to allow choosing between the old Bilinear sampler and a new Area sampler. Area sampling produces a much cleaner, softer image when downscaling, and a significantly sharper image when upscaling. This can also serve as a halfway decent anti-aliasing substitute until we have a more proper implementation.
* Add interpolation frame rate cap
* wip: reworked framelimiter
Based on my testing this is a bit more stable in frametimes.
* wip: efficiency improvement + windows build fix
Significantly improve efficiency by using a hybrid approach.
* wip: UI changes
* wip: end frame AFTER limiting
* wip: remove unused include
* wip: minor ui code change
Makes it easier to remove/add presets
* Simplify Limiter UI
- Change enableFrameInterpolation to an enum with off/capped/unlimited values
- Simplify the UI to use 2 settings (unlock framerate + a max value entry)
* wip: slight limiter simplification
* wip: implement review suggestions
* wip: fix syntax error
* wip: revert enum order + replace old checks
* Fix compile error
---------
Co-authored-by: SailorSnoW <sailorsnow@pm.me>
Co-authored-by: Loïs <49660929+SailorSnoW@users.noreply.github.com>
Co-authored-by: SuperDude88 <82904174+SuperDude88@users.noreply.github.com>
Co-authored-by: Luke Street <luke@street.dev>
According to the C++ standard, regular operator new must always return a valid pointer, and allocation failure should throw an exception.
The original game did not use exceptions, and instead had its operator new return null on alloc failure.
Clang and GCC seem to be enforcing the standard here, and this is causing crashes on non-Windows platforms like https://sentry.twilitrealm.dev/organizations/twilitrealm/issues/952/, where a JAISe allocation failure (custom pooled operator new overload) crashes the game when it should be handled gracefully. MSVC seems to not make use of this opportunity, meaning the code works as intended.
Tagging the operators with noexcept seems to satisfy GCC, but I admit cppreference is very light on details here.
We screwed up when redacting git history before release, and
accidentally rewrote all but *two* of the entire history of decomp. This
is me re-merging the history with "git merge -s ours"
* Adds option to unbind using controller only
* Adds a new cheat to let you transform from the start of the game, without Midna or the Shadow Crystal
* Revert "Adds a new cheat to let you transform from the start of the game, without Midna or the Shadow Crystal"
This reverts commit 51ed736729.
* Do not allow unbinding the A or B buttons to prevent softlocks when no other input sources are available (e.g. playing on a TV)
* change 'and' to '&&' in accordance with code standards
* Add a button to reset to default controls, and hides the digital L and R binds except on advanced menu.
* Rename Controller mentions to Device + Extra menu sounds
* Shouldn't add a column here
* Changes mentions of controller to device in accordance with #1479
---------
Co-authored-by: MelonSpeedruns <melonspeedruns@stratobox.net>