示例#1
0
    public static bool Init(string iniFilePath)
    {
        try
        {
            DataSource.iniFile = new Ini.File(iniFilePath);

            readConfig();

            if (DataSource.archives != null && DataSource.packages != null)
            {
                DataSource.writeLog("Already loaded");
                return(false);
            }
            DataSource.archives = new wzarchives(DataSource.location + "\\" + "base.wz");
            DataSource.packages = archives.root;

            DataSource.tag_version = DataSource.tag + "" + archives.version;

            Console.Write(DataSource.tag_version);
            Console.Write("> ");
            Console.Write(DataSource.archives.location);
            Console.Write("\n");
        }
        catch (Exception ex)
        {
            DataSource.writeLog(ex.Message);
            DataSource.writeLog(ex.StackTrace);
        }
        return(true);
    }
示例#2
0
    public static void Init(string iniFilePath)
    {
        DataSource.iniFile = new Ini.File(iniFilePath);

        readConfig();

        if (DataSource.archives != null && DataSource.packages != null)
        {
            return;
        }

        DataSource.archives = new wzarchives(DataSource.location + "\\" + "base.wz");
        DataSource.packages = archives.root;
    }