Skip to content

Conversation

rodolpheh
Copy link
Contributor

This PR adds wget and wget_data which are wrappers to Emscripten's emscripten_wget and emscripten_wget_data. To use them, ASYNCIFY should be enabled.

@rodolpheh rodolpheh marked this pull request as ready for review August 25, 2025 09:02
@hazeycode hazeycode requested a review from Copilot August 26, 2025 09:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR exports synchronous wget functions by adding Zig wrappers around Emscripten's emscripten_wget and emscripten_wget_data functions for downloading files and data synchronously.

  • Adds wget function for downloading files to the local filesystem
  • Adds wget_data function for downloading data directly into memory
  • Requires ASYNCIFY to be enabled for synchronous operation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@zig-gamedev zig-gamedev deleted a comment from Copilot AI Aug 26, 2025
@zig-gamedev zig-gamedev deleted a comment from Copilot AI Aug 26, 2025
@zig-gamedev zig-gamedev deleted a comment from Copilot AI Aug 26, 2025
@hazeycode hazeycode merged commit 94230b9 into zig-gamedev:main Aug 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants