File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
lib/src/commonMain/kotlin/com/felipecsl/knes
web/src/jsMain/kotlin/com/felipecsl/knes Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ If you'd rather use Gradle, run:
3232
3333To build/run the Javascript version of the emulator, run:
3434```
35- ./gradlew web:run
35+ ./gradlew web:bundle web: run
3636```
3737
3838Then, open ` http://localhost:8088 ` on your browser.
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ internal class INESFileParser {
3232 val battery = (control1 shr 1 ).and (1 )
3333 // read prg-rom bank(s)
3434 val prg = ByteArray (inesFileHeader.numPRG.toInt() * 16384 )
35- if (stream.read(prg) != prg.size) {
36- throw IllegalStateException (" Could not load ${prg.size} bytes from the input" )
37- }
35+ check(stream.read(prg) == prg.size) { " Could not load ${prg.size} bytes from the input" }
3836 // read chr-rom bank(s)
3937 val numCHR = inesFileHeader.numCHR.toInt()
4038 var chr = ByteArray (numCHR * 8192 )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import react.router.dom.switch
88import kotlin.browser.document
99import kotlin.browser.window
1010
11- fun main (args : Array <String >) {
11+ fun main (@Suppress( " UnusedMainParameter " ) args : Array <String >) {
1212 window.onload = {
1313 render(document.getElementById(" root" )!! ) {
1414 hashRouter {
You can’t perform that action at this time.
0 commit comments