Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
fix bedrock qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 authored Oct 24, 2022
1 parent 5d4bd58 commit 2992633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bedrock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function startServer(platformOptions: bdsPlatformOptions = {id: "de
if ((["android", "linux"]).includes(process.platform) && process.arch !== "x64") {
args.push(command);
if (await commendExists("qemu-x86_64-static")) command = "qemu-x86_64-static";
if (await commendExists("qemu-x86_64")) command = "qemu-x86_64";
else if (await commendExists("qemu-x86_64")) command = "qemu-x86_64";
else if (await commendExists("box64")) command = "box64";
else throw new Error("Cannot emulate x64 architecture. Check the documentents in \"https://github.com/The-Bds-Maneger/Bds-Maneger-Core/wiki/Server-Platforms#minecraft-bedrock-server-alpha\"");
}
Expand Down
2 changes: 1 addition & 1 deletion src/configManipulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from "node:fs/promises";
import utils from "node:util";
import Proprieties, { properitiesBase } from "./lib/Proprieties";

export type configEdit = {name: string, data?: string|number|boolean};
export type configEdit = {name: string, data?: any};
export async function manegerConfigProprieties<updateConfig extends configEdit, configJson extends properitiesBase = any>(config: {configPath: string, configManipulate: {[Properties in updateConfig["name"]]: ((config: string, value: updateConfig["data"]) => string)|{validate?: (value: updateConfig["data"]) => boolean, regexReplace: RegExp, valueFormat: string, addIfNotExist?: string}}}) {
let configFile = await fs.readFile(config.configPath, "utf8");
const mani = {save, editConfig, getConfig: () => Proprieties.parse<configJson>(configFile)};
Expand Down

0 comments on commit 2992633

Please sign in to comment.