Skip to content

Commit ddf3c48

Browse files
committed
chore: remove debug console statements
1 parent 6aef200 commit ddf3c48

File tree

8 files changed

+10
-31
lines changed

8 files changed

+10
-31
lines changed

build/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ info:
1111
description: "A Minecraft Launcher" # The application description
1212
copyright: "(c) 2025, LeviMC" # Copyright text
1313
comments: "Some Product Comments" # Comments
14-
version: "0.0.8" # The application version
14+
version: "0.0.9" # The application version
1515
beta: true # Whether the application is in beta or not
1616

1717
# Dev mode configuration

build/darwin/Info.dev.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<key>CFBundleIdentifier</key>
1111
<string>org.levimc.launcher</string>
1212
<key>CFBundleVersion</key>
13-
<string>0.0.8</string>
13+
<string>0.0.9</string>
1414
<key>CFBundleGetInfoString</key>
1515
<string>Some Product Comments</string>
1616
<key>CFBundleShortVersionString</key>
17-
<string>0.0.8</string>
17+
<string>0.0.9</string>
1818
<key>CFBundleIconFile</key>
1919
<string>icons</string>
2020
<key>LSMinimumSystemVersion</key>

build/darwin/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<key>CFBundleIdentifier</key>
1111
<string>org.levimc.launcher</string>
1212
<key>CFBundleVersion</key>
13-
<string>0.0.8</string>
13+
<string>0.0.9</string>
1414
<key>CFBundleGetInfoString</key>
1515
<string>Some Product Comments</string>
1616
<key>CFBundleShortVersionString</key>
17-
<string>0.0.8</string>
17+
<string>0.0.9</string>
1818
<key>CFBundleIconFile</key>
1919
<string>icons</string>
2020
<key>LSMinimumSystemVersion</key>

build/linux/nfpm/nfpm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name: "LeviLauncher"
77
arch: ${GOARCH}
88
platform: "linux"
9-
version: "0.0.8"
9+
version: "0.0.9"
1010
section: "default"
1111
priority: "extra"
1212
maintainer: ${GIT_COMMITTER_NAME} <${GIT_COMMITTER_EMAIL}>

build/windows/info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"fixed": {
3-
"file_version": "0.0.8"
3+
"file_version": "0.0.9"
44
},
55
"info": {
66
"0000": {
7-
"ProductVersion": "0.0.8",
7+
"ProductVersion": "0.0.9",
88
"CompanyName": "LeviMC",
99
"FileDescription": "A Minecraft Launcher",
1010
"LegalCopyright": "(c) 2025, LeviMC",

build/windows/nsis/wails_tools.nsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
!define INFO_PRODUCTNAME "LeviLauncher"
1515
!endif
1616
!ifndef INFO_PRODUCTVERSION
17-
!define INFO_PRODUCTVERSION "0.0.8"
17+
!define INFO_PRODUCTVERSION "0.0.9"
1818
!endif
1919
!ifndef INFO_COPYRIGHT
2020
!define INFO_COPYRIGHT "(c) 2025, LeviMC"

build/windows/wails.exe.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
3-
<assemblyIdentity type="win32" name="org.levimc.launcher" version="0.0.8" processorArchitecture="*"/>
3+
<assemblyIdentity type="win32" name="org.levimc.launcher" version="0.0.9" processorArchitecture="*"/>
44
<dependency>
55
<dependentAssembly>
66
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>

minecraft.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -322,26 +322,6 @@ func isProcessRunningAtPath(exePath string) bool {
322322
return false
323323
}
324324

325-
func ensureVTConsole() {
326-
h, _ := windows.GetStdHandle(windows.STD_OUTPUT_HANDLE)
327-
var m uint32
328-
if windows.GetConsoleMode(h, &m) != nil {
329-
kernel32 := syscall.NewLazyDLL("kernel32.dll")
330-
alloc := kernel32.NewProc("AllocConsole")
331-
setcp := kernel32.NewProc("SetConsoleOutputCP")
332-
_, _, _ = alloc.Call()
333-
_, _, _ = setcp.Call(uintptr(65001))
334-
h, _ = windows.GetStdHandle(windows.STD_OUTPUT_HANDLE)
335-
_ = windows.GetConsoleMode(h, &m)
336-
}
337-
_ = windows.SetConsoleMode(h, m|0x0004)
338-
eh, _ := windows.GetStdHandle(windows.STD_ERROR_HANDLE)
339-
var em uint32
340-
if windows.GetConsoleMode(eh, &em) == nil {
341-
_ = windows.SetConsoleMode(eh, em|0x0004)
342-
}
343-
}
344-
345325
func (a *Minecraft) SaveVersionMeta(name string, gameVersion string, typeStr string, enableIsolation bool, enableConsole bool, enableEditorMode bool) string {
346326
vdir, err := utils.GetVersionsDir()
347327
if err != nil || strings.TrimSpace(vdir) == "" {
@@ -1398,7 +1378,6 @@ func (a *Minecraft) launchVersionInternal(name string, checkRunning bool) string
13981378
}
13991379
cmd := exec.Command(exe, args...)
14001380
cmd.Dir = dir
1401-
ensureVTConsole()
14021381
cmd.Stdout = os.Stdout
14031382
cmd.Stderr = os.Stderr
14041383
cmd.Stdin = os.Stdin

0 commit comments

Comments
 (0)