small change to DEBUG define
This commit is contained in:
parent
72b68b97b6
commit
d5af421932
18
main.cpp
18
main.cpp
@ -18,20 +18,16 @@ int main(int argc, char **argv)
|
||||
std::optional<std::string> save_location_path = std::nullopt;
|
||||
std::string save_location = "";
|
||||
|
||||
#if DEBUG
|
||||
|
||||
user_pass = "123";
|
||||
args = Arg::Print_all_p;
|
||||
std::string label_st = "facebook";
|
||||
label = label_st.data();
|
||||
save_location = "passwords.bin";
|
||||
|
||||
#else
|
||||
|
||||
args = get_args(argc, argv, &label);
|
||||
if (args == Arg::Error)
|
||||
return 0;
|
||||
|
||||
#if DEBUG
|
||||
|
||||
save_location = "passwords.bin";
|
||||
|
||||
#else
|
||||
|
||||
save_location_path = get_save_path();
|
||||
if (!save_location_path.has_value())
|
||||
{
|
||||
@ -64,7 +60,6 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if !DEBUG
|
||||
printf("Input main password:");
|
||||
user_pass = get_user_password();
|
||||
if (user_pass.empty())
|
||||
@ -72,7 +67,6 @@ int main(int argc, char **argv)
|
||||
printf("Error getting password\n");
|
||||
return 1;
|
||||
}
|
||||
#endif // !1
|
||||
|
||||
Buffer decrypted_buffer;
|
||||
// check if encrypted buffer is empty if not, decrypt it
|
||||
|
Loading…
x
Reference in New Issue
Block a user