?login_element?

Subversion Repositories NedoOS

Rev

Rev 1004 | Blame | Compare with Previous | Last modification | View Log | Download

  1.     MODULE MediaProcessor
  2. processResource:
  3.     call UrlEncoder.extractHostName
  4.     ld a, (historyBlock.mediaType)
  5.     cp MIME_MUSIC : jr z, processPT
  6.     cp MIME_LINK  : jr z, processPage
  7.     cp MIME_INPUT : jr z, processPage
  8.     cp MIME_IMAGE : jp z, ScreenViewer.display
  9. ; Fallback to plain text
  10. processText:
  11.     call Render.renderPlainTextScreen
  12.     jp   Render.plainTextLoop
  13.  
  14. processPT:
  15.     call VortexProcessor.play
  16.     jp History.back
  17.  
  18. processPage:
  19.     ld a, (Render.play_next) : and a : jr nz, .playNext
  20.     call Render.renderGopherScreen
  21.     jp   Render.workLoop
  22. .playNext
  23.     ld hl, Render.cursor_position
  24.     inc (hl)
  25.     jp Render.checkBorder
  26.  
  27.  
  28.     ENDMODULE