From 308227dc52a0b2b8b4d6f9dfdc35a00d2cd41c6f Mon Sep 17 00:00:00 2001
From: zkldi <20380519+zkldi@users.noreply.github.com>
Date: Fri, 4 Feb 2022 13:49:22 +0000
Subject: [PATCH] Add BAT/SH files for the beatoraja IR
---
.../dashboard/import/BeatorajaIRPage.tsx | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/client/src/app/pages/dashboard/import/BeatorajaIRPage.tsx b/client/src/app/pages/dashboard/import/BeatorajaIRPage.tsx
index 2cb7f4e1d..9bedc3b9d 100644
--- a/client/src/app/pages/dashboard/import/BeatorajaIRPage.tsx
+++ b/client/src/app/pages/dashboard/import/BeatorajaIRPage.tsx
@@ -5,6 +5,20 @@ import Muted from "components/util/Muted";
import { TachiConfig } from "lib/config";
import React from "react";
+const WIN_BAT = `
+REM *** Set system-wide "_JAVA_OPTIONS" environment variable to use OpenGL pipeline (improved performance of > 30% potentially. Also use anti-aliasing for non-LR2 fonts, and finally allow Swing framework to utilize AA and GTKLookAndFeel for config window. ***
+set _JAVA_OPTIONS='-Dsun.java2d.opengl=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' -Dfile.encoding="UTF-8"
+pushd %~dp0
+java -Xms1g -Xmx4g -cp beatoraja.jar;ir/* bms.player.beatoraja.MainLoader
+popd
+`;
+
+const LINUX_SH = `
+#!/bin/bash
+export _JAVA_OPTIONS='-Dsun.java2d.opengl=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dfile.encoding="UTF-8"'
+java -Xms1g -Xmx4g -cp 'beatoraja.jar;ir/*' bms.player.beatoraja.MainLoader
+`;
+
export default function BeatorajaIRPage() {
useSetSubheader(["Import Scores", "Beatoraja IR"]);
@@ -42,6 +56,28 @@ export default function BeatorajaIRPage() {
If the IR isn't showing up, make sure you're launching the game with the{" "}
beatoraja-config.bat file. Otherwise, IRs will never load.
+
+ If this is still not working, you may not have a{" "}
+ beatoraja-config.bat file that supports custom IRs. Here are
+ working ones.
+
+