上传封面图,即时存档,分平台处理截图朝向
This commit is contained in:
parent
04d2295bdf
commit
c6d6d45d90
@ -44,6 +44,11 @@ namespace AxibugEmuOnline.Client
|
|||||||
public abstract Texture OutputPixel { get; }
|
public abstract Texture OutputPixel { get; }
|
||||||
public abstract RawImage DrawCanvas { get; }
|
public abstract RawImage DrawCanvas { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 渲染朝向,用于截图
|
||||||
|
/// </summary>
|
||||||
|
public abstract Vector3 DrawLocalScale { get; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary> 指示该游戏实例是否处于联机模式 </summary>
|
/// <summary> 指示该游戏实例是否处于联机模式 </summary>
|
||||||
public bool IsNetPlay
|
public bool IsNetPlay
|
||||||
|
|||||||
@ -30,6 +30,7 @@ public class UEssgee : EmuCore<ulong>
|
|||||||
public override Texture OutputPixel => graphicsHandler.rawBufferWarper;
|
public override Texture OutputPixel => graphicsHandler.rawBufferWarper;
|
||||||
|
|
||||||
public override RawImage DrawCanvas => graphicsHandler.DrawCanvas;
|
public override RawImage DrawCanvas => graphicsHandler.DrawCanvas;
|
||||||
|
public override Vector3 DrawLocalScale => new Vector3(1, -1, 1);
|
||||||
|
|
||||||
public static bool bLogicUpdatePause { get; private set; }
|
public static bool bLogicUpdatePause { get; private set; }
|
||||||
#region
|
#region
|
||||||
|
|||||||
@ -230,11 +230,7 @@ public class UMAME : EmuCore<ulong>
|
|||||||
br.Close();
|
br.Close();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override Texture OutputPixel => mUniVideoPlayer.rawBufferWarper;
|
public override Texture OutputPixel => mUniVideoPlayer.rawBufferWarper;
|
||||||
|
|
||||||
public override RawImage DrawCanvas => mUniVideoPlayer.DrawCanvas;
|
public override RawImage DrawCanvas => mUniVideoPlayer.DrawCanvas;
|
||||||
|
public override Vector3 DrawLocalScale => new Vector3(1, -1, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -167,6 +167,7 @@ namespace AxibugEmuOnline.Client
|
|||||||
|
|
||||||
public override Texture OutputPixel => VideoProvider.OutputPixel;
|
public override Texture OutputPixel => VideoProvider.OutputPixel;
|
||||||
public override RawImage DrawCanvas => VideoProvider.Drawer;
|
public override RawImage DrawCanvas => VideoProvider.Drawer;
|
||||||
|
public override Vector3 DrawLocalScale => DrawCanvas.transform.localScale;
|
||||||
public override void GetAudioParams(out int frequency, out int channels)
|
public override void GetAudioParams(out int frequency, out int channels)
|
||||||
{
|
{
|
||||||
AudioProvider.GetAudioParams(out frequency, out channels);
|
AudioProvider.GetAudioParams(out frequency, out channels);
|
||||||
|
|||||||
@ -57,6 +57,9 @@ public class UStoicGoose : EmuCore<ulong>
|
|||||||
public override Texture OutputPixel => graphicsHandler.rawBufferWarper;
|
public override Texture OutputPixel => graphicsHandler.rawBufferWarper;
|
||||||
|
|
||||||
public override RawImage DrawCanvas => graphicsHandler.DrawCanvas;
|
public override RawImage DrawCanvas => graphicsHandler.DrawCanvas;
|
||||||
|
|
||||||
|
public override Vector3 DrawLocalScale => DrawCanvas.transform.localScale;
|
||||||
|
|
||||||
public override object GetState()
|
public override object GetState()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|||||||
@ -99,7 +99,7 @@ namespace AxibugEmuOnline.Client
|
|||||||
|
|
||||||
var stateData = m_ingameUI.Core.GetStateBytes();
|
var stateData = m_ingameUI.Core.GetStateBytes();
|
||||||
var tex = m_ingameUI.Core.OutputPixel;
|
var tex = m_ingameUI.Core.OutputPixel;
|
||||||
var screenData = tex.ToJPG(m_ingameUI.Core.DrawCanvas.transform.localScale);
|
var screenData = tex.ToJPG(m_ingameUI.Core.DrawLocalScale);
|
||||||
|
|
||||||
m_savFile.Save(m_savFile.Sequecen + 1, stateData, screenData);
|
m_savFile.Save(m_savFile.Sequecen + 1, stateData, screenData);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ namespace AxibugEmuOnline.Client
|
|||||||
public override void OnExcute(OptionUI optionUI, ref bool cancelHide)
|
public override void OnExcute(OptionUI optionUI, ref bool cancelHide)
|
||||||
{
|
{
|
||||||
var tex = m_gameUI.Core.OutputPixel;
|
var tex = m_gameUI.Core.OutputPixel;
|
||||||
var screenData = tex.ToJPG(m_gameUI.Core.DrawCanvas.transform.localScale);
|
var screenData = tex.ToJPG(m_gameUI.Core.DrawLocalScale);
|
||||||
App.share.SendUpLoadGameScreenCover(m_gameUI.RomFile.ID, screenData);
|
App.share.SendUpLoadGameScreenCover(m_gameUI.RomFile.ID, screenData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user