Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed fungal for search #381

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { includesSome, isNode, simd } from "../../../../helpers";
import { IRule } from "../../IRule";
import { InfoProvider } from "../Base";

import type { FungalTransformation, MainModule } from "./Fungal.d.ts";
import type { FungalTransformation, MainModule } from "./FungalShift.d.ts";

import createModule from "./Fungal.mjs";
import createModule from "./FungalShift.mjs";

export class FungalShiftInfoProvider extends InfoProvider {
readyPromise: Promise<void>;
Expand Down Expand Up @@ -36,13 +36,13 @@ export class FungalShiftInfoProvider extends InfoProvider {
if (isNode) {
// Must be in the same folder as this file
// or else esbuild will not bundle it with the correct path
const wasmPath = new URL("./Fungal.wasm", import.meta.url).href;
const wasmPath = new URL("./FungalShift.wasm", import.meta.url).href;
noitaRandomModule = new URL(wasmPath, import.meta.url).href;
} else {
const hasSIMD = await simd();
noitaRandomModule = hasSIMD
? new URL("./Fungal.wasm", import.meta.url).href
: new URL("./Fungal-base.wasm", import.meta.url).href;
? new URL("./FungalShift.wasm", import.meta.url).href
: new URL("./FungalShift-base.wasm", import.meta.url).href;
}

const Module = await createModule({
Expand Down
Loading