Skip to content

Log version and system info at desktop startup#9926

Merged
tool4ever merged 1 commit intoCard-Forge:masterfrom
MostCromulent:startup-header
Feb 27, 2026
Merged

Log version and system info at desktop startup#9926
tool4ever merged 1 commit intoCard-Forge:masterfrom
MostCromulent:startup-header

Conversation

@MostCromulent
Copy link
Copy Markdown
Contributor

Mobile already logs hardware and version info at startup via GuiBase.getHWInfo(), but desktop never called it — getHWInfo() returned an empty string when hwInfo was null (desktop has no Android hardware detection).

This adds a desktop fallback to getHWInfo() that reports Java version, OS, and memory, and calls it from Main.java at startup — matching mobile's behavior.

Both entry points now route through Logger.info() (tinylog) instead of System.out.println() for timestamped, formatted output in forge.log:

05:48:09 INFO: ##########################################
05:48:09 INFO: APP: Forge v.2.0.11-SNAPSHOT
05:48:09 INFO: Java: 25.0.1 (Oracle Corporation)
05:48:09 INFO: OS: Windows 11 10.0 amd64
05:48:09 INFO: RAM: 4096 MB max, 20 CPUs
05:48:09 INFO: ##########################################

3 files, +29/-11.


🤖 Generated with Claude Code

Add desktop fallback to GuiBase.getHWInfo() for Java/OS/RAM when
hwInfo is unavailable. Route startup header through Logger.info()
on both desktop and mobile for formatted, timestamped output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tool4ever tool4ever merged commit a3e45ab into Card-Forge:master Feb 27, 2026
2 checks passed
@MostCromulent MostCromulent deleted the startup-header branch February 27, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants