コード例 #1
0
ファイル: TGHManager.cs プロジェクト: uwx/Open-GHTCP
        public void method_0()
        {
            byte[] byte_;
            ZipManager.ExtractBytesFrom(_string1, out byte_, "songs.info", "TGH9ZIP2PASS4MXKR");
            var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR"));

            foreach (StructurePointerNode class302 in @class.Nodes)
            {
                var gH3Song = new Gh3Song(class302);
                gH3Song.Editable = true;
                _gh3Songlist0.method_0(gH3Song, _string0 != null);
            }
            ZipManager.ExtractBytesFrom(_string1, out byte_, "tier.info", "TGH9ZIP2PASS4MXKR");
            Gh3Tier0.method_1(new Gh3Tier(
                                  (StructureHeaderNode) new ZzGenericNode1("tier", KeyGenerator.smethod_8(byte_, "TIR4AES4KEY9MXKR"))
                                  .Nodes[0], _gh3Songlist0));
            if (_string0 != null)
            {
                var list  = new List <string>();
                var list2 = new List <string>();
                foreach (var current in Gh3Tier0.Songs)
                {
                    if (current.Editable)
                    {
                        list.Add(current.Name + "_song.pak.xen");
                        list2.Add(_string0 + "songs\\" + current.Name + "_song.pak.xen");
                        list.Add(current.Name + ".dat.xen");
                        list2.Add(_string0 + "music\\" + current.Name + ".dat.xen");
                        list.Add(current.Name + ".fsb.xen");
                        list2.Add(_string0 + "music\\" + current.Name + ".fsb.xen");
                    }
                }
                ZipManager.smethod_11(_string1, list2, list, "TGH9ZIP2PASS4MXKR");
            }
        }
コード例 #2
0
ファイル: GameSettingsChecker.cs プロジェクト: uwx/Open-GHTCP
        public GameSettingsChecker(ZzPakNode2 class3180)
        {
            if (!class3180.method_6(HashPath))
            {
                return;
            }
            var @class = new ZzGenericNode1(HashPath,
                                            KeyGenerator.smethod_8(class3180.method_12(HashPath), "MaC39SubInfo1245"));

            Version = new Version(@class.method_5(new UnicodeRootNode("version")).method_7());
            var array = @class.method_5(new ArrayPointerRootNode("date")).method_7().method_7 <float>();

            Date      = new DateTime((int)array[0], (int)array[1], (int)array[2]);
            UnkBuffer = @class.method_5(new ArrayPointerRootNode("hash")).method_7().method_7 <int>();
            class3180.method_7(HashPath);
            using (var stream = class3180.method_17())
            {
                stream.Position = 0L;
                // Ignore checks for external tools modifying game settings because we're not children who will dictate how people can play their game
                // Possibly turn this on later softly for warning the player of possible data integrity issues
                // this._GameSettingsUntampered = Class244.smethod_53<int>(Class244.smethod_21(Class244.smethod_43(stream.stream_0)), this.int_0);
                GameSettingsUntampered = true;
            }
            GC.Collect();
            AssemblyVersionMatches = (Assembly.GetExecutingAssembly().GetName().Version.CompareTo(Version) == 0);
            LoadedSuccessfully     = true;
            if (!AssemblyVersionMatches)
            {
                MessageBox.Show("The game settings were created under a different version.");
            }
            if (!GameSettingsUntampered)
            {
                MessageBox.Show("The game settings were modified by an external tool!");
            }
        }
コード例 #3
0
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1(_gh3Songlist0.Gh3SetlistList[_int0].method_2());

            @class.method_5(new StructurePointerRootNode(_int0))
            .method_8(_gh3Songlist0.Gh3SetlistList[_int0].method_6());
        }
コード例 #4
0
ファイル: GameSettingsChecker.cs プロジェクト: uwx/Open-GHTCP
        public static void SignHash(ZzPakNode2 pakNode)
        {
            if (pakNode.method_6(HashPath))
            {
                pakNode.method_7(HashPath);
            }
            var @class = new ZzGenericNode1();

            @class.method_3(new UnicodeRootNode("version", HashPath,
                                                Assembly.GetExecutingAssembly().GetName().Version.ToString()));
            using (var stream = pakNode.method_17())
            {
                stream.Position = 0L;
                @class.method_3(new ArrayPointerRootNode("hash", HashPath,
                                                         new IntegerArrayNode(KeyGenerator.smethod_21(KeyGenerator.HashStream(stream.Stream)))));
            }
            GC.Collect();
            var now = DateTime.Now;

            @class.method_3(new ArrayPointerRootNode("date", HashPath, new FloatArrayNode(new[]
            {
                now.Year,
                now.Month,
                (float)now.Day
            })));
            pakNode.method_1(HashPath,
                             new ZzCocoaNode12(HashPath, KeyGenerator.smethod_2(@class.method_8(), "MaC39SubInfo1245")));
        }
コード例 #5
0
ファイル: zzSetListParser.cs プロジェクト: uwx/Open-GHTCP
        public override void vmethod_0()
        {
            var            text   = "scripts\\guitar\\guitar_progression.qb";
            ZzGenericNode1 @class = _class3180.ZzGetNode1(text);

            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_career_songs")));
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_general_songs")));
            if (!_bool0)
            {
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs")));
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_generalp2_songs_coop")));
            }
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p1_career_progression")));
            if (!_bool0)
            {
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_career_progression")));
            }
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("bonus_progression")));
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("download_progression")));
            _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("general_progression")));
            if (!_bool0)
            {
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("generalp2_progression")));
                _gh3Songlist0.method_5(text, @class.method_5(new StructurePointerRootNode("p2_coop_progression")));
            }
            @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_download.qb");
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_download_songs")));
            if (!_bool0)
            {
                @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\guitar_coop.qb");
                _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_coopcareer_songs")));
            }
            @class = _class3180.ZzGetNode1(text = "scripts\\guitar\\store_data.qb");
            _gh3Songlist0.method_4(text, @class.method_5(new StructurePointerRootNode("gh3_bonus_songs")));
            if (_class3180.method_6(text = "scripts\\guitar\\custom_menu\\guitar_custom_progression.qb"))
            {
                @class = _class3180.ZzGetNode1(text);
                var num = @class.method_5(new IntegerRootNode("custom_setlist_bitmask")).method_7();
                for (var i = 0; i < 32; i++)
                {
                    if (num >> i != 0)
                    {
                        _gh3Songlist0.method_4(text,
                                               @class.method_5(new StructurePointerRootNode("gh3_custom" + (i + 1) + "_songs")))
                        .CustomBit = 1 << i;
                        _gh3Songlist0.method_5(text,
                                               @class.method_5(new StructurePointerRootNode("custom" + (i + 1) + "_progression")));
                    }
                }
                _gh3Songlist0.CustomBitMask = num;
            }
            @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb");
            _gh3Songlist0.method_6((StructureArrayNode)@class
                                   .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" +
                                                                      (_bool0 ? "gha" : "gh3")))
                                   .method_7());
        }
コード例 #6
0
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1(
                "scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb");

            @class
            .method_5(new ArrayPointerRootNode("custom_menu_setlist_switcher_progressions_" +
                                               (_bool0 ? "gha" : "gh3")))
            .method_8(_gh3Songlist0.method_7());
        }
コード例 #7
0
ファイル: GH3Songlist.cs プロジェクト: uwx/Open-GHTCP
        public void method_13(ZzGenericNode1 class3080)
        {
            var list  = new List <int>();
            var list2 = new List <ZzUnkNode294>();

            foreach (var current in Keys)
            {
                list.Add(QbSongClass1.AddKeyToDictionary(current));
                list2.Add(base[current].vmethod_5());
            }
            ((TagArray)class3080.method_5(new ArrayPointerRootNode("gh3_songlist")).method_7()).method_12(list);
            class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7().method_9(list2);
        }
コード例 #8
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        private void method_8(int int2, string string0, ZzGenericNode1 class3080)
        {
            var @class = new ListArrayNode();

            foreach (var current in TsList.Keys)
            {
                @class.method_3(new IntegerArrayNode(new[]
                {
                    current,
                    TsList[current][0],
                    TsList[current][1]
                }));
            }
            class3080.method_3(new ArrayPointerRootNode(string0, int2, @class));
        }
コード例 #9
0
ファイル: GH3Songlist.cs プロジェクト: uwx/Open-GHTCP
        public void FindEditableSongs(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0)
        {
            var @class = class3080.method_5(new StructurePointerRootNode("permanent_songlist_props")).method_7();
            var flag   = class3080.method_5(new TagStructureNode("band")) != null;

            Clear();
            foreach (StructurePointerNode class2 in @class.Nodes)
            {
                var gH3Song = flag ? new GhaSong(class2) : new Gh3Song(class2);
                if (gh3Songlist0 != null)
                {
                    gH3Song.SetEditable(!gh3Songlist0.method_3(gH3Song.GetSongName()));
                }
                gH3Song.SetVisible(!IgnoreSongs.Contains(class2.Int0));
                Add(gH3Song);
            }
        }
コード例 #10
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        private void method_5(int int2, string string0, ZzGenericNode1 class3080, Track <int, NotesAtOffset> class2287)
        {
            if (class2287.Keys.Count == 0)
            {
                method_11(int2, string0, class3080);
                return;
            }
            var list = new List <int>();

            foreach (var current in class2287.Keys)
            {
                list.Add(current);
                list.Add(class2287[current].SustainLength);
                list.Add(class2287[current].method_0());
            }
            class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(list)));
        }
コード例 #11
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        private void method_10(int int2, string string0, ZzGenericNode1 class3080)
        {
            if (Class2281.Keys.Count == 0)
            {
                method_11(int2, string0, class3080);
                return;
            }
            var @class = new StructureArrayNode();

            foreach (var current in Class2281.Keys)
            {
                @class.method_3(new StructureHeaderNode(new ZzUnkNode294[]
                {
                    new IntegerStructureNode("time", current),
                    new UnicodeStructureNode("marker", Class2281[current])
                }));
            }
            class3080.method_3(new ArrayPointerRootNode(string0, int2, @class));
        }
コード例 #12
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        private void method_7(int int2, string string0, ZzGenericNode1 class3080, Track <int, int> class2287)
        {
            if (class2287.Keys.Count == 0)
            {
                method_11(int2, string0, class3080);
                return;
            }
            var @class = new ListArrayNode();

            foreach (var current in class2287.Keys)
            {
                @class.method_3(new IntegerArrayNode(new[]
                {
                    current,
                    class2287[current]
                }));
            }
            class3080.method_3(new ArrayPointerRootNode(string0, int2, @class));
        }
コード例 #13
0
        public void ImportSGH()
        {
            byte[] byte_;
            ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "songs.info", "SGH9ZIP2PASS4MXKR");
            var @class = new ZzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR"));

            foreach (StructurePointerNode class302 in @class.Nodes)
            {
                var gH3Song = new Gh3Song(class302)
                {
                    Editable = true
                };
                _gh3SongList.method_0(gH3Song, _string0 != null);
            }
            ZipManager.ExtractBytesFrom(_saveLocation, out byte_, "setlist.info", "SGH9ZIP2PASS4MXKR");
            SetlistToExport.method_1(new Gh3Setlist(
                                         (StructureHeaderNode) new ZzGenericNode1("setlist", KeyGenerator.smethod_8(byte_, "SET4AES4KEY9MXKR"))
                                         .Nodes[0], _gh3SongList));
            if (_string0 == null)
            {
                return;
            }
            var list  = new List <string>();
            var list2 = new List <string>();

            foreach (var current in SetlistToExport.Tiers)
            {
                foreach (var current2 in current.Songs)
                {
                    if (!current2.Editable)
                    {
                        continue;
                    }
                    list.Add(current2.Name + "_song.pak.xen");
                    list2.Add(_string0 + "songs\\" + current2.Name + "_song.pak.xen");
                    list.Add(current2.Name + ".dat.xen");
                    list2.Add(_string0 + "music\\" + current2.Name + ".dat.xen");
                    list.Add(current2.Name + ".fsb.xen");
                    list2.Add(_string0 + "music\\" + current2.Name + ".fsb.xen");
                }
            }
            ZipManager.smethod_11(_saveLocation, list2, list, "SGH9ZIP2PASS4MXKR");
        }
コード例 #14
0
        public override void vmethod_0()
        {
            Console.WriteLine("-=- " + ToString() + " -=-");
            ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_cheats.qb");

            foreach (var current in @class.method_5(new ArrayPointerRootNode("guitar_hero_cheats"))
                     .method_7()
                     .method_8 <StructureHeaderNode>())
            {
                var flag   = current.method_5(new TagStructureNode("name", "unlockall")) != null;
                var flag2  = current.method_5(new TagStructureNode("name", "unlockalleverything")) != null;
                var class2 = current.method_5(new ArrayPointerNode("unlock_pattern")).method_8() as IntegerArrayNode;
                if (class2.Nodes.Count == 1)
                {
                    _bool0 = true;
                    Console.WriteLine("QB Database is already edited.");
                    break;
                }
                class2.method_12(new[]
                {
                    flag ? 4096 : (flag2 ? 256 : 65536)
                });
            }
        }
コード例 #15
0
ファイル: CustomMenuCreator.cs プロジェクト: uwx/Open-GHTCP
 public override void vmethod_0()
 {
     Console.WriteLine("-=- " + ToString() + " -=-");
     if (!_bool0)
     {
         _bool0 = _class3180.method_6("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb");
     }
     if (!_bool0)
     {
         Console.WriteLine("Creating Custom Menu.");
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_gem_scale.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_gem_scale"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_credits.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_credits"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_cutoff_viewer"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_gfx_options.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_gfx_options"));
         _class3180.method_0("scripts\\guitar\\custom_menu\\guitar_custom_menu_setlist_switcher.qb",
                             ZzQbScriptZipperClass.smethod_3("guitar_custom_menu_setlist_switcher"));
         ZzGenericNode1 @class = _class3180.ZzGetNode1(_bool1
             ? "scripts\\guitar\\menu\\menu_main.qb"
             : "scripts\\guitar\\guitar_menu.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("create_main_menu")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_progression.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("get_progression_globals")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_gems.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("load_venue")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_gem_scroller")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("kill_gem_scroller")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("guitarevent_songwon_spawned")));
         @class = _class3180.ZzGetNode1("scripts\\game\\net\\guitar_net.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("net_write_single_player_stats")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_globaltags")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("setup_songtags")));
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("push_bandtags")));
         @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\menu_credits.qb");
         ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("scrolling_list_add_item")));
         if (!_bool1)
         {
             ZzQbScriptZipperClass.smethod_1(@class.method_5(new ScriptRootNode("start_team_photos")));
         }
         if (_bool1)
         {
             @class = _class3180.ZzGetNode1("scripts\\guitar\\custom_menu\\guitar_custom_menu_cutoff_viewer.qb");
             ZzQbScriptZipperClass.smethod_1(
                 @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_paper")));
             ZzQbScriptZipperClass.smethod_1(
                 @class.method_5(new ScriptRootNode("custom_menu_cutoff_viewer_create_poster")));
         }
         @class = _class3180.ZzGetNode1("scripts\\guitar\\menu\\main_menu_flow.qb");
         var class2 = new StructureHeaderNode();
         class2.method_3(new TagStructureNode("action", "select_custom_menu"));
         class2.method_3(new TagStructureNode("flow_state", "custom_menu_fs"));
         class2.method_3(new TagStructureNode(0, "transition_right"));
         @class.method_5(new StructurePointerRootNode("main_menu_fs"))
         .method_5(new ArrayPointerNode("actions"))
         .method_8()
         .method_3(class2);
     }
 }
コード例 #16
0
 public void method_0(string string0, ZzGenericNode1 class3080)
 {
     method_1(string0, new Class309(string0, class3080));
 }
コード例 #17
0
ファイル: GH3Songlist.cs プロジェクト: uwx/Open-GHTCP
 public Gh3Songlist(ZzGenericNode1 class3080, Gh3Songlist gh3Songlist0)
 {
     FindEditableSongs(class3080, gh3Songlist0);
 }
コード例 #18
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        public ZzGenericNode1 method_4(string string0)
        {
            var @class = new ZzGenericNode1();
            var int_   = QbSongClass1.AddKeyToDictionary("songs\\" + string0 + ".mid.qb");

            string[] array =
            {
                "",
                "rhythm_",
                "guitarcoop_",
                "rhythmcoop_",
                "aux_"
            };
            for (var i = 0; i < array.Length; i++)
            {
                var      str    = array[i];
                string[] array2 =
                {
                    "easy",
                    "medium",
                    "hard",
                    "expert"
                };
                for (var j = 0; j < array2.Length; j++)
                {
                    var str2 = array2[j];
                    var text = str + str2;
                    if (NoteList.ContainsKey(text))
                    {
                        method_5(int_, string0 + "_song_" + text, @class, NoteList[text]);
                    }
                    else
                    {
                        method_11(int_, string0 + "_song_" + text, @class);
                    }
                    if (SpList.ContainsKey(text))
                    {
                        method_6(int_, string0 + "_" + text + "_star", @class, SpList[text]);
                    }
                    else
                    {
                        method_11(int_, string0 + "_" + text + "_star", @class);
                    }
                    if (BattleNoteList.ContainsKey(text))
                    {
                        method_6(int_, string0 + "_" + text + "_starbattlemode", @class, BattleNoteList[text]);
                    }
                    else
                    {
                        method_11(int_, string0 + "_" + text + "_starbattlemode", @class);
                    }
                }
            }
            method_7(int_, string0 + "_faceoffp1", @class, Class2282);
            method_7(int_, string0 + "_faceoffp2", @class, Class2283);
            method_7(int_, string0 + "_bossbattlep1", @class, BpmList);
            method_7(int_, string0 + "_bossbattlep2", @class, Class2285);
            method_8(int_, string0 + "_timesig", @class);
            method_9(int_, string0 + "_fretbars", @class);
            method_10(int_, string0 + "_markers", @class);
            method_11(int_, string0 + "_scripts_notes", @class);
            method_11(int_, string0 + "_anim_notes", @class);
            method_11(int_, string0 + "_triggers_notes", @class);
            method_11(int_, string0 + "_cameras_notes", @class);
            method_11(int_, string0 + "_lightshow_notes", @class);
            method_11(int_, string0 + "_crowd_notes", @class);
            method_11(int_, string0 + "_drums_notes", @class);
            method_11(int_, string0 + "_performance_notes", @class);
            method_11(int_, string0 + "_scripts", @class);
            method_11(int_, string0 + "_anim", @class);
            method_11(int_, string0 + "_triggers", @class);
            method_11(int_, string0 + "_cameras", @class);
            method_11(int_, string0 + "_lightshow", @class);
            method_11(int_, string0 + "_crowd", @class);
            method_11(int_, string0 + "_drums", @class);
            method_11(int_, string0 + "_performance", @class);
            return(@class);
        }
コード例 #19
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
        public QbcParser(string string0, ZzGenericNode1 class3080, ZzGenericNode1 class3081, ZzGenericNode1 class3082)
        {
            string[] array =
            {
                "Easy",
                "Medium",
                "Hard",
                "Expert"
            };
            string[] array2 =
            {
                "Single",
                "Double"
            };
            ArrayPointerRootNode @class;

            for (var i = 0; i < array2.Length; i++)
            {
                var      a      = array2[i];
                string[] array3 =
                {
                    "Guitar",
                    "Rhythm"
                };
                for (var j = 0; j < array3.Length; j++)
                {
                    var text   = array3[j];
                    var array4 = array;
                    for (var k = 0; k < array4.Length; k++)
                    {
                        var text2 = array4[k];
                        var text3 =
                            (text.ToLower() + ((a == "Double") ? "coop" : "") + "_" + text2.ToLower())
                            .Replace("guitar_", "");
                        @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_song_" + text3));
                        if (@class != null && @class.method_7() is IntegerArrayNode)
                        {
                            var class2 = new Track <int, NotesAtOffset>();
                            var array5 = @class.method_7().method_7 <int>();
                            for (var l = 0; l < array5.Length; l += 3)
                            {
                                class2.Add(array5[l], new NotesAtOffset(array5[l + 2], array5[l + 1]));
                            }
                            NoteList.Add(text3, class2);
                        }
                        @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_" + text3 + "_star"));
                        if (@class != null && @class.method_7() is ListArrayNode)
                        {
                            var class3 = new Track <int, int[]>();
                            foreach (var current in @class.method_7().method_8 <IntegerArrayNode>())
                            {
                                class3.Add(current[0], new[]
                                {
                                    current[1],
                                    current[2]
                                });
                            }
                            SpList.Add(text3, class3);
                        }
                        @class = class3080.method_5(
                            new ArrayPointerRootNode(string0 + "_" + text3 + "_starbattlemode"));
                        if (@class != null && @class.method_7() is ListArrayNode)
                        {
                            var class4 = new Track <int, int[]>();
                            foreach (var current2 in @class.method_7().method_8 <IntegerArrayNode>())
                            {
                                class4.Add(current2[0], new[]
                                {
                                    current2[1],
                                    current2[2]
                                });
                            }
                            BattleNoteList.Add(text3, class4);
                        }
                    }
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp1"));
            if (@class != null && @class.method_7() is ListArrayNode)
            {
                foreach (var current3 in @class.method_7().method_8 <IntegerArrayNode>())
                {
                    Class2282.Add(current3[0], current3[1]);
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_faceoffp2"));
            if (@class != null && @class.method_7() is ListArrayNode)
            {
                foreach (var current4 in @class.method_7().method_8 <IntegerArrayNode>())
                {
                    Class2283.Add(current4[0], current4[1]);
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep1"));
            if (@class != null && @class.method_7() is ListArrayNode)
            {
                foreach (var current5 in @class.method_7().method_8 <IntegerArrayNode>())
                {
                    BpmList.Add(current5[0], current5[1]);
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_bossbattlep2"));
            if (@class != null && @class.method_7() is ListArrayNode)
            {
                foreach (var current6 in @class.method_7().method_8 <IntegerArrayNode>())
                {
                    Class2285.Add(current6[0], current6[1]);
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_timesig"));
            if (@class != null && @class.method_7() is ListArrayNode)
            {
                foreach (var current7 in @class.method_7().method_8 <IntegerArrayNode>())
                {
                    TsList.Add(current7[0], new[]
                    {
                        current7[1],
                        current7[2]
                    });
                }
            }
            @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_fretbars"));
            if (@class != null && @class.method_7() is IntegerArrayNode)
            {
                FretbarList = new Fretbar <int>(@class.method_7().method_8 <int>());
                Int0        = (FretbarList[1] - FretbarList[0]) / 4;
                try
                {
                    var dictionary = new Dictionary <int, string>();
                    @class = class3080.method_5(new ArrayPointerRootNode(string0 + "_markers"));
                    if (class3081 != null && @class != null && @class.method_7() is StructureArrayNode)
                    {
                        foreach (UnicodeRootNode class5 in class3081.Nodes)
                        {
                            dictionary.Add(class5.Int0, class5.method_7());
                        }
                        using (var enumerator9 = @class.method_7().method_8 <StructureHeaderNode>().GetEnumerator())
                        {
                            while (enumerator9.MoveNext())
                            {
                                var current8 = enumerator9.Current;
                                Class2281.Add(((IntegerStructureNode)current8[0]).method_8(),
                                              dictionary[((FileTagStructureNode)current8[1]).method_9()]);
                            }
                            goto IL_7C2;
                        }
                    }
                    if (@class != null && @class.method_7() is StructureArrayNode)
                    {
                        foreach (var current9 in @class.method_7().method_8 <StructureHeaderNode>())
                        {
                            Class2281.Add(((IntegerStructureNode)current9[0]).method_8(),
                                          ((UnicodeStructureNode)current9[1]).method_8());
                        }
                    }
IL_7C2:
                    ;
                }
                catch
                {
                }
                try
                {
                    if (class3082 != null)
                    {
                        Gh3Song0 = new Gh3Song(class3082.method_5(new StructurePointerNode(string0)));
                    }
                    return;
                }
                catch
                {
                    return;
                }
            }
            throw new Exception("Not a MID.QB!");
        }
コード例 #20
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
 public QbcParser(string gh3SongName, ZzGenericNode1 class3080, ZzGenericNode1 class3081) : this(gh3SongName,
                                                                                                 class3080, class3081, null)
 {
 }
コード例 #21
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
 public QbcParser(string string0, ZzGenericNode1 class3080) : this(string0, class3080, null)
 {
 }
コード例 #22
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
 private void method_11(int int2, string string0, ZzGenericNode1 class3080)
 {
     class3080.method_3(new ArrayPointerRootNode(string0, int2, _class2870));
 }
コード例 #23
0
ファイル: QBCParser.cs プロジェクト: uwx/Open-GHTCP
 private void method_9(int int2, string string0, ZzGenericNode1 class3080)
 {
     class3080.method_3(new ArrayPointerRootNode(string0, int2, new IntegerArrayNode(FretbarList)));
 }
コード例 #24
0
ファイル: Class247.cs プロジェクト: uwx/Open-GHTCP
        public override void vmethod_0()
        {
            ZzGenericNode1 class308 = _class3180.ZzGetNode1("scripts\\guitar\\songlist.qb");

            _gh3Songlist0.method_13(class308);
        }
コード例 #25
0
ファイル: zzFxBoost.cs プロジェクト: uwx/Open-GHTCP
        public override void vmethod_0()
        {
            ZzGenericNode1 @class = _class3180.ZzGetNode1("scripts\\guitar\\guitar_events.qb");

            ((StructureHeaderNode)@class.method_5(new TagStructureNode("event", "star_power_on")).Parent)
            .method_5(new TagStructureNode("scr"))
            .method_9(_bool0 ? "guitarevent_starpoweroff" : "guitarevent_starpoweron");
            if (!_bool0)
            {
                @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 =
                    QbSongClass1.AddKeyToDictionary("hit_note_fx_empty");
                @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_empty");
                @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_empty");
                @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 =
                    QbSongClass1.AddKeyToDictionary("first_gem_fx_empty");
                @class.method_5(new ScriptRootNode("hit_note_fx_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("hit_note_fx");
                @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus");
                @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned");
                @class.method_5(new ScriptRootNode("first_gem_fx_original")).Int0 =
                    QbSongClass1.AddKeyToDictionary("first_gem_fx");
                return;
            }
            @class.method_5(new ScriptRootNode("hit_note_fx")).Int0 =
                QbSongClass1.AddKeyToDictionary("hit_note_fx_original");
            @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus")).Int0 =
                QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus_original");
            @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned")).Int0 =
                QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned_original");
            @class.method_5(new ScriptRootNode("first_gem_fx")).Int0 =
                QbSongClass1.AddKeyToDictionary("first_gem_fx_original");
            var class2 = @class.method_5(new ScriptRootNode("hit_note_fx_empty"));

            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("hit_note_fx");
            }
            else
            {
                @class.method_3(new ScriptRootNode("hit_note_fx", "scripts\\guitar\\guitar_events.qb",
                                                   new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("guitarevent_starsequencebonus_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_starsequencebonus");
            }
            else
            {
                @class.method_3(new ScriptRootNode("guitarevent_starsequencebonus", "scripts\\guitar\\guitar_events.qb",
                                                   new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("guitarevent_multiplier4xon_spawned_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("guitarevent_multiplier4xon_spawned");
            }
            else
            {
                @class.method_3(new ScriptRootNode("guitarevent_multiplier4xon_spawned",
                                                   "scripts\\guitar\\guitar_events.qb", new QbScriptNode()));
            }
            class2 = @class.method_5(new ScriptRootNode("first_gem_fx_empty"));
            if (class2 != null)
            {
                class2.Int0 = QbSongClass1.AddKeyToDictionary("first_gem_fx");
                return;
            }
            @class.method_3(new ScriptRootNode("first_gem_fx", "scripts\\guitar\\guitar_events.qb",
                                               new QbScriptNode()));
        }
コード例 #26
0
        public override void vmethod_0()
        {
            Console.WriteLine("-=- " + ToString() + " -=-");
            ZzGenericNode1 @class = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_globaltags.qb");

            string[] array =
            {
                "Invo",
                "tma",
                "TomPudding",
                "MaXKilleR",
                "GameZelda"
            };
            string[] array2 =
            {
                "D. Stowater",
                "Ginkel",
                "Bunny",
                "BMarvs",
                "CVance"
            };
            string[] array3 =
            {
                "C. Ward",
                "Riggs",
                "davidicus",
                "B. Wiuff",
                "Pam D."
            };
            KeyGenerator.smethod_56(array);
            Console.WriteLine("Randomized Names:");
            var num = 0;

            while (num < 5 && !_qbDatabaseAlreadyEdited)
            {
                Console.WriteLine(array[num]);
                var class2 = @class.method_5(new UnicodeStructureNode("name" + (num + 1)));
                if (class2.method_8().Equals(_bool1 ? array3[num] : array2[num]))
                {
                    class2.method_9(array[num]);
                }
                else
                {
                    _qbDatabaseAlreadyEdited = true;
                    Console.WriteLine("QB Database is already edited.");
                }
                num++;
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 class3 = _pakNode.ZzGetNode1("scripts\\guitar\\guitar_memcard.qb");
                Console.WriteLine("Changing Save File Size to 5MB.");
                class3.method_5(new IntegerStructureNode("fixed_size")).method_9(5242880);
                Console.WriteLine("Changing Save Folder Name.");
                class3.method_5(new UnicodeRootNode("memcard_content_name"))
                .method_8(string.Format("Progress{0}", (new[]
                {
                    "A",
                    "B",
                    "C",
                    "D",
                    "E",
                    "F"
                })[new List <string>(new[]
                {
                    "qb",
                    "qb_f",
                    "qb_i",
                    "qb_s",
                    "qb_g",
                    "qb_k"
                }).IndexOf(KeyGenerator.GetFileNameNoExt(_pakNode.String0))]));
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 class4 = _pakNode.ZzGetNode1("scripts\\guitar\\menu\\menu_setlist.qb");
                Console.WriteLine("Changing Setlist Scroller.");
                ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("setlist_scroll")));
                Console.WriteLine("Changing Tier Name Display.");
                ZzQbScriptZipperClass.smethod_1(class4.method_5(new ScriptRootNode("create_sl_assets")));
            }
            if (!_qbDatabaseAlreadyEdited)
            {
                ZzGenericNode1 node = _pakNode.ZzGetNode1("scripts\\guitar\\guitar.qb");
                node.method_5(new StructurePointerNode("load_z_soundcheck"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Sound Check");
                node.method_5(new StructurePointerNode("load_z_credits"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Guitar Hero Tower");
                node.method_5(new StructurePointerNode("viewer"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Black Background");
                node.method_5(new StructurePointerNode("load_z_viewer"))
                .method_5(new UnicodeStructureNode("title"))
                .method_9("Black Background");
            }
        }