         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'


exports.debug = debug
exports.FLASH_PLAYER_FILENAME = FILENAME
exports.getFlashVersion = getFlashVersion
exports.getAllVersions = getAllVersions

  flashPath = getPath()
  if flashPath?
    log "Loading Pepper Flash Player from: \n#{flashPath}"
    log "Pepper Flash Player version: #{getFlashVersion flashPath}" if PLATFORM is 'darwin'
    app.commandLine.appendSwitch 'ppapi-flash-path', flashPath
    # Note: the 'ppapi-flash-version' switch is used by Google Chrome to decide
    # which flash player to load (it'll choose the newest one), and dioplay in
