#lang scheme/base
(require scheme/contract
scheme/class
"compiler/helpers.ss"
"resource.ss")
(define-struct program/resources (program resources))
(define (program/resources-write-resources! a-program/resources dest-dir)
(for ([a-resource (program/resources-resources a-program/resources)])
(send a-resource save! dest-dir)))
(provide/contract [struct program/resources
([program program?]
[resources (listof (is-a?/c resource<%>))])]
[program/resources-write-resources!
(program/resources? path-string? . -> . any)])