From fe77c50e2c2260139600188b46689ddbb32f5398 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 20 Oct 2023 16:09:12 +0000 Subject: [PATCH] few cake-specifik tweaks --- src/wallet/plain_wallet_api.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index 49a8b08c..99b90450 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -205,6 +205,8 @@ namespace plain_wallet LOG_PRINT_L0("[INIT PLAIN_WALLET_INSTANCE] Ver:" << PROJECT_VERSION_LONG << "(" << BUILD_TYPE << ")"); + +#ifndef CAKEWALLET std::string wallets_folder = get_wallets_folder(); boost::system::error_code ec; boost::filesystem::create_directories(wallets_folder, ec); @@ -225,11 +227,15 @@ namespace plain_wallet err_result.error.message = LOCATION_STR + " \nmessage:" + ec.message(); return epee::serialization::store_t_to_json(err_result); } - +#endif std::atomic_store(&ginstance_ptr, ptr); +#ifndef CAKEWALLET epee::json_rpc::response ok_response = AUTO_VAL_INIT(ok_response); ok_response.result.return_code = API_RETURN_CODE_OK; return epee::serialization::store_t_to_json(ok_response); +#else + return API_RETURN_CODE_OK; +#endif } std::string get_appconfig(const std::string& encryption_key)