Skip to content

Commit

Permalink
yeah
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Dec 3, 2024
1 parent 72b28b8 commit f21283b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Structs/SongDifficultyProto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum MapMods : uint { NoodleExtensions = 1, MappingExtensions = 1 << 1, C
[ProtoContract]
class SongDifficultyProto {
#pragma warning disable 649
[ProtoMember(1)] public readonly MapCharacteristic characteristic = MapCharacteristic.Standard;
[ProtoMember(1)] public readonly MapCharacteristic characteristic;
[ProtoMember(2)] public readonly MapDifficulty difficulty;

[ProtoMember(4)] public readonly uint starsT100;
Expand Down
7 changes: 3 additions & 4 deletions Structs/SongProto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SongProto {

[ProtoMember(5)] public readonly uint mapId;

[ProtoMember(6)] public readonly uint songDurationSeconds;
[ProtoMember(6)] public readonly uint songDurationSeconds = 1;


[ProtoMember(7)] public readonly string songName;
Expand All @@ -41,8 +41,6 @@ class SongProto {

SongProto() {
songDurationSeconds = 1;
// If they're equal, uploaderName is omitted from the dump
uploaderName ??= levelAuthorName;
}
}

Expand Down Expand Up @@ -174,7 +172,8 @@ public float rating {

public readonly string coverURL => $"https://cdn.beatsaver.com/{hash.ToLower()}.jpg";

public readonly string uploaderName => SongDetailsContainer.uploaderNames[index];
// If they're equal, uploaderName is omitted from the dump
public readonly string uploaderName => SongDetailsContainer.uploaderNames[index] ?? levelAuthorName;

/// <summary>
/// Helper method to check if the Song has a tag set
Expand Down

0 comments on commit f21283b

Please sign in to comment.