Skip to content

Commit

Permalink
Fix the option option
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 24, 2024
1 parent bd90ae4 commit 4e1b5a7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions kmake/src/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,13 @@ export class Project {
}
}

static async create(directory: string, to: string, platform: string, korefile: string, retro: boolean, veryretro: boolean, parameter: string) {
static async create(directory: string, to: string, platform: string, korefile: string, retro: boolean, veryretro: boolean, option: string) {
Project.platform = platform;
Project.to = path.resolve(to);
try {
let options: any = {};
if (parameter) {
options[parameter] = true;
if (option) {
options[option] = true;
}
let project = await loadProject(path.resolve(directory), null, options, korefile);
if (retro && project.kore && !project.kincProcessed) {
Expand Down
2 changes: 1 addition & 1 deletion kmake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ async function exportKoremakeProject(from: string, to: string, platform: string,
Project.root = path.resolve(from);
let project: Project;
try {
project = await Project.create(from, to, platform, korefile, retro, veryretro, options.parameter);
project = await Project.create(from, to, platform, korefile, retro, veryretro, options.option);
if (shaderLang(platform) === 'metal') {
project.addFile(path.join(to, 'Sources', '*'), {});
}
Expand Down
6 changes: 3 additions & 3 deletions lib/kmake/Project.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/kmake/Project.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/kmake/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/kmake/main.js.map

Large diffs are not rendered by default.

0 comments on commit 4e1b5a7

Please sign in to comment.