Commit Graph

39514 Commits

Author SHA1 Message Date
07a24d2747 Fixing errors 2021-05-25 23:54:13 +10:00
9c2dca8229 Removing redundant argument list 2021-05-25 21:53:00 +10:00
d5feb8353d Formatting, renaming 2021-05-25 21:37:08 +10:00
d9f5b578bf Restore class names 2021-05-25 21:08:40 +10:00
ce845a9f8d Apply the rest of requested changes 2021-05-25 21:00:38 +10:00
518999ffab Renaming files 2021-05-24 22:49:40 +10:00
441e4e7d56 Formatting 2021-05-24 22:08:34 +10:00
ca1d1c58ab RestoreDefaultValueButton implements OsuButton 2021-05-24 21:34:47 +10:00
0100b88a86 Move private methods down 2021-05-18 14:12:27 +09:00
3a5b21c0f5 Update "reset all bindings" button to better match new key binding row widths 2021-05-18 13:47:39 +09:00
0e91a00a7e Revert to previous width spec instead of size 2021-05-17 21:18:45 +02:00
ef114f2407 Simplify bindable flow in KeyBindingRow 2021-05-17 21:10:05 +02:00
30d7768971 Remove now-redundant null check 2021-05-17 20:47:56 +02:00
33fe843ba9 Move value change bindings to LoadComplete()
Also removes a redundant one from the setter of `Current`. If the set to
current comes with an associated value change, the bind-unbind flow that
`BindableWithCurrent` implements will handle that change anyway.
2021-05-17 20:46:30 +02:00
0f82eb464f Merge branch 'master' into single-bind-reset-button 2021-05-16 15:02:01 +10:00
90f00a7663 Fixes ResotreDefaultValue to use the BindableWithCurrent correctly 2021-05-16 15:01:19 +10:00
264d8b9b86 Finishing requested changes, and tidy up 2021-05-16 14:48:00 +10:00
9010cd0839 Merge pull request #12833 from Henry-YSLin/master 2021-05-16 12:12:20 +09:00
a91f2d3dba Change "judgment" to "judgement" 2021-05-16 10:17:04 +08:00
b5e1f78c06 Merge branch 'master' into single-bind-reset-button 2021-05-15 20:29:56 +10:00
c282f0e603 Fixing tests
For some reason moving the mouse and clicking doesn't work with "dotnet test", but works when you run the osu.Game.Tests project.
2021-05-15 19:42:33 +10:00
50a3775a22 Merge pull request #12717 from frenzibyte/player-loader-star-rating
Add star rating to the beatmap metadata in player loading screen
2021-05-15 18:25:58 +09:00
34d1490754 Remove null conditional
Shouldn't guard against that here.
2021-05-15 10:00:05 +03:00
dc56250a3c Merge branch 'master' into player-loader-star-rating 2021-05-15 15:39:57 +09:00
94b7e89ac0 Merge pull request #12747 from frenzibyte/current-star-rating
Allow changing current star difficulty of a `StarRatingDisplay`
2021-05-15 15:39:39 +09:00
bdcb1a624e Merge pull request #12759 from Naxesss/beatmap-verifier-context
Encapsulate check arguments in context object
2021-05-15 15:39:12 +09:00
ecc260030a Merge branch 'master' into single-bind-reset-button 2021-05-15 12:05:42 +10:00
50d5af9662 Removed unused method 2021-05-15 12:05:22 +10:00
d988194dd3 Formatting 2021-05-15 11:40:42 +10:00
d85f17159f Formatting 2021-05-15 11:25:56 +10:00
304caf8bdf Adding Requested changed 2021-05-15 11:24:08 +10:00
7632b8621e Merge pull request #12805 from peppy/add-user-id-beatmap-metadata
Add database tracking of beatmap creator `user_id`s
2021-05-15 09:03:52 +09:00
cb9db0da0a Merge pull request #12801 from peppy/null-assignment-warning-enable
Switch null assignment to non-nullable entity warnings on
2021-05-15 09:03:03 +09:00
7665bdfbbb Merge branch 'master' into null-assignment-warning-enable 2021-05-15 01:08:34 +02:00
69fc072429 Ignore skin component json data if deserialisation fails instead
Crashing was not really the best thing to do there given the preceding
code that already allowed a few continues in case of a missing file.
2021-05-15 01:08:11 +02:00
ae71389ebe Ignore possible nulls from stream reader in IPC
Any failures will be caught. They're not logged, but they also weren't
before. Error handling can be improved at a future date, this series of
changes is primarily intending to unblock a new inspection.
2021-05-15 00:09:34 +02:00
d581e0a252 Ignore possible nulls in NotifyCollectionChangedArgs
Safe to access by the virtue of the preceding case labels on
`args.Action`.  And they're in test code anyways.
2021-05-15 00:09:34 +02:00
e62e473bb2 Ignore possible null in multiplayer test
A null value will fail the test anyhow.
2021-05-15 00:09:34 +02:00
b51d038088 Ignore possible path-related nulls
They're all in test code anyway, so any issue there will cause a test to
fail.
2021-05-15 00:09:34 +02:00
fa6b5515b7 Ignore possible null from JsonConvert.DeserializeObject()
Nothing better can be done if a `null` is indeed returned.
2021-05-15 00:09:34 +02:00
5b2b701915 Ignore possible null in GetResponseString()
A null there indicates a deserialisation error and therefore due to the
catch block immediately succeeding the changed line everything will
continue to work as intended.
2021-05-15 00:09:34 +02:00
628e7a71ed Ignore possible nulls in Type.GetType() calls
They're mostly used in extensibility scenarios, so everything happens in
runtime. There is no better resolution than to crash with a null
reference exception.
2021-05-15 00:09:34 +02:00
43c73f9583 Mark access to exception if task faulted as safe
There are seemingly no C#-side compile-time guarantees that it is safe,
but if the task's state is `Faulted` (as is checked right before), the
exception cannot be null as per the documentation.
2021-05-15 00:09:34 +02:00
f2d0f7db99 Remove list null-checks in LogoTrackingContainer test
If the null-checks were tripped, the test would crash anyway. It is not
possible to call `.Any()` and get a valid result instead of an exception
on a null reference.
2021-05-15 00:09:34 +02:00
483e0dd943 Pass placeholder hitobject instead of null 2021-05-15 00:09:34 +02:00
f716fb0968 Remove bogus InternalChildren null-check
`InternalChildren` can't viably be `null`, and if it were, we have
bigger problems. The removed null-check was triggering false-positive
inspections further down.
2021-05-15 00:09:34 +02:00
c9facf70f9 Use conditional nullability attribute
As it turns out, C# 8 provides an attribute that allows annotating that
an `out` parameter's nullability depends on the method's return value,
which is exactly what is desired here.
2021-05-15 00:09:34 +02:00
be50abeb7e Merge pull request #12806 from peppy/fix-deleting-skin-elements 2021-05-15 07:08:43 +09:00
aaa7c7eb05 Handle null case explicitly in SpectatorState.Equals()
Uses the usual pattern of two `ReferenceEquals` checks against `this`
and `null` before proceeding to inspect field values. Doing this causes
the compiler to infer that at the point that field values are checked,
`other` can no longer viably be `null`.
2021-05-14 23:58:07 +02:00
044770f1a2 Locally suppress warning in SerializationReader
`SerializationReader` is not written in a form that would support
turning nullability checking on for the entire class. The biggest
problem there is the inner `DynamicDeserializer` static class, whose
members are initialised via an `initialize()` method, which the compiler
knows nothing about.

For this reason, just opt to suppress the single inspection about
returning a `null` from a method with a return type of `string` (rider
expects `string?`). It would have been also viable to enable nullability
checking for this one method, but that's pretty much the same thing and
adds no safety anyways, so just disable the warning to minimise
surprise.
2021-05-14 23:29:34 +02:00