When using Wasm based Compose for Web is there particular recommended approach for reading in a bina...
j
When using Wasm based Compose for Web is there particular recommended approach for reading in a binary file (stored in say
resources
)?
👀 2
Ah, looks like I can just use
resource()
(trying it out here with chip-8 KMP sample)
Copy code
private suspend fun getRomData(gameName: String): ByteArray {
    return resource("Space Invaders [David Winter].ch8").readBytes()
}