Skip to content

Commit fafd6ce

Browse files
committed
gah
1 parent 7617134 commit fafd6ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/ceval/src/engines/stockfishWebEngine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class StockfishWebEngine implements CevalEngine {
4343
});
4444
if (!this.info.id.endsWith('hce')) {
4545
const nnueStore = await objectStorage<Uint8Array>({ store: 'nnue' }).catch(() => undefined);
46-
const nnueFilename = module.getRecommendedNnue();
46+
const nnueFilename = this.info.assets.nnue ?? module.getRecommendedNnue();
4747

4848
module.onError = (msg: string) => {
4949
if (msg.startsWith('BAD_NNUE')) {

ui/ceval/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface ExternalEngineInfo extends EngineInfo {
4444

4545
export interface BrowserEngineInfo extends EngineInfo {
4646
minMem?: number;
47-
assets: { root?: string; js?: string; wasm?: string; version?: string };
47+
assets: { root?: string; js?: string; wasm?: string; version?: string; nnue?: string };
4848
}
4949

5050
export type EngineNotifier = (status?: {

0 commit comments

Comments
 (0)