inital commit кек
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
@echo off
|
||||
REM ===========================================================
|
||||
REM CBE Emulator launcher
|
||||
REM Double-click to run with embedded plugins.
|
||||
REM No arguments needed - all plugins are inside cbe-emu.jar
|
||||
REM ===========================================================
|
||||
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
|
||||
set "JAVA_EXE=%~dp0runtime\bin\javaw.exe"
|
||||
set "JAR=%~dp0app\cbe-emu.jar"
|
||||
|
||||
if not exist "%JAVA_EXE%" (
|
||||
echo [ERROR] JRE not found at %JAVA_EXE%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if not exist "%JAR%" (
|
||||
echo [ERROR] cbe-emu.jar not found at %JAR%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Launch GUI. Use %* to forward any extra args.
|
||||
"%JAVA_EXE%" -Xmx256m -jar "%JAR%" %*
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
' ===========================================================
|
||||
' CBE Emulator launcher (VBScript - no console window)
|
||||
' Double-click to run with embedded plugins, silently.
|
||||
' ===========================================================
|
||||
|
||||
Option Explicit
|
||||
|
||||
Dim shell, fso, javaExe, jar, baseDir, cmd
|
||||
|
||||
Set shell = CreateObject("WScript.Shell")
|
||||
Set fso = CreateObject("Scripting.FileSystemObject")
|
||||
|
||||
baseDir = fso.GetParentFolderName(WScript.ScriptFullName)
|
||||
javaExe = baseDir & "\runtime\bin\javaw.exe"
|
||||
jar = baseDir & "\app\cbe-emu.jar"
|
||||
|
||||
If Not fso.FileExists(javaExe) Then
|
||||
MsgBox "JRE not found at:" & vbCrLf & javaExe, 16, "CBE Emulator"
|
||||
WScript.Quit 1
|
||||
End If
|
||||
|
||||
If Not fso.FileExists(jar) Then
|
||||
MsgBox "cbe-emu.jar not found at:" & vbCrLf & jar, 16, "CBE Emulator"
|
||||
WScript.Quit 1
|
||||
End If
|
||||
|
||||
' Collect extra args after the .vbs filename
|
||||
Dim extra
|
||||
extra = ""
|
||||
Dim i
|
||||
For i = 0 To WScript.Arguments.Count - 1
|
||||
extra = extra & " """ & WScript.Arguments(i) & """"
|
||||
Next
|
||||
|
||||
' Build command. 0 = hide window, False = don't wait for return
|
||||
cmd = """" & javaExe & """ -Xmx256m -jar """ & jar & """ " & extra
|
||||
shell.Run cmd, 0, False
|
||||
|
||||
Set shell = Nothing
|
||||
Set fso = Nothing
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "boot-disk",
|
||||
"arch": "tiny-8bit",
|
||||
"module_type": "disk",
|
||||
"version": 1,
|
||||
"sector_size": 512,
|
||||
"description": "Bootable disk with sector 0 bootloader"
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user