forked from cafeberry/cafeberry
feat: username.txt & cleanup file output
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user