Commit a844d1bb authored by nanahira's avatar nanahira

Revert "skip image when data not exists"

This reverts commit ec60aea7.
parent ec60aea7
...@@ -53,7 +53,14 @@ namespace ImgGen ...@@ -53,7 +53,14 @@ namespace ImgGen
else else
{ {
Console.WriteLine($"Card {code} not found!"); Console.WriteLine($"Card {code} not found!");
return null; Data data = new Data
{
code = code,
name = "???",
text = "???"
};
return data;
}
} }
public static string FormatCardDesc(string r) public static string FormatCardDesc(string r)
...@@ -84,3 +91,4 @@ namespace ImgGen ...@@ -84,3 +91,4 @@ namespace ImgGen
} }
} }
} }
...@@ -149,10 +149,6 @@ namespace ImgGen ...@@ -149,10 +149,6 @@ namespace ImgGen
public Bitmap GetImage(int code) public Bitmap GetImage(int code)
{ {
Data data = DataManager.GetData(code); Data data = DataManager.GetData(code);
if (data == null)
{
return null;
}
return DrawCard(data); return DrawCard(data);
} }
......
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