// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // private static IntPtr GetAppIcon() { using (MemoryStream mem = new MemoryStream(DDResource.Load(@"General\game_app.ico"))) { return(new Icon(mem).Handle); } }
public static byte[] File2FileData(string file) { return(DDResource.Load(file)); }
public static void Add(string file) { Add(DDResource.Load(file), Path.GetFileName(file)); }
public static void INIT() { string[] lines = FileTools.TextToLines(StringTools.ENCODING_SJIS.GetString(DDResource.Load(DatStringsFile))); foreach (string line in lines) { int p = line.IndexOf('='); if (p == -1) { throw new DDError(); } string name = line.Substring(0, p); string value = line.Substring(p + 1); Name2Value.Add(name, value); } }
public DDSound(string file, int handleCount) : this(() => DDResource.Load(file), handleCount) { }