Commit 5e470a71 authored by nanahira's avatar nanahira

fix

parent dc5eed8e
...@@ -193,7 +193,7 @@ public class selectDeck : WindowServantSP ...@@ -193,7 +193,7 @@ public class selectDeck : WindowServantSP
try try
{ {
YGOSharp.Deck deck; YGOSharp.Deck deck;
if(!deckManager.FromBase64toCodedDeck(result[0].value, deck)) if(!((DeckManager)Program.I().deckManager).FromBase64toCodedDeck(result[0].value, deck))
{ {
RMSshow_none(InterString.Get("卡组代码无效。")); RMSshow_none(InterString.Get("卡组代码无效。"));
return; return;
...@@ -304,10 +304,10 @@ public class selectDeck : WindowServantSP ...@@ -304,10 +304,10 @@ public class selectDeck : WindowServantSP
#endif #endif
*/ */
YGOSharp.Deck deck; YGOSharp.Deck deck;
deckManager.FromYDKtoCodedDeck(path, deck); ((DeckManager)Program.I().deckManager).FromYDKtoCodedDeck(path, deck);
string default_string; string default_string;
if(deck.Main.Count > 0 || deck.Extra.Count > 0 || deck.Side.Count > 0) if(deck.Main.Count > 0 || deck.Extra.Count > 0 || deck.Side.Count > 0)
default_string = deckManager.convertDeckToBase64(deck); default_string = ((DeckManager)Program.I().deckManager).convertDeckToBase64(deck);
else else
default_string = ""; default_string = "";
RMSshow_input("onCode", InterString.Get("卡组代码"), default_string); RMSshow_input("onCode", InterString.Get("卡组代码"), default_string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment