| 1 | # Register custom URL protocol handler |
| 2 | |
| 3 | Demo of `CastleDownload.RegisterUrlProtocol` to handle custom protocol. We register `my-packed-data:/` protocol to read data from a ZIP file. |
| 4 | |
| 5 | Furthermore, you can use `ApplicationDataOverride` to load game data from this protocol. This way `castle-data:/my_image.png` will actually get data from `my-packed-data:/my_image.png`. |
| 6 | |
| 7 | In effect, we read game data from a ZIP file, but you use `castle-data:/` as usual. |
| 8 | |
| 9 | ## TODO |
| 10 | |
| 11 | migrate to use UI designed by CGE editor and use TCastleView. |