Exemplo n.º 1
0
 //
 //	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);
     }
 }
Exemplo n.º 2
0
 public static byte[] File2FileData(string file)
 {
     return(DDResource.Load(file));
 }
Exemplo n.º 3
0
 public static void Add(string file)
 {
     Add(DDResource.Load(file), Path.GetFileName(file));
 }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
 public DDSound(string file, int handleCount)
     : this(() => DDResource.Load(file), handleCount)
 {
 }