feat: username.txt & cleanup file output

This commit is contained in:
2026-09-10 22:17:47 -04:00
parent 987e77c817
commit 5725fd715f
10 changed files with 48 additions and 18 deletions
@@ -103,6 +103,8 @@ static Windows64LaunchArgs ParseLaunchArgs()
}
else if (_wcsicmp(argv[i], L"-name") == 0)
{
args.name = true;
if (i + 1 < argc)
{
app.CopyWideArgToAnsi(argv[i + 1], g_Username, sizeof(g_Username));
@@ -794,6 +796,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
InputManager.SetJoypadMapVal(0,0);
InputManager.SetKeyRepeatRate(0.3f,0.2f);
//str1k3r - load username.txt if we havent ran the -name arg
if(!launchArgs.name) ProfileManager.LoadGamertag();
// Initialise the profile manager with the game Title ID, Offer ID, a profile version number, and the number of profile values and settings
ProfileManager.Initialise(TITLEID_MINECRAFT,
app.m_dwOfferID,