Skip to content

Commit

Permalink
chore: 更改任务选项的配置文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
median-dxz committed Jan 21, 2025
1 parent 240a9a5 commit 2aab099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/src/setup/configHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import { TaskOptions } from '../configHandlers/TaskOptions.ts';
const PET_CACHE_FILENAME = 'sea-pets.json';
const MOD_LIST_FILENAME = 'sea-mods.json';
const LAUNCHER_CONFIG_FILENAME = 'sea-launcher.json';
const TASK_CONFIG_FILENAME = 'sea-task-config.json';
const TASK_OPTIONS_FILENAME = 'sea-task-options.json';

export const setupConfigHandlers = async (appRoot: string) => {
const petCatchTimeStorage = new FileSystemStorage(path.join(appRoot, configsRoot, PET_CACHE_FILENAME));
const launcherConfigStorage = new FileSystemStorage(path.join(appRoot, configsRoot, LAUNCHER_CONFIG_FILENAME));
const modIndexStorage = new FileSystemStorage(path.join(appRoot, configsRoot, MOD_LIST_FILENAME));
const taskConfigStorage = new FileSystemStorage(path.join(appRoot, configsRoot, TASK_CONFIG_FILENAME));
const taskOptionsStorage = new FileSystemStorage(path.join(appRoot, configsRoot, TASK_OPTIONS_FILENAME));

const petCatchTime = new PetCatchTime(petCatchTimeStorage);
const launcherConfig = new LauncherConfig(launcherConfigStorage);
const modIndex = new ModIndex(modIndexStorage);
const taskConfig = new TaskOptions(taskConfigStorage);
const taskConfig = new TaskOptions(taskOptionsStorage);
await Promise.all([petCatchTime.load(), launcherConfig.load(), taskConfig.load(), modIndex.load()]);

return {
Expand Down

0 comments on commit 2aab099

Please sign in to comment.