Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoCat committed Feb 13, 2024
1 parent bfb8498 commit f1f066c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/game/JavaManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import tar from 'tar';
import { mkdir, readdir } from 'fs/promises';
import { Architecture, Platform } from '../core/System';
import { PlatformHelper } from '../helpers/PlatformHelper';
import { GameWindow } from './GameWindow';

@Service()
export class JavaManager {
// TODO Лишнее связывание, придумать как сделать лучше
constructor(private gameWindow: GameWindow) {}

async checkAndDownloadJava(majorVersion: number) {
const javaDir = await this.#getJavaDir(majorVersion);
const javaDir = this.#getJavaDir(majorVersion);
if (existsSync(javaDir)) return true;

const javaLink =
Expand Down

0 comments on commit f1f066c

Please sign in to comment.