mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 00:02:37 +10:00
slight bug fixes and clean up
This commit is contained in:
@ -42,7 +42,7 @@ export default defineEventHandler(async (h3) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const gameFile = path.join(versionDir, filename);
|
const gameFile = path.join(versionDir, filename);
|
||||||
if (!fs.existsSync(versionDir))
|
if (!fs.existsSync(gameFile))
|
||||||
throw createError({ statusCode: 400, statusMessage: "Invalid game file" });
|
throw createError({ statusCode: 400, statusMessage: "Invalid game file" });
|
||||||
|
|
||||||
const gameFileStats = fs.statSync(gameFile);
|
const gameFileStats = fs.statSync(gameFile);
|
||||||
|
|||||||
@ -29,7 +29,6 @@ class ManifestGenerator {
|
|||||||
if (overlays.length == 0) {
|
if (overlays.length == 0) {
|
||||||
return Object.fromEntries(
|
return Object.fromEntries(
|
||||||
Object.entries(rootManifest.manifest).map(([key, value]) => {
|
Object.entries(rootManifest.manifest).map(([key, value]) => {
|
||||||
console.log(key, value);
|
|
||||||
return [
|
return [
|
||||||
key,
|
key,
|
||||||
Object.assign({}, value, { versionName: rootManifest.versionName }),
|
Object.assign({}, value, { versionName: rootManifest.versionName }),
|
||||||
|
|||||||
Reference in New Issue
Block a user