1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-24 13:27:45 +00:00
Commit graph

26 commits

Author SHA1 Message Date
b15473ddf0 Unify named constants for features too 2022-09-05 18:03:59 -04:00
8fbe1b6514 Introduce new and dedicated keychain functions
This replaced the manual use of QtKeychain which could be error-prone,
and nasty. This WILL reset saved passwords unfortunately, because the
name was set wrong (it was previously LauncherWindow instead of Astra).
2022-09-05 17:59:16 -04:00
e51d8243f2 Use the unified login interface in tablet version too 2022-09-05 17:49:02 -04:00
3146fd80b4 Remove the dumb fetchcontent solution for libraries 2022-09-05 17:29:51 -04:00
474de3fedc More boring code cleanup 2022-09-05 17:26:26 -04:00
cd2723ebfb Fix Watchdog builds failing 2022-09-05 17:17:38 -04:00
aaa614519e Use the actual gamemode library, instead of the helper
Sometimes gamemoderun is not packaged on certain systems, so use the
actual library if available instead to sidestep this problem.
2022-09-05 17:10:37 -04:00
7d9d59d9af Remove the multiple layers of launchExecutable nonsense in core 2022-09-05 16:59:49 -04:00
9832e66ca9 Move asset updater to core, and remove the stupid dependency on desktop
It makes no sense for Core to depend on Desktop, and this removes that
circular dependency.
2022-09-05 16:54:05 -04:00
5a1171fca3 Remove nativelauncher support, use Dalamud injector instead
It turns out that Dalamud has it's own injector (since when??) and Astra
will now use that instead of my own solution. Thanks to marzent of the
XIV-on-Mac team, as that's how I learned this existed :-p

Not only does this remove quite a bit of code cruft, this should make
launching the game if you're using Dalamud more stable too :-)
2022-09-05 16:51:46 -04:00
f28f8c392d Add LauncherCore::autoLogin function, remove separate impls
Previously there was two separate auto-login functions, one in the cli
interface and one for the desktop interface. If I didn't stop myself,
there would probably be one in the tablet interface too!
2022-09-05 16:14:07 -04:00
ce7854626f Introduce LauncherCore::login, which removes the wierd if-else checks
For some reason the login call sites required them to handle whether or
not the profile was Sapphire or not, which is stupid.
2022-09-05 16:05:39 -04:00
33f68c5586 Make auto-login cancel button actually functional 2022-08-31 21:31:03 -04:00
5ee036dd09 Add option to generate OTP codes automatically
* This uses the great libcotp library, I stripped it down to fit inside
the repository.
* This is a security-convenience trade-off, and it's made very clear
with the tooltips on the settings page.
* It's still secured by your system keychain, and it's up to the users
whether that's good enough for them. Eventually down the line
I would like to support more esoteric keychains such as Bitwarden or
KeePass.
* Right now it's only integrated into the auto-login desktop feature,
but there will eventually be like an "auto-fill OTP" button in the main
window.

There's still a lot to clean up with these new features but they work
a little at least :-)
2022-08-31 21:19:25 -04:00
540c8b6f80 Add relevant buttons and inputs in settings window to accept otp secret 2022-08-31 17:27:30 -04:00
d28ed71e87 Add a basic auto-login window
Soon, you'll be able to store an OTP secret with Astra :-)

Also, the cancel button is broken ATM, so you have to manually turn the
feature off in the config.
2022-08-31 17:14:54 -04:00
5a96467f14 Reformat code 2022-08-15 11:14:37 -04:00
935d5d6593 Use physis for reading game/boot versions 2022-08-09 23:18:18 -04:00
66f65784a8 Fix more leaked memory due to QObject parents not being set 2022-07-21 21:38:26 -04:00
0b9f46674f Fix crash due to bad deref 2022-07-20 11:45:29 -04:00
21e272ab66 Add placeholder tab for a new accounts interface 2022-06-09 09:51:50 -04:00
a489326fd5 Fix capitalization 2022-06-09 09:48:54 -04:00
4cd39d0431 Discern from "FFXIV for Mac" and "XIV on Mac", which are very similar
I never noticed until now, but their names are virtually identical, so
now the official one is marked properly.
2022-06-09 09:47:50 -04:00
c00c55ac87 Change all qlineedits in settings with qlabels
This makes it a whole lot easier to view and copy the text in macOS, it
never really made sense for these to be line edits in the first place
anyway.
2022-06-09 09:44:58 -04:00
55aaf7c1f6 Make tablet interface functional
Right now OTP and other stuff is missing for an actual login, but it
calls!
2022-06-08 13:55:15 -04:00
51e1bd7ac4 Rearrange source directories 2022-06-08 12:45:12 -04:00