SHA256
Remove Dead Codes
This commit is contained in:
1 parent
ec06f99603
commit
2ea5deaba1
6 files changed
-34
No files matched your search
@@ -3,11 +3,9 @@ using System.Reflection;
|
||||
using ADOFAIRenderer;
|
||||
using ADOFAIRenderer.Component;
|
||||
using ADOFAIRenderer.Util;
|
||||
using ADOFAIRenderer.Util.FFmpeg;
|
||||
using MelonLoader;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.Rendering;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
[assembly: MelonInfo(typeof(RenderMod), "ADOFAI Renderer", "0.0.5-BETA", "ADOFAI Editor Forum")]
|
||||
@@ -26,7 +24,6 @@ namespace ADOFAIRenderer
|
||||
public static AssetBundle FontBundle = null!;
|
||||
// ReSharper disable once MemberCanBePrivate.Global
|
||||
public static AssetBundle SceneBundle = null!;
|
||||
public static bool WatchGameLoaded;
|
||||
public static string[] ModScenes = {};
|
||||
|
||||
private static double _beforeTime;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -58,14 +58,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
return array;
|
||||
}
|
||||
|
||||
/*public static byte[] RentRawBytes<T>(NativeArray<T> arr) where T : struct
|
||||
{
|
||||
var val = new NativeSlice<T>(arr).SliceConvert<byte>();
|
||||
var array = ArrayPool<byte>.Shared.Rent(val.Length);
|
||||
val.CopyTo(array);
|
||||
return array;
|
||||
}*/
|
||||
|
||||
protected static byte[] ToRawBytes<T>(NativeArray<T> arr) where T : struct
|
||||
{
|
||||
var val = new NativeSlice<T>(arr).SliceConvert<byte>();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using Unity.Collections;
|
||||
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
@@ -56,12 +55,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
VideoCodec = codec;
|
||||
}
|
||||
|
||||
public void SendData(NativeArray<byte> source)
|
||||
{
|
||||
var buffer = ToRawBytes(source);
|
||||
SendDataFromBuffer(buffer);
|
||||
}
|
||||
|
||||
public void Start(string path, float bitrate)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class WaitForFrames : CustomYieldInstruction
|
||||
{
|
||||
private readonly int _targetFrameCount;
|
||||
|
||||
public WaitForFrames(int numberOfFrames)
|
||||
{
|
||||
_targetFrameCount = Time.frameCount + numberOfFrames;
|
||||
}
|
||||
|
||||
public override bool keepWaiting => Time.frameCount < _targetFrameCount;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user