Windows Registry Editor Version 5.00
; This file will include two context menu options for compiling DAT files to PAK
; YOU MUST EDIT IT TO REFLECT THE CURRENT MAKEOBJ LOCATION AND PAK SIZE!

[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat]
; This sets the default action to run when opening a dat file, uncomment to make it compile the pak automatically, change to makeobjCustom to make it ask for a size.
; @="makeobj"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat\shell]

; This and the next entry add a command that will automatically compile the DAT to a PAK
[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat\shell\makeobj]
; Text that will show in the context menu
@="Compile to pakNUMBER"
; Icon that will show in the context menu, remove if you don't want an icon
; Change DIR to the location of the icon, notice that backslashes must be double
"Icon"="DIR\\makeobj.ico"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat\shell\makeobj\Command]
; Change NUMBER to the pakset size you want to compile automatically
; Change PATH to your makeobj executable
; e.g. C:\\Users\\Me\\Documents\\makeobj.exe
@="cmd /v:on /c set file=%1&set file=!file:%W\\=!&PATH pakNUMBER ./ \"!file!\""

; These two last entries add an option that will ask you to enter the pakset size to compile, useful to compile other sizes you don't work all the time
[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat\shell\makeobjCustom]
; Text that will show in the context menu
@="Compile to pak"
; Icon that will show in the context menu, remove if you don't want an icon
; Change DIR to the location of the icon, notice that backslashes must be double
"Icon"="DIR\\makeobj.ico"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.dat\shell\makeobjCustom\Command]
; Change PATH to your makeobj executable
; e.g. C:\\Users\\Me\\Documents\\makeobj.exe
@="cmd /v:on /c set file=%1&set file=!file:%W\\=!&set /p size=\"Enter size: \"&PATH pak!size! ./ \"!file!\""

