SHA256
Make Every Class Internal
This commit is contained in:
38 files changed
+50
-51
No files matched your search
@@ -4,7 +4,7 @@ using UnityEngine;
|
|||||||
namespace ADOFAIRenderer.Core
|
namespace ADOFAIRenderer.Core
|
||||||
{
|
{
|
||||||
[DefaultExecutionOrder(int.MinValue)]
|
[DefaultExecutionOrder(int.MinValue)]
|
||||||
public class FirstUpdateHook : MonoBehaviour
|
internal class FirstUpdateHook : MonoBehaviour
|
||||||
{
|
{
|
||||||
private bool _checkedFFmpeg;
|
private bool _checkedFFmpeg;
|
||||||
private bool _checkedNvidiaDriver;
|
private bool _checkedNvidiaDriver;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using UnityEngine;
|
|||||||
namespace ADOFAIRenderer.Core
|
namespace ADOFAIRenderer.Core
|
||||||
{
|
{
|
||||||
[DefaultExecutionOrder(int.MaxValue)]
|
[DefaultExecutionOrder(int.MaxValue)]
|
||||||
public class PostRenderHook : MonoBehaviour
|
internal class PostRenderHook : MonoBehaviour
|
||||||
{
|
{
|
||||||
private FieldInfo? _camQuadMeshField;
|
private FieldInfo? _camQuadMeshField;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ using ThreadPriority = System.Threading.ThreadPriority;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Core
|
namespace ADOFAIRenderer.Core
|
||||||
{
|
{
|
||||||
public class RenderManager : MonoBehaviour
|
internal class RenderManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
// Singleton Accessors
|
// Singleton Accessors
|
||||||
public static RenderManager Instance { get; private set; } = null!;
|
public static RenderManager Instance { get; private set; } = null!;
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// Base class for double input validation limits.
|
/// Base class for double input validation limits.
|
||||||
/// Multiple limits can be composed on a single input field — all are checked in order.
|
/// Multiple limits can be composed on a single input field — all are checked in order.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class DoubleLimit
|
internal abstract class DoubleLimit
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Validates the given double value against this limit.
|
/// Validates the given double value against this limit.
|
||||||
@@ -21,7 +21,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Requires the double value to be strictly positive (> 0).
|
/// Requires the double value to be strictly positive (> 0).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PositiveOnlyDoubleLimit : DoubleLimit
|
internal class PositiveOnlyDoubleLimit : DoubleLimit
|
||||||
{
|
{
|
||||||
public override bool Validate(double value, out string errorMessage)
|
public override bool Validate(double value, out string errorMessage)
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// Requires the double value to be within an inclusive [Min, Max] range.
|
/// Requires the double value to be within an inclusive [Min, Max] range.
|
||||||
/// Either bound can be null to represent an unbounded side.
|
/// Either bound can be null to represent an unbounded side.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RangeDoubleLimit : DoubleLimit
|
internal class RangeDoubleLimit : DoubleLimit
|
||||||
{
|
{
|
||||||
public double? Min { get; }
|
public double? Min { get; }
|
||||||
public double? Max { get; }
|
public double? Max { get; }
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using UnityEngine.UIElements;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Data.Input
|
namespace ADOFAIRenderer.Data.Input
|
||||||
{
|
{
|
||||||
public class DoubleInputValidator
|
internal class DoubleInputValidator
|
||||||
{
|
{
|
||||||
private struct FieldEntry
|
private struct FieldEntry
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ADOFAIRenderer.Data.Input
|
|||||||
/// Populates choices from enum names and provides typed access to the selected value.
|
/// Populates choices from enum names and provides typed access to the selected value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The enum type to bind.</typeparam>
|
/// <typeparam name="T">The enum type to bind.</typeparam>
|
||||||
public class EnumDropdownBinder<T> where T : struct, Enum
|
internal class EnumDropdownBinder<T> where T : struct, Enum
|
||||||
{
|
{
|
||||||
private readonly DropdownField? _dropdown;
|
private readonly DropdownField? _dropdown;
|
||||||
private readonly List<T> _values;
|
private readonly List<T> _values;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using UnityEngine.UIElements;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Data.Input
|
namespace ADOFAIRenderer.Data.Input
|
||||||
{
|
{
|
||||||
public class IntegerInputValidator
|
internal class IntegerInputValidator
|
||||||
{
|
{
|
||||||
private struct FieldEntry
|
private struct FieldEntry
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// Base class for integer input validation limits.
|
/// Base class for integer input validation limits.
|
||||||
/// Multiple limits can be composed on a single input field — all are checked in order.
|
/// Multiple limits can be composed on a single input field — all are checked in order.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class IntegerLimit
|
internal abstract class IntegerLimit
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Validates the given integer value against this limit.
|
/// Validates the given integer value against this limit.
|
||||||
@@ -21,7 +21,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Requires the integer value to be strictly positive (> 0).
|
/// Requires the integer value to be strictly positive (> 0).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PositiveOnlyIntegerLimit : IntegerLimit
|
internal class PositiveOnlyIntegerLimit : IntegerLimit
|
||||||
{
|
{
|
||||||
public override bool Validate(int value, out string errorMessage)
|
public override bool Validate(int value, out string errorMessage)
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
/// Requires the integer value to be within an inclusive [Min, Max] range.
|
/// Requires the integer value to be within an inclusive [Min, Max] range.
|
||||||
/// Either bound can be null to represent an unbounded side.
|
/// Either bound can be null to represent an unbounded side.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RangeIntegerLimit : IntegerLimit
|
internal class RangeIntegerLimit : IntegerLimit
|
||||||
{
|
{
|
||||||
public int? Min { get; }
|
public int? Min { get; }
|
||||||
public int? Max { get; }
|
public int? Max { get; }
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ using Newtonsoft.Json.Linq;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Data
|
namespace ADOFAIRenderer.Data
|
||||||
{
|
{
|
||||||
public class RenderPreset
|
internal class RenderPreset
|
||||||
{
|
{
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
public RenderConfig Config { get; set; } = null!;
|
public RenderConfig Config { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class PresetManager
|
internal static class PresetManager
|
||||||
{
|
{
|
||||||
private static string GetPresetsDirectory()
|
private static string GetPresetsDirectory()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using ADOFAIRenderer.Util.FFmpeg;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Data
|
namespace ADOFAIRenderer.Data
|
||||||
{
|
{
|
||||||
public class RenderConfig
|
internal class RenderConfig
|
||||||
{
|
{
|
||||||
public double RenderFPS { get; set; }
|
public double RenderFPS { get; set; }
|
||||||
public double VideoFPS { get; set; }
|
public double VideoFPS { get; set; }
|
||||||
@@ -18,14 +18,14 @@ namespace ADOFAIRenderer.Data
|
|||||||
public bool ShowJudgementText { get; set; }
|
public bool ShowJudgementText { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AdvancedConfig
|
internal class AdvancedConfig
|
||||||
{
|
{
|
||||||
public int? RandomSeed { get; set; } = null;
|
public int? RandomSeed { get; set; } = null;
|
||||||
public bool ProcessAudio { get; set; } = true;
|
public bool ProcessAudio { get; set; } = true;
|
||||||
public bool NonTile { get; set; } = false;
|
public bool NonTile { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class VideoEncodingConfig
|
internal class VideoEncodingConfig
|
||||||
{
|
{
|
||||||
public Codec Codec { get; set; } = Codec.H264;
|
public Codec Codec { get; set; } = Codec.H264;
|
||||||
public RateControlMode RateControlMode { get; set; } = RateControlMode.CBR;
|
public RateControlMode RateControlMode { get; set; } = RateControlMode.CBR;
|
||||||
@@ -38,7 +38,7 @@ namespace ADOFAIRenderer.Data
|
|||||||
public bool ForceSoftwareEncoder { get; set; } = false;
|
public bool ForceSoftwareEncoder { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AudioEncodingConfig
|
internal class AudioEncodingConfig
|
||||||
{
|
{
|
||||||
private int _audioSampleRate = 44100;
|
private int _audioSampleRate = 44100;
|
||||||
private int _audioChannels = 2;
|
private int _audioChannels = 2;
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ using UnityEngine.EventSystems;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer
|
namespace ADOFAIRenderer
|
||||||
{
|
{
|
||||||
public class RenderMod : MelonMod
|
internal class RenderMod : MelonMod
|
||||||
{
|
{
|
||||||
public static AssetBundle FontBundle = null!;
|
public static AssetBundle FontBundle = null!;
|
||||||
// ReSharper disable once MemberCanBePrivate.Global
|
// ReSharper disable once MemberCanBePrivate.Global
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using Image = UnityEngine.UI.Image;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.UI
|
namespace ADOFAIRenderer.UI
|
||||||
{
|
{
|
||||||
public class DialogButton
|
internal class DialogButton
|
||||||
{
|
{
|
||||||
public string Text;
|
public string Text;
|
||||||
public Action OnClick;
|
public Action OnClick;
|
||||||
@@ -23,7 +23,7 @@ namespace ADOFAIRenderer.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CommonWarningDialogUI : MonoBehaviour
|
internal class CommonWarningDialogUI : MonoBehaviour
|
||||||
{
|
{
|
||||||
public static CommonWarningDialogUI? Instance { get; private set; }
|
public static CommonWarningDialogUI? Instance { get; private set; }
|
||||||
private readonly List<VisualElement> _disabledElements = new();
|
private readonly List<VisualElement> _disabledElements = new();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.UI
|
namespace ADOFAIRenderer.UI
|
||||||
{
|
{
|
||||||
public class DebugMonitorUI : MonoBehaviour
|
internal class DebugMonitorUI : MonoBehaviour
|
||||||
{
|
{
|
||||||
// --- Progress Bar UI Configuration Constants ---
|
// --- Progress Bar UI Configuration Constants ---
|
||||||
private const float BarWidth = 800f;
|
private const float BarWidth = 800f;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.UI
|
namespace ADOFAIRenderer.UI
|
||||||
{
|
{
|
||||||
public class EscapeHandlerUI : MonoBehaviour
|
internal class EscapeHandlerUI : MonoBehaviour
|
||||||
{
|
{
|
||||||
private GameObject _containerObj = null!;
|
private GameObject _containerObj = null!;
|
||||||
private TextMeshProUGUI _textComponent = null!;
|
private TextMeshProUGUI _textComponent = null!;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ using MelonLoader.Utils;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.UI
|
namespace ADOFAIRenderer.UI
|
||||||
{
|
{
|
||||||
public class FFmpegDownloadUI : MonoBehaviour
|
internal class FFmpegDownloadUI : MonoBehaviour
|
||||||
{
|
{
|
||||||
private GameObject _buttonContainerObj = null!;
|
private GameObject _buttonContainerObj = null!;
|
||||||
private GameObject _progressBarObj = null!;
|
private GameObject _progressBarObj = null!;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using UnityEngine.UIElements;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.UI
|
namespace ADOFAIRenderer.UI
|
||||||
{
|
{
|
||||||
public class RenderConfigUIManager : MonoBehaviour
|
internal class RenderConfigUIManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private UIDocument uiDocument = null!;
|
private UIDocument uiDocument = null!;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio
|
namespace ADOFAIRenderer.Util.Audio
|
||||||
{
|
{
|
||||||
public static class AudioResampler
|
internal static class AudioResampler
|
||||||
{
|
{
|
||||||
public static float[] Resample(float[] inputSamples, int inputChannels, int inputFrequency, int targetChannels, int targetFrequency)
|
public static float[] Resample(float[] inputSamples, int inputChannels, int inputFrequency, int targetChannels, int targetFrequency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio
|
namespace ADOFAIRenderer.Util.Audio
|
||||||
{
|
{
|
||||||
public static class AudioSpectrumGenerator
|
internal static class AudioSpectrumGenerator
|
||||||
{
|
{
|
||||||
public static float[]? AudioClipData { get; private set; }
|
public static float[]? AudioClipData { get; private set; }
|
||||||
public static int Channels { get; private set; }
|
public static int Channels { get; private set; }
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio
|
namespace ADOFAIRenderer.Util.Audio
|
||||||
{
|
{
|
||||||
public class AudioSyncCalculator
|
internal class AudioSyncCalculator
|
||||||
{
|
{
|
||||||
private readonly long _sampleRate;
|
private readonly long _sampleRate;
|
||||||
private readonly (long Numerator, long Denominator) _fpsRational;
|
private readonly (long Numerator, long Denominator) _fpsRational;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||||
{
|
{
|
||||||
public class Gain : IAudioFilter
|
internal class Gain : IAudioFilter
|
||||||
{
|
{
|
||||||
public float Level = 0f;
|
public float Level = 0f;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||||
{
|
{
|
||||||
public class HardClip : IAudioFilter
|
internal class HardClip : IAudioFilter
|
||||||
{
|
{
|
||||||
// ReSharper disable once MemberCanBePrivate.Global
|
// ReSharper disable once MemberCanBePrivate.Global
|
||||||
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||||
{
|
{
|
||||||
public interface IAudioFilter
|
internal interface IAudioFilter
|
||||||
{
|
{
|
||||||
void Initialize(int sampleRate, int channels);
|
void Initialize(int sampleRate, int channels);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
|
|||||||
namespace ADOFAIRenderer.Util.Audio.Filter
|
namespace ADOFAIRenderer.Util.Audio.Filter
|
||||||
{
|
{
|
||||||
// ReSharper disable once InconsistentNaming
|
// ReSharper disable once InconsistentNaming
|
||||||
public class RMSCompressor : IAudioFilter
|
internal class RMSCompressor : IAudioFilter
|
||||||
{
|
{
|
||||||
private float _thresholdDb = -20f;
|
private float _thresholdDb = -20f;
|
||||||
private float _ratio = 4f;
|
private float _ratio = 4f;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util.Audio
|
namespace ADOFAIRenderer.Util.Audio
|
||||||
{
|
{
|
||||||
public class AudioClipCache
|
internal class AudioClipCache
|
||||||
{
|
{
|
||||||
private readonly Dictionary<string, CachedClipData> _cache = new();
|
private readonly Dictionary<string, CachedClipData> _cache = new();
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ namespace ADOFAIRenderer.Util.Audio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class OfflineAudioMixer
|
internal class OfflineAudioMixer
|
||||||
{
|
{
|
||||||
public class SoundEvent
|
public class SoundEvent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public static class BundleLoader
|
internal static class BundleLoader
|
||||||
{
|
{
|
||||||
private static string BundlePlatform;
|
private static readonly string BundlePlatform;
|
||||||
private static readonly Assembly? ExecutingAssembly;
|
private static readonly Assembly? ExecutingAssembly;
|
||||||
|
|
||||||
static BundleLoader()
|
static BundleLoader()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace ADOFAIRenderer.Util.FFmpeg
|
namespace ADOFAIRenderer.Util.FFmpeg
|
||||||
{
|
{
|
||||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||||
public enum Codec
|
internal enum Codec
|
||||||
{
|
{
|
||||||
H264, H265, VP9, AV1, VVC
|
H264, H265, VP9, AV1, VVC
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
|||||||
/// FFmpeg의 C 네이티브 API를 사용하여 비디오 파일을 스트리밍 방식으로 디코딩하는 클래스입니다.
|
/// FFmpeg의 C 네이티브 API를 사용하여 비디오 파일을 스트리밍 방식으로 디코딩하는 클래스입니다.
|
||||||
/// 플레이어 형태가 아니며, 필요할 때 프레임을 순차적으로 읽거나 앞으로 탐색(Seek/Skip)할 수 있습니다.
|
/// 플레이어 형태가 아니며, 필요할 때 프레임을 순차적으로 읽거나 앞으로 탐색(Seek/Skip)할 수 있습니다.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed unsafe class FFmpegNativeDecoder : IDisposable
|
internal sealed unsafe class FFmpegNativeDecoder : IDisposable
|
||||||
{
|
{
|
||||||
private AVFormatContext* _pFormatContext = null;
|
private AVFormatContext* _pFormatContext = null;
|
||||||
private AVCodecContext* _pCodecContext = null;
|
private AVCodecContext* _pCodecContext = null;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
|||||||
/// • 하드웨어 가속 개요: https://ffmpeg.org/doxygen/trunk/group__lavu__hwcontext.html
|
/// • 하드웨어 가속 개요: https://ffmpeg.org/doxygen/trunk/group__lavu__hwcontext.html
|
||||||
/// • HW 가속 위키: https://trac.ffmpeg.org/wiki/HWAccelIntro
|
/// • HW 가속 위키: https://trac.ffmpeg.org/wiki/HWAccelIntro
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed unsafe class FFmpegNativeEncoder : IDisposable
|
internal sealed unsafe class FFmpegNativeEncoder : IDisposable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 인코더에 전달할 설정값을 담는 구조체입니다.
|
/// 인코더에 전달할 설정값을 담는 구조체입니다.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace ADOFAIRenderer.Util.FFmpeg
|
namespace ADOFAIRenderer.Util.FFmpeg
|
||||||
{
|
{
|
||||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||||
public enum RateControlMode
|
internal enum RateControlMode
|
||||||
{
|
{
|
||||||
CBR,
|
CBR,
|
||||||
VBR,
|
VBR,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
|||||||
}
|
}
|
||||||
|
|
||||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||||
public sealed class VideoEncoder : IEquatable<VideoEncoder>
|
internal sealed class VideoEncoder : IEquatable<VideoEncoder>
|
||||||
{
|
{
|
||||||
// ReSharper disable MemberCanBePrivate.Global
|
// ReSharper disable MemberCanBePrivate.Global
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using FFmpeg.AutoGen;
|
|||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
// ReSharper disable once InconsistentNaming
|
// ReSharper disable once InconsistentNaming
|
||||||
public class FFmpegVideoBGPlayer : MonoBehaviour
|
internal class FFmpegVideoBGPlayer : MonoBehaviour
|
||||||
{
|
{
|
||||||
private static readonly int YTex = Shader.PropertyToID("_YTex");
|
private static readonly int YTex = Shader.PropertyToID("_YTex");
|
||||||
private static readonly int UVTex = Shader.PropertyToID("_UVTex");
|
private static readonly int UVTex = Shader.PropertyToID("_UVTex");
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ using UnityEngine.Rendering;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public class FrameReader : IDisposable
|
internal class FrameReader : IDisposable
|
||||||
{
|
{
|
||||||
private static readonly int Height = Shader.PropertyToID("Height");
|
private static readonly int Height = Shader.PropertyToID("Height");
|
||||||
private static readonly int Width = Shader.PropertyToID("Width");
|
private static readonly int Width = Shader.PropertyToID("Width");
|
||||||
|
|||||||
+2
-2
@@ -9,12 +9,12 @@ using UnityEngine;
|
|||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||||
public enum GPUVendor
|
internal enum GPUVendor
|
||||||
{
|
{
|
||||||
Unknown, NVIDIA, AMD, Intel, Apple
|
Unknown, NVIDIA, AMD, Intel, Apple
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class GPUUtil
|
internal static class GPUUtil
|
||||||
{
|
{
|
||||||
private const string NvidiaPattern =
|
private const string NvidiaPattern =
|
||||||
@"^NVIDIA GeForce [RG]TX [0-9]+(?> SUPER| Ti(?> SUPER)?)?(?> [0-9]+GB)?(?> Laptop GPU)?(?>/PCIe/SSE2)?$";
|
@"^NVIDIA GeForce [RG]TX [0-9]+(?> SUPER| Ti(?> SUPER)?)?(?> [0-9]+GB)?(?> Laptop GPU)?(?>/PCIe/SSE2)?$";
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace ADOFAIRenderer.Util
|
|||||||
/// - <b>Linux</b>: Uses <c>notify-send</c> (libnotify) with <c>xdg-open</c> for folder actions.
|
/// - <b>Linux</b>: Uses <c>notify-send</c> (libnotify) with <c>xdg-open</c> for folder actions.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class OSNotification
|
internal static class OSNotification
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends a native desktop notification.
|
/// Sends a native desktop notification.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public static class ParticleUtil
|
internal static class ParticleUtil
|
||||||
{
|
{
|
||||||
private static readonly ConditionalWeakTable<ParticleSystem, ParticleSystemRenderer> Cache = new();
|
private static readonly ConditionalWeakTable<ParticleSystem, ParticleSystemRenderer> Cache = new();
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public class RationalUtil
|
internal static class RationalUtil
|
||||||
{
|
{
|
||||||
public static (int Numerator, int Denominator) Double2MaxPrecisionInt(double value,
|
public static (int Numerator, int Denominator) Double2MaxPrecisionInt(double value,
|
||||||
int maxDenominator = 100000000)
|
int maxDenominator = 100000000)
|
||||||
@@ -11,7 +11,6 @@ namespace ADOFAIRenderer.Util
|
|||||||
if (value == 0.0) return (0, 1);
|
if (value == 0.0) return (0, 1);
|
||||||
|
|
||||||
var isNegative = value < 0;
|
var isNegative = value < 0;
|
||||||
var sign = isNegative ? -1.0 : 1.0;
|
|
||||||
var target = Math.Abs(value);
|
var target = Math.Abs(value);
|
||||||
// 2. 스턴-브로코 / 연속분수 경계값 초기화
|
// 2. 스턴-브로코 / 연속분수 경계값 초기화
|
||||||
// 아래 두 행의 분수 (0/1, 1/0) 사이에서 시작하여 타겟에 가까워집니다.
|
// 아래 두 행의 분수 (0/1, 1/0) 사이에서 시작하여 타겟에 가까워집니다.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public static class RegistryUtil
|
internal static class RegistryUtil
|
||||||
{
|
{
|
||||||
private static readonly Type? RegistryKeyType;
|
private static readonly Type? RegistryKeyType;
|
||||||
private static readonly Type? RegistryHiveType;
|
private static readonly Type? RegistryHiveType;
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ using MelonLoader;
|
|||||||
|
|
||||||
namespace ADOFAIRenderer.Util
|
namespace ADOFAIRenderer.Util
|
||||||
{
|
{
|
||||||
public static class StreamUtil
|
internal static class StreamUtil
|
||||||
{
|
{
|
||||||
public static void WriteNativePtrToStream(IntPtr nativePtr, int length, Stream destinationStream)
|
public static void WriteNativePtrToStream(IntPtr nativePtr, int length, Stream destinationStream)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user