aboutsummaryrefslogtreecommitdiff
path: root/src/web_service/web_backend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [cmake, deps] conjure common/httplib.h and remove global def for httplib ↵lizzie2026-04-061-11/+1
| | | | | | | | | | | | | | | | macros (#3800) httplib stuff done by @crueter on #3797 + some extra stuff since the warning push/pop should be in header i fear :) Signed-off-by: lizzie <lizzie@eden-emu.dev> Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3800 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [common/logging] Simplify logging logic and fix issues when logging before ↵lizzie2026-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | system is created (#3688) - our logging code was bigger than spdlog itself, why???? just keep it simple - fix issues when logging before logging system is even started - removes the "initialized logging twice" issue - removes uneeded indirection in file logging - uses direct formatting instead of jumping hoopla-around the fmt::format() ressult - code duplication and dead code removal as usual I did explore dup2() but I think it's not worth the hassle I did try `fwopen()` but it's better if things are just kept as-is. there is a lot of noise because I removed a bunch of redundant files on logging and just put everything in one file now normally this wouldn't be a good idea, however consider: the complexity of logging; it's less than 500 lines... does it really need a whole subsystem?!?!?! ITS JUST LOGGING Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3688 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: DraVee <chimera@dravee.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [cmake] MinGW builds; fix line endings; fix weird multiplayer lobby behavior ↵crueter2025-10-261-0/+10
| | | | | | | | | | | | (#2835) MinGW builds perform pretty dramatically better than MSVC in my (brief) testing, getting 40% better FPS on my KVM than MSVC. How this will translate to the real world, who knows, but this is a really good target to have. TODO: Add this to CI, potentially replace clang-cl Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2835 Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* Update fmt to allow for v11crueter2025-04-101-1/+1
| | | Signed-off-by: swurl <swurl@swurl.xyz>
* web_backend: Fix compilationFearlessTobi2024-02-061-6/+6
|
* web_backend: Sync with Citra implementationFearlessTobi2024-02-041-19/+22
| | | | While porting https://github.com/citra-emu/citra/pull/7347, I noticed the code of yuzu was not up-to-date with the implementation from Citra.
* externals: Update cpp-httplib to latestAlexandre Bouvier2023-02-211-1/+1
|
* Show error from cpp-httplib when we don't have a response to read (report ↵Kyle Kienapfel2022-10-051-1/+2
| | | | | errors while connecting to API) (#8999) Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to b2eb10382941bef0914f4a0a4685b9033440aa9f
* web_service: Eliminate variable shadowingMorph2022-06-131-10/+10
|
* web_service: Replace lock_guard with scoped_lockMerry2022-04-071-2/+2
|
* web_service: Reduce unused includesameerj2022-03-201-1/+0
|
* web_service: Silence -Wmaybe-uninitialized on httplib.hReinUsesLisp2021-07-121-0/+10
|
* externals: httplib: replace custom httplib header with upstream as submodule.Vortex2021-06-191-1/+2
| | | | This also includes a minor change to web_service.cpp - to fix compatibility with upstream changes.
* web_service: follow-up fix to #4842 ...liushuyu2020-10-281-5/+0
| | | | | | | | | | | * The web_service http request is now fixed on Windows (R) platform. * The issue is due to a complicated race-condition in `httplib`, a detailed explanation is available at https://github.com/yhirose/cpp-httplib/pull/701 * A pending Pull Request on `httplib` has been applied to remedy the said race-condition. * The socket availability check is removed due to a behavioral chice of `httplib` that a socket will not be created before any actual request is sent.
* web_service: web_backend: Handle socket errors with GenericRequest.bunnei2020-10-281-0/+11
| | | | - Fixes a shutdown crash when we try to submit telemetry if there is a service issue.
* web_backend: fix a regression introduced in 16de0a6liushuyu2020-10-271-19/+1
| | | | | | | | | | | | | | | | * A regression was in 16de0a6 and token verification function was broken. * The reason being `httplib` now requires OpenSSL 1.1+ API while LibreSSL 2.x provided OpenSSL 1.0 compatible API. * The bundled LibreSSL has been updated to 3.2.2 so it now provides OpenSSL 1.1 compatible API now. * Also the path hint has been added so that it will find the correct path to the CA certs on *nix systems. * An option is provided so that *nix system distributions/providers can use their own SSL implementations when compiling Yuzu/Citra to (hopefully) complies with their maintenance guidelines. * LURLParse is also removed since `httplib` can handle `scheme:host:port` string itself now.
* core/CMakeLists: Make some warnings errorsLioncash2020-10-131-9/+6
| | | | | | | | | Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
* web_service: Move web_result.h into web_serviceLioncash2020-08-221-29/+27
| | | | | | | This is the only place it's actively used. It's also more appropriate for web-related structures to be within the web service target. Especially given this one doesn't rely on anything in the common library.
* CMakeLists: Specify -Wextra on linux buildsLioncash2020-04-151-7/+7
| | | | | | | | | | | Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
* httplib compatibilityBrian Clinkenbeard2020-02-181-4/+3
|
* web-service: Port citra's updated web_backend code.bunnei2019-11-091-18/+34
|
* general: Use deducation guides for std::lock_guard and std::unique_lockLioncash2019-04-011-2/+2
| | | | | | | Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
* web_service: Remove unnecessary inclusionsLioncash2019-03-021-1/+0
| | | | | | | Reduces the potential amount of rebuilding necessary if any headers change. In particular, we were including a header from the core library when we don't even link the core library to the web_service library, so this also gets rid of an indirect dependency.
* web_backend: Make Client use the PImpl idiomLioncash2018-10-101-94/+141
| | | | | | Like with TelemetryJson, we can make the implementation details private and avoid the need to expose httplib to external libraries that need to use the Client class.
* Review comments -part 4fearlessTobi2018-10-021-2/+2
|
* web_backend: protect jwt cache with a mutexWeiyi Wang2018-10-021-0/+2
|
* Address a bunch of review commentsfearlessTobi2018-10-021-4/+4
|
* Port web_service from CitrafearlessTobi2018-10-021-0/+147
|
* Massive removal of unused modulesJames Rowe2018-01-121-140/+0
|
* WebService: Verify username and token (#2930)B3n302017-09-181-12/+89
| | | | | | | | | | * WebService: Verify username and token; Log errors in PostJson * Fixup: added docstrings to the functions * Webservice: Added Icons to the verification, imrpved error detection in cpr, fixup nits * fixup: fmt warning
* web_backend: Fix CPR bug where Winsock is not properly initializing.bunnei2017-08-261-15/+27
|
* web_backend: Fix asynchronous JSON post by spawning new thread.bunnei2017-08-251-9/+18
|
* web_services: Refactor to remove dependency on Core.bunnei2017-08-251-15/+16
|
* web_backend: User config for username and token, support anonymous post.bunnei2017-08-251-28/+17
|
* web_backend: Specify api-version on JSON post.bunnei2017-07-111-1/+3
|
* web_backend: Add initial interface to POST data to Citra Web Services.bunnei2017-07-111-0/+41
|
* web_service: Add skeleton project.bunnei2017-07-101-0/+9