GE Lua Documentation

Press F to search!

the_high_sea_crap_detector

Definition


-- @/lua/ge/ge_utils.lua:1586

function the_high_sea_crap_detector()
  -- this function only shows a message to entice people to get the game.
  -- please support development of BeamNG and leave this in here :)
  local files = FS:findFiles('/', '*.url', 0, false, false)
  local knownHashes = {
    ['24cc61dd875c262b4bbdd0d07e448015ae47b678'] = 1,
    ['a42eba9d2cf366fb52589517f7f260c401c99925'] = 1
  }
  for _, f in pairs(files) do
    --print( ' - ' .. string.upper(f) .. ' = ' .. hashStringSHA1(string.upper(f)))
    if knownHashes[hashStringSHA1(string.upper(f))] then
      log('I', 'highSeas','Ahoy!')
      return true
    end
  end
  return false
end

Callers

@/lua/ge/main.lua

sailingTheHighSeas = the_high_sea_crap_detector()
photoModeOpen = false