create_user_dirs.tcl 467 B

123456789101112131415
  1. # pre-create directories in the openMSX user dir, for ease of use
  2. set subdirs [list "systemroms" "software" "scripts" "skins" "machines" "extensions"]
  3. foreach subdir $subdirs {
  4. set directory [file normalize $::env(OPENMSX_USER_DATA)/$subdir]
  5. if {![file exists $directory]} {
  6. set sourcedir [file normalize $::env(OPENMSX_SYSTEM_DATA)/$subdir]
  7. file mkdir $directory
  8. if {[file exists $sourcedir/README]} {
  9. file copy -- $sourcedir/README $directory
  10. }
  11. }
  12. }