         null
     else null
 
-getFlashVersion = (path) ->
-  dbg.ex.flashLoader?.assert path, 'No flash player path passed in!'
+getFlashVersion = (loc) ->
+  return '' if typeof loc isnt 'string'
+  path = switch loc.toLowerCase()
+    when '@chrome' then findChromeFlashPath()
+    when '@system' then findSystemFlashPath()
+    else loc
   return '' if not validatePath path
   switch PLATFORM
     when 'darwin'

      match = /<key>CFBundleVersion<\/key>\s*<string>(\d+(?:\.\d+)*)<\/string>/.exec plistContent
      if match and match.length > 1 then match[1] else ''
    else ''

class FlashPlayerVersions
  constructor: (chromeFlashPath, systemFlashPath) ->
    @chrome = getFlashVersion chromeFlashPath if chromeFlashPath?
    @system = getFlashVersion systemFlashPath if systemFlashPath?

getAllVersions = ->
  new FlashPlayerVersions findChromeFlashPath(), findSystemFlashPath()

flashSources = []
addSource = (location) ->


exports.debug = debug
exports.FLASH_PLAYER_FILENAME = FILENAME
exports.getVersion = getFlashVersion
