private void DumpAllButton_Click(object sender, EventArgs e) { DisASMDumpAllForm f = (DisASMDumpAllForm)InputFormRef.JumpFormLow <DisASMDumpAllForm>(); DialogResult dr = f.ShowDialog(); if (dr != System.Windows.Forms.DialogResult.OK) { return; } if (f.GetCallFunc() == DisASMDumpAllForm.Func.Func_DisASM) { DisASMDumpAllForm.RunAllDisASMButton(this.ParentForm); } else if (f.GetCallFunc() == DisASMDumpAllForm.Func.Func_IDAMAP) { DisASMDumpAllForm.RunAllMakeMAPFileButton(this.ParentForm); } else if (f.GetCallFunc() == DisASMDumpAllForm.Func.Func_NODOLLSYM) { DisASMDumpAllForm.RunAllMakeNoDollSymFileButton(this.ParentForm); } }
static bool ProcCommandLine() { if (ArgsDic.ContainsKey("--lint")) {//コマンドラインLint Program.IsCommandLine = true; Environment.Exit(ToolFELintForm.CommandLineLint()); return(true); } if (ArgsDic.ContainsKey("--rebuild")) {//コマンドラインrebuild Program.IsCommandLine = true; Environment.Exit(ToolROMRebuildForm.ComandLineRebuild()); return(true); } if (ArgsDic.ContainsKey("--pointercalc")) {//ポインタ変換 Program.IsCommandLine = true; Environment.Exit(PointerToolForm.ComandLineSearch()); return(true); } if (ArgsDic.ContainsKey("--translate")) {//ROM翻訳の実行 Program.IsCommandLine = true; Environment.Exit(ToolTranslateROMForm.CommandLineTranslate()); return(true); } if (ArgsDic.ContainsKey("--makeups")) {//UPSの作成 Program.IsCommandLine = true; Environment.Exit(ToolUPSPatchSimpleForm.CommandLineMakeUPS()); return(true); } if (ArgsDic.ContainsKey("--songexchange")) {//曲交換 Program.IsCommandLine = true; Environment.Exit(SongExchangeForm.CommandLineImport()); return(true); } if (ArgsDic.ContainsKey("--disasm")) {//逆汗 Program.IsCommandLine = true; Environment.Exit(DisASMDumpAllForm.CommandLineDisasm(ArgsDic["--disasm"])); return(true); } #if DEBUG //デバッグの場合はテストを実行 DebugTESTRunner(); if (ArgsDic.ContainsKey("--translate_batch")) {//翻訳を自動実行 DevTranslateForm.CommandLineTranslateOnly(); } if (ArgsDic.ContainsKey("--testonly")) { //フルテストの場合、終了する. Environment.Exit(0); return(true); } #endif return(false); }