diff --git a/optional/config/mame.ini b/optional/config/mame.ini new file mode 100644 index 0000000..b4d786a --- /dev/null +++ b/optional/config/mame.ini @@ -0,0 +1,450 @@ +# +# CORE CONFIGURATION OPTIONS +# +readconfig 1 +writeconfig 0 + +# +# CORE SEARCH PATH OPTIONS +# +homepath . +rompath roms +hashpath hash +samplepath samples +artpath artwork +ctrlrpath ctrlr +inipath .;ini;ini/presets +fontpath . +cheatpath cheat +crosshairpath crosshair +pluginspath plugins +languagepath language +swpath software + +# +# CORE OUTPUT DIRECTORY OPTIONS +# +cfg_directory cfg +nvram_directory nvram +input_directory inp +state_directory sta +snapshot_directory snap +diff_directory diff +comment_directory comments + +# +# CORE STATE/PLAYBACK OPTIONS +# +state +autosave 0 +playback +record +record_timecode 0 +exit_after_playback 0 +mngwrite +aviwrite +wavwrite +snapname %g/%i +snapsize auto +snapview internal +snapbilinear 1 +statename %g +burnin 0 + +# +# CORE PERFORMANCE OPTIONS +# +autoframeskip 0 +frameskip 0 +seconds_to_run 0 +throttle 1 +sleep 1 +speed 1.0 +refreshspeed 0 + +# +# CORE RENDER OPTIONS +# +keepaspect 1 +unevenstretch 1 +unevenstretchx 0 +unevenstretchy 0 +autostretchxy 0 +intoverscan 0 +intscalex 0 +intscaley 0 + +# +# CORE ROTATION OPTIONS +# +rotate 1 +ror 0 +rol 0 +autoror 0 +autorol 0 +flipx 0 +flipy 0 + +# +# CORE ARTWORK OPTIONS +# +artwork_crop 0 +use_backdrops 1 +use_overlays 1 +use_bezels 1 +use_cpanels 1 +use_marquees 1 + +# +# CORE SCREEN OPTIONS +# +brightness 1.0 +contrast 1.0 +gamma 1.0 +pause_brightness 0.65 +effect none + +# +# CORE VECTOR OPTIONS +# +beam_width_min 1.0 +beam_width_max 1.0 +beam_intensity_weight 0 +flicker 0 + +# +# CORE SOUND OPTIONS +# +samplerate 48000 +samples 1 +volume 0 + +# +# CORE INPUT OPTIONS +# +coin_lockout 1 +ctrlr +mouse 0 +joystick 1 +lightgun 0 +multikeyboard 0 +multimouse 0 +steadykey 0 +ui_active 0 +offscreen_reload 0 +joystick_map auto +joystick_deadzone 0.3 +joystick_saturation 0.85 +natural 0 +joystick_contradictory 0 +coin_impulse 0 + +# +# CORE INPUT AUTOMATIC ENABLE OPTIONS +# +paddle_device keyboard +adstick_device keyboard +pedal_device keyboard +dial_device keyboard +trackball_device keyboard +lightgun_device keyboard +positional_device keyboard +mouse_device mouse + +# +# CORE DEBUGGING OPTIONS +# +verbose 0 +log 0 +oslog 0 +debug 0 +update_in_pause 0 +debugscript + +# +# CORE COMM OPTIONS +# +comm_localhost 0.0.0.0 +comm_localport 15112 +comm_remotehost 127.0.0.1 +comm_remoteport 15112 + +# +# CORE MISC OPTIONS +# +drc 1 +drc_use_c 0 +drc_log_uml 0 +drc_log_native 0 +bios +cheat 0 +skip_gameinfo 0 +uifont default +ui cabinet +ramsize +confirm_quit 0 +ui_mouse 1 +autoboot_command +autoboot_delay 0 +autoboot_script +console 0 +plugins 1 +plugin +noplugin +language English + +# +# HTTP SERVER OPTIONS +# +http 0 +http_port 8080 +http_root web + +# +# OSD KEYBOARD MAPPING OPTIONS +# +uimodekey SCRLOCK + +# +# OSD FONT OPTIONS +# +uifontprovider auto + +# +# OSD OUTPUT OPTIONS +# +output auto + +# +# OSD INPUT OPTIONS +# +keyboardprovider auto +mouseprovider auto +lightgunprovider auto +joystickprovider auto + +# +# OSD DEBUGGING OPTIONS +# +debugger auto +debugger_font auto +debugger_font_size 0 +watchdog 0 + +# +# OSD PERFORMANCE OPTIONS +# +numprocessors auto +bench 0 + +# +# OSD VIDEO OPTIONS +# +video auto +numscreens 1 +window 0 +maximize 1 +waitvsync 0 +syncrefresh 0 +monitorprovider auto + +# +# OSD PER-WINDOW VIDEO OPTIONS +# +screen auto +aspect auto +resolution auto +view auto +screen0 auto +aspect0 auto +resolution0 auto +view0 auto +screen1 auto +aspect1 auto +resolution1 auto +view1 auto +screen2 auto +aspect2 auto +resolution2 auto +view2 auto +screen3 auto +aspect3 auto +resolution3 auto +view3 auto + +# +# OSD FULL SCREEN OPTIONS +# +switchres 0 + +# +# OSD ACCELERATED VIDEO OPTIONS +# +filter 1 +prescale 1 + +# +# OpenGL-SPECIFIC OPTIONS +# +gl_forcepow2texture 0 +gl_notexturerect 0 +gl_vbo 1 +gl_pbo 1 +gl_glsl 0 +gl_glsl_filter 1 +glsl_shader_mame0 none +glsl_shader_mame1 none +glsl_shader_mame2 none +glsl_shader_mame3 none +glsl_shader_mame4 none +glsl_shader_mame5 none +glsl_shader_mame6 none +glsl_shader_mame7 none +glsl_shader_mame8 none +glsl_shader_mame9 none +glsl_shader_screen0 none +glsl_shader_screen1 none +glsl_shader_screen2 none +glsl_shader_screen3 none +glsl_shader_screen4 none +glsl_shader_screen5 none +glsl_shader_screen6 none +glsl_shader_screen7 none +glsl_shader_screen8 none +glsl_shader_screen9 none + +# +# OSD SOUND OPTIONS +# +sound auto +audio_latency 2 + +# +# PORTAUDIO OPTIONS +# +pa_api none +pa_device none +pa_latency 0 + +# +# BGFX POST-PROCESSING OPTIONS +# +bgfx_path bgfx +bgfx_backend auto +bgfx_debug 0 +bgfx_screen_chains default +bgfx_shadow_mask slot-mask.png +bgfx_avi_name auto + +# +# WINDOWS PERFORMANCE OPTIONS +# +priority 0 +profile 0 + +# +# WINDOWS VIDEO OPTIONS +# +menu 0 + +# +# DIRECT3D POST-PROCESSING OPTIONS +# +hlslpath hlsl +hlsl_enable 0 +hlsl_oversampling 0 +hlsl_write auto +hlsl_snap_width 2048 +hlsl_snap_height 1536 +shadow_mask_tile_mode 0 +shadow_mask_alpha 0.0 +shadow_mask_texture shadow-mask.png +shadow_mask_x_count 6 +shadow_mask_y_count 4 +shadow_mask_usize 0.1875 +shadow_mask_vsize 0.25 +shadow_mask_uoffset 0.0 +shadow_mask_voffset 0.0 +distortion 0.0 +cubic_distortion 0.0 +distort_corner 0.0 +round_corner 0.0 +smooth_border 0.0 +reflection 0.0 +vignetting 0.0 +scanline_alpha 0.0 +scanline_size 1.0 +scanline_height 1.0 +scanline_variation 1.0 +scanline_bright_scale 1.0 +scanline_bright_offset 0.0 +scanline_jitter 0.0 +hum_bar_alpha 0.0 +defocus 0.0,0.0 +converge_x 0.0,0.0,0.0 +converge_y 0.0,0.0,0.0 +radial_converge_x 0.0,0.0,0.0 +radial_converge_y 0.0,0.0,0.0 +red_ratio 1.0,0.0,0.0 +grn_ratio 0.0,1.0,0.0 +blu_ratio 0.0,0.0,1.0 +saturation 1.0 +offset 0.0,0.0,0.0 +scale 1.0,1.0,1.0 +power 1.0,1.0,1.0 +floor 0.0,0.0,0.0 +phosphor_life 0.0,0.0,0.0 + +# +# NTSC POST-PROCESSING OPTIONS +# +yiq_enable 0 +yiq_jitter 0.0 +yiq_cc 3.57954545 +yiq_a 0.5 +yiq_b 0.5 +yiq_o 0.0 +yiq_p 1.0 +yiq_n 1.0 +yiq_y 6.0 +yiq_i 1.2 +yiq_q 0.6 +yiq_scan_time 52.6 +yiq_phase_count 2 + +# +# VECTOR POST-PROCESSING OPTIONS +# +vector_beam_smooth 0.0 +vector_length_scale 0.5 +vector_length_ratio 0.5 + +# +# BLOOM POST-PROCESSING OPTIONS +# +bloom_blend_mode 0 +bloom_scale 0.0 +bloom_overdrive 1.0,1.0,1.0 +bloom_lvl0_weight 1.0 +bloom_lvl1_weight 0.64 +bloom_lvl2_weight 0.32 +bloom_lvl3_weight 0.16 +bloom_lvl4_weight 0.08 +bloom_lvl5_weight 0.06 +bloom_lvl6_weight 0.04 +bloom_lvl7_weight 0.02 +bloom_lvl8_weight 0.01 + +# +# FULL SCREEN OPTIONS +# +triplebuffer 0 +full_screen_brightness 1.0 +full_screen_contrast 1.0 +full_screen_gamma 1.0 + +# +# INPUT DEVICE OPTIONS +# +global_inputs 0 +dual_lightgun 0 diff --git a/optional/install-dbbrowser.cmd b/optional/install-dbbrowser.cmd index 107f34a..c698bfd 100644 --- a/optional/install-dbbrowser.cmd +++ b/optional/install-dbbrowser.cmd @@ -3,6 +3,7 @@ set OPT=..\optional set SOFTWARE=..\software set MSI=dbbrowser-setup.msi +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" if NOT EXIST %SOFTWARE%\%MSI% ( echo ERROR: %SOFTWARE%\%MSI% not found! @@ -17,11 +18,8 @@ msiexec /i %MSI% /passive @echo off cd %OPT% -rem copy link to desktop ... -copy /Y desktop\SQLite-DBB.lnk %PUBLIC%\Desktop - -rem refresh desktop (W10 style) -ie4uinit.exe -show +echo copying startmenu shortcut ... +copy /Y startmenu\SQLite-DBB.lnk %STARTMENU% echo ####### %0 ####### pause diff --git a/optional/desktop/HakChi2.lnk b/optional/startmenu/HakChi2.lnk similarity index 100% rename from optional/desktop/HakChi2.lnk rename to optional/startmenu/HakChi2.lnk diff --git a/optional/desktop/MAME64.lnk b/optional/startmenu/MAME64.lnk similarity index 100% rename from optional/desktop/MAME64.lnk rename to optional/startmenu/MAME64.lnk diff --git a/optional/desktop/SQLite-DBB.lnk b/optional/startmenu/SQLite-DBB.lnk similarity index 100% rename from optional/desktop/SQLite-DBB.lnk rename to optional/startmenu/SQLite-DBB.lnk diff --git a/optional/unpack-hakchi2.cmd b/optional/unpack-hakchi2.cmd index 8843747..ad1af70 100644 --- a/optional/unpack-hakchi2.cmd +++ b/optional/unpack-hakchi2.cmd @@ -4,6 +4,7 @@ set TOOLS=c:\tools set CONFIG=config\hakchi2_config.ini set ZIP=..\software\hakchi2.zip +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" if NOT EXIST %ZIP% ( echo ERROR: %ZIP% not found! @@ -22,11 +23,8 @@ echo copying config ... mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul copy /Y %CONFIG% "%ProgramFiles(x86)%\hakchi2\config\config.ini" -echo copy desktop link ... -copy /Y desktop\HakChi2.lnk "%PUBLIC%\Desktop" - -rem refresh desktop (W10 style) -ie4uinit.exe -show +echo copy startmenu link ... +copy /Y startmenu\HakChi2.lnk %STARTMENU% echo ####### %0 ####### pause diff --git a/optional/unpack-mame.cmd b/optional/unpack-mame.cmd index 8a4d35f..19cfa76 100644 --- a/optional/unpack-mame.cmd +++ b/optional/unpack-mame.cmd @@ -5,6 +5,8 @@ set T=c:\TEMP set TOOLS=c:\tools set ZIP=..\software\mame64.7z set TARGET=c:\MAME +set CONFIG=config\mame.ini +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" if NOT EXIST %ZIP% ( echo ERROR: %ZIP% not found! @@ -29,11 +31,11 @@ mkdir %TARGET%\roms 2>nul rd /S /Q %T%\mame echo. -echo copy desktop link ... -copy /Y desktop\MAME64.lnk "%PUBLIC%\Desktop" +echo copy ini file ... +copy /Y %CONFIG% %TARGET% -rem refresh desktop (W10 style) -ie4uinit.exe -show +echo copy startmenu link ... +copy /Y startmenu\MAME64.lnk %STARTMENU% echo ####### %0 ####### pause diff --git a/software/download-software.cmd b/software/download-from-source.cmd similarity index 100% rename from software/download-software.cmd rename to software/download-from-source.cmd diff --git a/software/upload-to-ftp-singlefile.cmd b/software/upload-to-ftp-singlefile.cmd new file mode 100644 index 0000000..4b54f15 --- /dev/null +++ b/software/upload-to-ftp-singlefile.cmd @@ -0,0 +1,55 @@ +@echo off + +rem =================== +rem CONFIGFILE CHECK +rem =================== + +if NOT EXIST ftpsettings.cmd ( + echo. + echo ERROR: ftpsettings.cmd NOT FOUND + echo. + echo --- please create with following content --- + echo set FTP_SERVER=example.com + echo set FTP_PATH=/path/to/directory + echo set FTP_USER=myuser + echo set FTP_PASS=mypass + exit /b +) + +rem =================== +rem COMMANDLINE CHECKS +rem =================== + +IF %1.==. GOTO USAGE +set UPLOADFILE=%1 + +IF NOT EXIST %UPLOADFILE% ( + echo ERROR: %UPLOADFILE% not found! + exit /b +) + +echo. +echo loading settings ... +call ftpsettings.cmd +echo ++++++++++++++++++ +echo FTP_SERVER=%FTP_SERVER% +echo FTP_PATH=%FTP_PATH% +echo FTP_USER=%FTP_USER% +echo FTP_PASS=xxxxxx +echo ++++++++++++++++++ +echo. + +rem ###################################### +rem MAIN ( UPLOAD single file to ftp ) ... +rem ###################################### + +rem UPLOAD with curl ... +echo upload of: [ %UPLOADFILE% ] +curl -u %FTP_USER%:%FTP_PASS% -T %UPLOADFILE% ftp://%FTP_SERVER%/%FTP_PATH%/ +GOTO END + +:USAGE +echo "usage: %0 " +echo. + +:END diff --git a/software/upload-to-ftp.cmd b/software/upload-to-ftp.cmd index 0c35311..7e99e3c 100644 --- a/software/upload-to-ftp.cmd +++ b/software/upload-to-ftp.cmd @@ -45,7 +45,7 @@ echo. echo using list [ %LISTFILE% ] ... rem ################################### -rem MAIN loop ( UPLOAD top ftp ) ... +rem MAIN loop ( UPLOAD to ftp ) ... rem ################################### FOR /F "tokens=1,2 delims=, " %%E in (%LISTFILE%) do (