Skip to content

Commit

Permalink
fix editor launch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aimoonchen committed Mar 25, 2024
1 parent 01ebb90 commit b288950
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
1 change: 0 additions & 1 deletion tools/editor/launch/.mount
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ mount:
/engine/ %engine%/engine
/pkg/ %engine%/pkg
/ %project%
/ %project%/..
2 changes: 1 addition & 1 deletion tools/editor/launch/pkg/launch/editor_setting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local lfs = require "bee.filesystem"
local datalist = require "datalist"
local fastio = require "fastio"

local settingpath = lfs.path(vfs.repopath()):parent_path():parent_path():string().."/pkg/tools.editor/editor.settings"
local settingpath = lfs.path(vfs.repopath()):parent_path():string().."/pkg/tools.editor/editor.settings"
local editor_setting = lfs.exists(settingpath) and datalist.parse(fastio.readall_f(settingpath)) or {}

local function save()
Expand Down
22 changes: 0 additions & 22 deletions tools/editor/launch/pkg/launch/imgui.layout

This file was deleted.

2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/common/global_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local lfs = require "bee.filesystem"
local vfs = require "vfs"
local access = require "common.vfs_access"
m.repo_access = access
m.editor_root = lfs.path(vfs.repopath())
m.editor_root = (lfs.path(vfs.repopath()):filename():string() == "launch") and lfs.path(vfs.repopath()):parent_path() or lfs.path(vfs.repopath())

local function get_package(entry_path, readmount)
local repo = {_root = entry_path}
Expand Down

0 comments on commit b288950

Please sign in to comment.