forked from sin365/AxibugEmuOnline
Compare commits
No commits in common. "d9a5f40190c58e404d5ba5be11e9a300f5d2a438" and "c0af4d4009e276fb844ad83c30c73a942e6ad536" have entirely different histories.
d9a5f40190
...
c0af4d4009
@ -34,11 +34,6 @@ namespace AxibugEmuOnline.Client.ClientCore
|
||||
#region Mono
|
||||
public static TickLoop tickLoop;
|
||||
private static CoroutineRunner coRunner;
|
||||
|
||||
#if UNITY_PSP2
|
||||
public static SonyVitaCommonDialog sonyVitaCommonDialog;
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
#if UNITY_PSP2 && !UNITY_EDITOR //PSV真机
|
||||
@ -48,9 +43,9 @@ namespace AxibugEmuOnline.Client.ClientCore
|
||||
#endif
|
||||
public static void Init(Initer initer, bool isTest = false, string testSrvIP = "")
|
||||
{
|
||||
//其他平台必要的初始化
|
||||
if (UnityEngine.Application.platform == RuntimePlatform.PSP2)
|
||||
{
|
||||
//PSV 等平台需要手动创建目录
|
||||
PSP2Init();
|
||||
}
|
||||
|
||||
@ -93,12 +88,9 @@ namespace AxibugEmuOnline.Client.ClientCore
|
||||
Directory.CreateDirectory(PersistentDataPath);
|
||||
|
||||
#if UNITY_PSP2
|
||||
//创建PSV弹窗UI
|
||||
sonyVitaCommonDialog = new GameObject().AddComponent<SonyVitaCommonDialog>();
|
||||
//释放解码 FMV的26M内存,一般游戏用不上(PSP才用那破玩意儿)
|
||||
UnityEngine.PSVita.PSVitaVideoPlayer.TransferMemToMonoHeap();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
private static IEnumerator AppTickFlow()
|
||||
|
||||
@ -4,17 +4,17 @@ public class SonyVitaCommonDialog : MonoBehaviour
|
||||
{
|
||||
static Action<string> resultAct = null;
|
||||
void Awake()
|
||||
{
|
||||
{
|
||||
#if UNITY_PSP2
|
||||
Sony.Vita.Dialog.Ime.OnGotIMEDialogResult += OnGotIMEDialogResult;
|
||||
Sony.Vita.Dialog.Main.Initialise();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowPSVitaIME(Action<string> callback, string placeHolder, string defaultText)
|
||||
public void ShowPSVitaIME(Action<string> callback, string placeHolder, string defaultText)
|
||||
{
|
||||
#if UNITY_PSP2
|
||||
resultAct = callback;
|
||||
#if UNITY_PSP2
|
||||
Sony.Vita.Dialog.Ime.ImeDialogParams info = new Sony.Vita.Dialog.Ime.ImeDialogParams();
|
||||
|
||||
// Set supported languages, 'or' flags together or set to 0 to support all languages.
|
||||
@ -45,7 +45,6 @@ public class SonyVitaCommonDialog : MonoBehaviour
|
||||
if (result.result == Sony.Vita.Dialog.Ime.EnumImeDialogResult.RESULT_OK)
|
||||
{
|
||||
resultAct.Invoke(result);
|
||||
resultAct = null;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user