summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Controllers
diff options
context:
space:
mode:
authorAmeisen <14104310+ameisen@users.noreply.github.com>2022-05-29 18:11:23 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-10 00:04:25 -0400
commit5585f5e876459e1764e44754b5b7d933fa1456de (patch)
treea57797fec7531b73f712ec8a1dbe40c9314d2ee3 /src/SMAPI.Web/Controllers
parent9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf (diff)
downloadSMAPI-5585f5e876459e1764e44754b5b7d933fa1456de.tar.gz
SMAPI-5585f5e876459e1764e44754b5b7d933fa1456de.tar.bz2
SMAPI-5585f5e876459e1764e44754b5b7d933fa1456de.zip
Refactored ModContentManager.cs so it actually fit on my 1440p screens.
Changed LocalTilesheetExtensions into an array. Marked 'CreateTemporary' as 'Obsolete' which is conventional for methods that only throw. Moved the type validation logic into its own method as it's largely shared for each loader. Changed allocators to use `GC.AllocateUninitializedArray`, as the data does not need to be initialized. Changed `LoadRawImageData` to use a `ValueTuple` return instead of returning with multiple `out`s, which is bad practice. Preferred rethrowing handlers rather than exception filters (which generate bizarre and _very difficult to patch_ code). Marked GetLoadError as debugger step through and hidden, as it's just an exception generator. Marked PremultiplyTransparency, GetContentKeyForTilesheetImageSource, and LoadRawImageData as static as they have no dependency on instance data (nor should they). Fixed `.xnb` extension search to properly use OrdinalIgnoreCase.
Diffstat (limited to 'src/SMAPI.Web/Controllers')
0 files changed, 0 insertions, 0 deletions