forked from akanyan/mu3-mods
fix: party play fixes
Also, stop using a finalizer
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3.Operation;
|
||||
|
||||
@ -9,13 +10,6 @@ class patch_OperationManager: OperationManager {
|
||||
private int _movieIndex;
|
||||
private string _fileName;
|
||||
|
||||
~patch_OperationManager() {
|
||||
try {
|
||||
File.WriteAllText(_fileName, MovieIndex.ToString());
|
||||
} catch(Exception ex) {
|
||||
System.Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
public int MovieIndex {
|
||||
set {
|
||||
if(_movieDataList.Count > 0) {
|
||||
@ -23,6 +17,12 @@ class patch_OperationManager: OperationManager {
|
||||
} else {
|
||||
_movieIndex = 0;
|
||||
}
|
||||
|
||||
try {
|
||||
File.WriteAllText(_fileName, MovieIndex.ToString());
|
||||
} catch(Exception ex) {
|
||||
Debug.Log(ex);
|
||||
}
|
||||
}
|
||||
get {
|
||||
return _movieIndex;
|
||||
@ -38,7 +38,6 @@ class patch_OperationManager: OperationManager {
|
||||
}
|
||||
|
||||
public extern void orig_initialize();
|
||||
|
||||
public new void initialize() {
|
||||
orig_initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user