?login_element?

Subversion Repositories NedoOS

Rev

Rev 1854 | 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.         ifdef GS
  10.     cp MIME_MOD   : jr z, processMOD
  11.         endif
  12. ; Fallback to plain text
  13. processText:
  14.     call Render.renderPlainTextScreen
  15.     jp   Render.plainTextLoop
  16.  
  17. processPT:
  18.     call VortexProcessor.play
  19.     jp History.back
  20.  
  21.     ifdef GS
  22. processMOD:
  23.     call ModProcessor.play
  24.     jp History.back
  25.         endif
  26.  
  27. processPage:
  28.     ld a, (Render.play_next) : and a : jr nz, .playNext
  29.     call Render.renderGopherScreen
  30.     jp   Render.workLoop
  31. .playNext
  32.     ld hl, Render.cursor_position
  33.     inc (hl)
  34.     call Render.renderGopherScreen
  35.     jp Render.checkBorder
  36.     ENDMODULE