feat: username.txt & cleanup file output
This commit is contained in:
1 parent
987e77c817
commit
5725fd715f
10 files changed
+48
-18
No files matched your search
Submodule Minecraft.Client/Windows64/4JLibs updated: 54a04f9214...f2d81a0bc6.
@@ -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,
|
||||
|
||||
@@ -19,4 +19,5 @@ struct Windows64LaunchArgs
|
||||
bool fullscreen;
|
||||
int resolution;
|
||||
bool vsync;
|
||||
bool name;
|
||||
};
|
||||
Reference in new issue
Block a user