Skip to content

Commit d89b857

Browse files
authored
Merge pull request #52 from yuchanns/fix/hide-exit
fix(gameplay/menu): hide exit on platform wasm
2 parents f6a94b3 + 9214ea7 commit d89b857

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.emmyrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
3+
"diagnostics": {
4+
"enable": true,
5+
"disable": [
6+
"missing-fields"
7+
]
8+
},
9+
"runtime": {
10+
"version": "Lua5.5"
11+
},
12+
"workspace": {
13+
"library": [
14+
"./soluna/docs"
15+
]
16+
}
17+
}

gameplay/startmenu.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local menu = require "gameplay.menu"
33
local setting = require "core.setting"
44
local loadsave = require "core.loadsave"
55
local flow = require "core.flow"
6+
local soluna = require "soluna"
67

78
global print, print_r
89

@@ -47,6 +48,8 @@ return function()
4748

4849
MENU[#MENU+1] = "manual"
4950
MENU[#MENU+1] = "credits"
50-
MENU[#MENU+1] = "exit"
51+
if soluna.platform ~= "wasm" then
52+
MENU[#MENU+1] = "exit"
53+
end
5154
return menu(MENU) or flow.state.startmenu
52-
end
55+
end

0 commit comments

Comments
 (0)