mirror of
https://gitea.tendokyu.moe/beerpsi/Rizu.git
synced 2024-11-24 07:10:15 +01:00
3ed7191acf
When running via BepInEx, Unity's JsonUtility produces and reads empty documents. As a bit of a hacky fix, this builds using System.Text.Json. granted, this pulls new deps in. All of the deps listed in the csproj will need to be included in the install package for BepInEx. Reviewed-on: https://gitea.tendokyu.moe/beerpsi/Rizu/pulls/1 Co-authored-by: Adele Reed <virepri2k@gmail.com> Co-committed-by: Adele Reed <virepri2k@gmail.com>
19 lines
439 B
C#
19 lines
439 B
C#
using System;
|
|
|
|
#if BEPINEX // When we're building for BepInEx, the dummy JsonInclude is *not* defined, so let's cover that base.
|
|
using System.Text.Json.Serialization;
|
|
#endif
|
|
|
|
namespace Rizu.Core.Models;
|
|
|
|
[Serializable]
|
|
public class BatchManualMeta
|
|
{
|
|
[JsonInclude]
|
|
public string game = "maimaidx";
|
|
[JsonInclude]
|
|
public string playtype = "Single";
|
|
[JsonInclude]
|
|
public string service = "Rizu";
|
|
}
|