aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/lib.rs
AgeCommit message (Collapse)Author
2023-01-13feat: Add backend code for getting playercount (#135)GeckoEidechse
* feat: Initial backend code to get the playercount from the Northstar master server together with servercount * fix: Push correct backend code * feat: Load playercount on application load and show on PlayView * refactor: Store global const in separate file Moved user agent there for now * refactor: User user agent from global const * refactor: Move masterserver URL into global const * refactor: Remove temporary variable * fix: Do proper typing for playercount return value * feat: Change text if unable to load playercount So instead of showing some wrong value, we just say that we were unable to load it. * fix: Remove leftover print statement * refactor: Move struct to library source file * fix: Remove break element * fix: Remove frontend display of playercount This allows for separate PR for adding backend code early. * refactor: serverlist endpoint var to global const
2023-01-13refactor: Bump libthermite (#133)GeckoEidechse
* chore: Bump libthermite to v0.4.0-rc.1 And update broken code in FlightCore accordingly * chore: Bump libthermite to v0.4.0 And update broken code in FlightCore accordingly * feat: Parse TS mod string using new standard Instead of reading `mod.json`, we now build Thunderstore mod string using `manifest.json` and `thunderstore_author.txt`. The old method for reading is still supported for now but will likely be replaced by a converted function in the future. See also discussion in https://github.com/0neGal/viper/issues/165
2023-01-07refactor: Store global const in separate file (#131)GeckoEidechse
Moved user agent there for now
2022-12-20feat: Alternatively check if EA App is running (#115)GeckoEidechse
2022-12-13feat: Start Northstar properly detached (#112)GeckoEidechse
Simply run cmd with `start "" "PATH/TO/NORTHSTAR_EXE"` Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>
2022-12-12feat: Expose installed NS mod directory (#109)GeckoEidechse
* feat: Expose installed NS mod directory This allows other functions to get a mod directory directly which is useful for e.g. deleting a mod. * refactor: Return vector of NorthstarMod instead of unnamed Tuples
2022-11-30refactor: Remove the "Origin running" check from frontend (#94)GeckoEidechse
* refactor: Remove Origin running check in frontend We already perform the check in the backend. Frontend does not check for OS and as such on Linux will just always tell you that Origin is not running. * feat: Show notification toast, not alert pop-up * refactor: Perform OS check before Origin check
2022-11-28style: Auto-format all Rust code (#84)GeckoEidechse
2022-11-27feat: Option to launch NS bypassing update check (#59)GeckoEidechse
* feat: Option to launch NS bypassing update check Hidden behind dev view * refactor: Use existing function to launch NS Instead of duplicating code * feat: Adjust button to allow bypassing all checks
2022-11-25refactor: Move function to dedicated module (#67)GeckoEidechse
Getting log files is part of repair and troubleshooting
2022-11-22refactor: Start moving NS related logic to own mod (#63)GeckoEidechse
2022-11-19feat: Return Thunderstore mod string of installed mods. (#56)GeckoEidechse
* refactor: Rename function to better differentiate what it does * refactor: Add TS mod string field to NS mod struct This allows us to expose to frontend which Thunderstore mod a Northstar mod may belong to. Field is optional as not all mods may contain a Thunderstore mod string for example when they were installed manually. * feat: Add TS mod string field to NS mod interace * feat: Parse TS mod string and expose to frontend * fix: Mark unused variable as such
2022-11-14refactor: Move GitHub API fetch to submodule and re-use existing function (#51)GeckoEidechse
* refactor: Import all functions from lib So that I don't need to update the header each time I add/remove a function. * refactor: Move function to submodule Move it to module for GitHub API related tasks. * refactor: Re-use existing func for fetching GH API
2022-11-13chore: Bump libthermite version to 0.3.3 (#49)GeckoEidechse
2022-11-10feat: Parse actually installed mods (#38)GeckoEidechse
* feat: Parse actually installed mods Instead of using solely `enabledmods.json` parse the `mod.json` of found mods in `mods` folder. * refactor: Remove leftover print statements * refactor: Move logic into dedicated module * fix: Load mods despite `enabledmods.json` missing Previously we would error out early if `enabledmods.json` was missing despite not actually needing it for mod list. * style: Autoformat
2022-11-07refactor: Move functions to dedicated file (#41)GeckoEidechse
Only a single function for now as a sort of proof-of-concept.
2022-11-03refactor: Rename function to better fit behaviour (#40)GeckoEidechse
2022-11-03fix: Resolve thread crash due to block in async (#39)GeckoEidechse
Set the function to async but it was still using blocking version of reqwest.
2022-11-02refactor: Return error string instead of anyhow!() (#36)GeckoEidechse
All that is returned as the error type is a string so there's no point in using a custom error type when we can just have the error type be a string. Co-authored-by: Remy Raes <contact@remyraes.com>
2022-11-02refactor: Use existing function for enabled mods (#34)GeckoEidechse
Instead of re-implementing existing logic just re-use what we already have.
2022-10-21feat: Add initial skeleton for ModsView (#27)GeckoEidechse
* feat: Backend code to get list of installed mods For now simply parses `enabledmods.json`. Note that this file will not be up-to-date if the user just installed a mod but hasn't launched Northstar yet. * feat: Empty skeleton page for ModsView Will be populated later with list of installed mods * chore: Remove leftover print statement
2022-10-20refactor: Various formatting and fixes (#23)GeckoEidechse
* refactor: Add error return type * style: Auto-format Only minor changes, did not take over all changes from auto-format. * refactor: Rename function to get FC version number To make it more clear which version number we're getting (FlightCore vs Northstar)
2022-10-20fix: Strip leading zeroes from rc version number (#24)GeckoEidechse
This is more of a hotfix, we should really just use propery regex or something better instead.
2022-10-19refactor: Use `Result<>` return type for Linux checks (#21)GeckoEidechse
* refactor: Use result return type for Linux checks * refactor: Store min required ldd version in const This way we only need to update a single variable in case min required version changes.
2022-10-19feat: Manually find game if needed (#7)Rémy Raes
* refactor: move updateGamePath method in store mutations * feat: play button allows game path update If game path was not found automatically and the user clicks the play button, FlightCore will ask him to point out his Titanfall2 installation folder. * refactor: change button text * feat: display a notification on successful game folder selection * feat: close permanent notification on successful game folder selection * fix: allow game launch with UNKNOWN install type on Windows * feat: set install type to UNKNOWN on manual folder pick * refactor: update omni-button text when game folder wasn't found
2022-10-18Add ldd --version check for Linux (#10)Salmon
2022-09-29Add ability to enable/disable modsGeckoEidechse
2022-09-28Fix path checked for enabledmods.jsonGeckoEidechse
2022-09-28Add backend logic to parse `enabledmods.json`GeckoEidechse
2022-09-23Rename functionGeckoEidechse
2022-09-23Move platform specific code into separate fileGeckoEidechse
2022-09-22Add initial functionality to get NS log filesGeckoEidechse
2022-09-22Import OS specifc libraries only on that OSGeckoEidechse
2022-09-20Periodically check if Northstar is runningGeckoEidechse
2022-09-20Move dependency import to top of fileGeckoEidechse
2022-09-16Show in UI if FlightCore out-of-dateGeckoEidechse
To show user if application is outdated should self-update somehow not work.
2022-09-14Support switching between main release and RCsGeckoEidechse
State is not saved between launches currently.
2022-09-14Add missing `to_lowercase()`GeckoEidechse
WIthout it, the Northstar package would never be found.
2022-09-14Use variable instead of hard-coded stringGeckoEidechse
2022-09-13When launching NS explicetly fail earlyGeckoEidechse
certain unsupported setup combinations
2022-09-13Auto-formatGeckoEidechse
2022-09-11Require Origin to be running to launch Northstarv0.1.0GeckoEidechse
2022-09-11Check if Origin is runningGeckoEidechse
2022-09-10Move launching Northstar to lib.rs source fileGeckoEidechse
2022-09-10Move get host OS function to lib.rsGeckoEidechse
2022-09-10Add initial back-end code for launching NorthstarGeckoEidechse
2022-09-10Add initial front-end code for launching NorthstarGeckoEidechse
2022-09-10Return GameInstall object instead of tupleGeckoEidechse
The object contains the path Titanfall2 is installed in, as well as how it was installed (Steam, Origin, EA-App)
2022-09-10Add install location detection for OriginGeckoEidechse
2022-09-10Store format string in variable before useGeckoEidechse