-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdropDependencies.cs
More file actions
29 lines (26 loc) · 912 Bytes
/
dropDependencies.cs
File metadata and controls
29 lines (26 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using SharpML.Properties;
using System.IO;
namespace SharpML
{
public class DropDependencies
{
public string DropModeltoDisk(string random_model_name)
{
string path_to_drop = Path.GetTempPath() + random_model_name + "mod.exe";
File.WriteAllBytes(path_to_drop, Resources.model);
return path_to_drop;
}
public string DropRulestoDisk(string random_model_name)
{
string path_to_drop = Path.GetTempPath() + random_model_name + "rul.bin";
File.WriteAllBytes(path_to_drop, Resources.rules);
return path_to_drop;
}
public string Drop10ktoDisk(string random_model_name)
{
string path_to_drop = Path.GetTempPath() + random_model_name + "tenk.txt";
File.WriteAllText(path_to_drop, Resources._10k);
return path_to_drop;
}
}
}