mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 16:54:52 +01:00
Formatting, style fixes
This commit is contained in:
@@ -714,9 +714,10 @@ bool Network::BeginClient(const char* host, unsigned short port)
|
||||
safe_strcat(keyPath, gConfigNetwork.player_name, MAX_PATH);
|
||||
safe_strcat(keyPath, ".privkey", MAX_PATH);
|
||||
if (!platform_file_exists(keyPath)) {
|
||||
log_warning("generating key... this may take a while");
|
||||
log_info("Generating key... This may take a while");
|
||||
log_info("Need to collect enough entropy from the system");
|
||||
key.Generate();
|
||||
log_verbose("Key generated, saving private bits as %s", keyPath);
|
||||
log_info("Key generated, saving private bits as %s", keyPath);
|
||||
SDL_RWops *privkey = SDL_RWFromFile(keyPath, "wb+");
|
||||
key.SavePrivate(privkey);
|
||||
SDL_RWclose(privkey);
|
||||
@@ -727,7 +728,7 @@ bool Network::BeginClient(const char* host, unsigned short port)
|
||||
safe_strcat(keyPath, "-", MAX_PATH);
|
||||
safe_strcat(keyPath, key.PublicKeyHash().c_str(), MAX_PATH);
|
||||
safe_strcat(keyPath, ".pubkey", MAX_PATH);
|
||||
log_verbose("Key generated, saving public bits as %s", keyPath);
|
||||
log_info("Key generated, saving public bits as %s", keyPath);
|
||||
SDL_RWops *pubkey = SDL_RWFromFile(keyPath, "wb+");
|
||||
key.SavePublic(pubkey);
|
||||
SDL_RWclose(pubkey);
|
||||
|
||||
Reference in New Issue
Block a user