# this is kinda hacky but it should prevent people from trying to run the node incorectly.
if( not ::File.exist?(".\\grinder.rb"))
print_error("Error, you are not running this node from the \\grinder\\node\\ directory. You need to change the working directory (cd path\\to\\grinder\\node\\) and try again.")
print_status("Created the grinder #{dlltitle} DLL '#{dllpath}'.")
end
end
rescue
print_error("Error, the grinder #{dlltitle} DLL '#{dllpath}' does not exist. Please manually copy this file from the \\grinder\\node\\data\\ directory.")
print_warning("Warning, the grinder #{dlltitle} DLL '#{dllpath}' does not match the one from the '#{dll_src_path}' directory. Please make sure you are using the latest one.")
end
end
end
rescueErrno::ENOENT
print_error("Error, unable to open the local file '#{dll_src_path}'.")
returnfalse
end
returntrue
end
if( not check_dll.call("grinder_logger.dll",'logger'))
returnfalse
end
# sf: we are not using heaphook yet so this stays commented out for now.