Skip to content

Instantly share code, notes, and snippets.

@PeterTh
PeterTh / find_path.cpp
Last active February 15, 2025 14:55
Workaround for loading saves from other games on Steam Deck
// This is part of the function that finds the path for the previous games' saves for importing
// ideally you should also cache the result if this is required more than once
using namespace fs = std::filesystem;
std::string path = ph3lib::os::commonFolder(ph3lib::os::CommonFolder::SavedGames) + "/Falcom/Kuro/";
if (fs::exists(path)) {
return path;
}
// special handling for when running on the Steam Deck (or a Wine environment in general)

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.