@echo off

cd /d %~dp0

if not exist d mkdir d
if not exist e mkdir e
if not exist f mkdir f

if not exist e\avs_conf mkdir e\avs_conf
if not exist e\avs_conf\CONF mkdir e\avs_conf\CONF
if not exist e\avs_conf\CONF\NVRAM mkdir e\avs_conf\CONF\NVRAM
if not exist e\avs_conf\CONF\RAW mkdir e\avs_conf\CONF\RAW

if not exist dev\nvram mkdir dev\nvram
if not exist dev\raw mkdir dev\raw

inject iidxhook4-cn.dll bm2dx.exe -D --config iidxhook-18-cn.conf %*
