diff --git a/Mkfiles/vc/genperf/run.bat b/Mkfiles/vc/genperf/run.bat index b2991ffd..d9afa3f4 100644 --- a/Mkfiles/vc/genperf/run.bat +++ b/Mkfiles/vc/genperf/run.bat @@ -1,5 +1,18 @@ cd ..\..\.. +@echo off +reg query HKCR\Python.File\shell\open\command >nul: 2>&1 +goto answer%errorlevel% +:answer0 +echo Python found! +@echo on modules\arch\x86\gen_x86_insn.py +@echo off +goto end +:answer1 +echo Python not found! +goto end +:end +@echo on %1 x86insn_nasm.gperf x86insn_nasm.c %1 x86insn_gas.gperf x86insn_gas.c %1 modules\arch\x86\x86cpu.gperf x86cpu.c diff --git a/Mkfiles/vc8/genperf/run.bat b/Mkfiles/vc8/genperf/run.bat index b2991ffd..d9afa3f4 100644 --- a/Mkfiles/vc8/genperf/run.bat +++ b/Mkfiles/vc8/genperf/run.bat @@ -1,5 +1,18 @@ cd ..\..\.. +@echo off +reg query HKCR\Python.File\shell\open\command >nul: 2>&1 +goto answer%errorlevel% +:answer0 +echo Python found! +@echo on modules\arch\x86\gen_x86_insn.py +@echo off +goto end +:answer1 +echo Python not found! +goto end +:end +@echo on %1 x86insn_nasm.gperf x86insn_nasm.c %1 x86insn_gas.gperf x86insn_gas.c %1 modules\arch\x86\x86cpu.gperf x86cpu.c