Created
          August 9, 2025 23:52 
        
      - 
      
- 
        Save ericoporto/2772dac6c9936c4aed72f69f96a08f1f to your computer and use it in GitHub Desktop. 
    hack to download tap test from emscripten builds
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | filePath = '/home/web_user/saved_games/ags3-auto-test/agstest.tap' | |
| fileContent = FS.readFile(filePath, { encoding: 'binary' }) | |
| blob1 = new Blob([fileContent], { type: 'text/plain' }); | |
| downloadLink = document.createElement('a'); | |
| downloadLink.href = URL.createObjectURL(blob1); | |
| downloadLink.download = 'agstest.tap'; | |
| document.body.appendChild(downloadLink); | |
| downloadLink.click(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment