From 95eb944eade434f86908262932ea991236820a61 Mon Sep 17 00:00:00 2001 From: warptangent Date: Thu, 11 Dec 2014 02:47:24 -0800 Subject: Repeat prompt for wallet path if invalid simplewallet run without a wallet path argument should prompt again if an invalid path was entered. Validity here currently means the string isn't empty. --- src/wallet/wallet2.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wallet/wallet2.cpp') diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 163e19df4..2b84cbbf3 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -633,6 +633,11 @@ void wallet2::wallet_exists(const std::string& file_path, bool& keys_file_exists wallet_file_exists = boost::filesystem::exists(wallet_file, ignore); } //---------------------------------------------------------------------------------------------------- +bool wallet2::wallet_valid_path_format(const std::string& file_path) +{ + return !file_path.empty(); +} +//---------------------------------------------------------------------------------------------------- bool wallet2::parse_payment_id(const std::string& payment_id_str, crypto::hash& payment_id) { cryptonote::blobdata payment_id_data; -- cgit v1.2.3