Skip to content

Commit 439439d

Browse files
committed
update modules
1 parent 1fe299f commit 439439d

File tree

6 files changed

+34
-40
lines changed

6 files changed

+34
-40
lines changed

.vscode/settings.json

-9
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,5 @@
1313
},
1414
"[c]": {
1515
"editor.foldingStrategy": "indentation",
16-
},
17-
"gopls": {
18-
"codelenses": { // CodeLens はエディタ画面から直接コマンドを実行できる機能 (packageの上にクリックすると静的解析を行うボタンが出てくる)
19-
"gc_details": true
20-
},
21-
"ui.diagnostic.annotations": {
22-
"escape": true,
23-
// "inline": true,
24-
}
2516
}
2617
}

docs/core.wasm

198 KB
Binary file not shown.

docs/wasm_exec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if (!globalThis.fs) {
1515
let outputBuf = "";
1616
globalThis.fs = {
17-
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
17+
constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1, O_DIRECTORY: -1 }, // unused
1818
writeSync(fd, buf) {
1919
outputBuf += decoder.decode(buf);
2020
const nl = outputBuf.lastIndexOf("\n");

go.mod

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
module github.com/akatsuki105/dawngb
22

3-
go 1.23.2
3+
go 1.24
44

55
require (
6-
github.com/ebitengine/oto/v3 v3.3.1
7-
github.com/hajimehoshi/ebiten/v2 v2.8.4
6+
github.com/ebitengine/oto/v3 v3.3.2
7+
github.com/hajimehoshi/ebiten/v2 v2.8.6
88
github.com/pkg/profile v1.7.0
9-
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
9+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
1010
)
1111

1212
require (
13-
github.com/ebitengine/gomobile v0.0.0-20241016134836-cc2e38a7c0ee // indirect
13+
github.com/ebitengine/gomobile v0.0.0-20250209143333-6071a2a2351c // indirect
1414
github.com/ebitengine/hideconsole v1.0.0 // indirect
15-
github.com/ebitengine/purego v0.8.1 // indirect
15+
github.com/ebitengine/purego v0.8.2 // indirect
1616
github.com/felixge/fgprof v0.9.5 // indirect
17-
github.com/google/pprof v0.0.0-20241101162523-b92577c0c142 // indirect
17+
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e // indirect
1818
github.com/jezek/xgb v1.1.1 // indirect
19-
golang.org/x/sync v0.9.0 // indirect
20-
golang.org/x/sys v0.27.0 // indirect
19+
golang.org/x/sync v0.12.0 // indirect
20+
golang.org/x/sys v0.31.0 // indirect
2121
)

go.sum

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ebi/emu_js.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ func init() {
1818

1919
func reset(this js.Value, args []js.Value) any {
2020
if emu != nil {
21-
emu.c.Reset(false)
21+
emu.c.Reset()
22+
emu.c.DirectBoot()
2223
}
2324
return nil
2425
}
@@ -53,7 +54,8 @@ func loadROM(this js.Value, args []js.Value) any {
5354
rom := make([]uint8, raw.Get("length").Int())
5455
js.CopyBytesToGo(rom, raw)
5556
emu.LoadROM(rom)
56-
emu.c.Reset(false)
57+
emu.c.Reset()
58+
emu.c.DirectBoot()
5759
}
5860
return nil
5961
}
@@ -66,7 +68,8 @@ func loadSave(this js.Value, args []js.Value) any {
6668
newSram := make([]uint8, size)
6769
js.CopyBytesToGo(newSram, args[0])
6870
emu.c.Load(gb.LOAD_SAVE, newSram)
69-
emu.c.Reset(false)
71+
emu.c.Reset()
72+
emu.c.DirectBoot()
7073
}
7174
}
7275
return nil

0 commit comments

Comments
 (0)