summaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
AgeCommit message (Collapse)Author
2019-06-03yuzu/bootmanager: Log out screenshot destination pathLioncash
We can make this message more meaningful by indicating the location the screenshot has been saved to. We can also log out whenever a screenshot could not be saved (e.g. due to filesystem permissions or some other reason).
2019-06-03yuzu/bootmanager: Treat the resolution factor as a u32Lioncash
Treating it as a u16 can result in a sign-conversion warning when performing arithmetic with it, as u16 promotes to an int when aritmetic is performed on it, not unsigned int. This also makes the interface more uniform, as the layout interface now operates on u32 across the board.
2019-06-03yuzu/bootmanager: Default EmuThread's destructor in the cpp fileLioncash
This class contains non-trivial members, so we should default the destructor's definition within the cpp file.
2019-06-03yuzu/bootmanager: unsigned -> u32Lioncash
Same thing (for platforms we support), less reading.
2019-06-03yuzu/bootmanager: Change false literal to 0 for setSwapInterval()Lioncash
This function is defined as taking an int, not a bool.
2019-06-03yuzu/bootmanager: Remove pointer downcast in GRenderWindow's constructorLioncash
We can just pass a pointer to GMainWindow directly and make it a requirement of the interface. This makes the interface a little safer, since this would technically otherwise allow any random QWidget to be the parent of a render window, downcasting it to GMainWindow (which is undefined behavior).
2019-06-03yuzu/bootmanager: Remove unnecessary pointer castsLioncash
We can just invoke these functions by qualifying the object name before the function.
2019-05-30rasterizer_opengl: Remove OpenGL core profileReinUsesLisp
2019-05-29Merge pull request #2518 from ReinUsesLisp/sdl2-windowbunnei
yuzu_cmd: Split emu_window OpenGL implementation into its own file
2019-05-26emu_window: Pass OnMinimalClientAreaChangeRequest argument by copyReinUsesLisp
There's no performance improvement in passing an unsigned pair by reference.
2019-05-20gl_shader_cache: Use shared contexts to build shaders in parallelReinUsesLisp
2019-05-20yuzu/bootmanager: Specify string conversions explicitlyLioncash
Allows the bootmanager code to compile with implicit string conversions disabled.
2019-05-17yuzu/bootmanager: Explicitly enable deprecated OpenGL features on compatReinUsesLisp
Nvidia's proprietary driver creates a real OpenGL compatibility profile without this option, meanwhile Intel (and probably AMD, I haven't tested it) require that QSurfaceFormat::FormatOption::DeprecatedFunctions is explicitly enabled.
2019-04-20Allow picking a Compatibility Profile for OpenGL.Fernando Sahmkow
This option allows picking the compatibility profile since a lot of bugs are fixed in it. We devs will use this option to easierly debug current problems in our Core implementation.:wq
2019-04-17yuzu/bootmanager: Replace unnnecessary constructor initializer list member ↵Lioncash
of GGLContext The default constructor will always run, even when not specified, so this is redundant. However, the context member can indeed be initialized in the constructor initializer list.
2019-04-16yuzu/bootmanager: Resolve constructor initializer list warningsLioncash
Resolves -Wreorder warnings. These will automatically be initialized to nullptr anyways, so these were redundant.
2019-04-13Merge pull request #2017 from jroweboy/glwidgetbunnei
Frontend: Migrate to QOpenGLWindow and support shared contexts
2019-04-01general: Use deducation guides for std::lock_guard and std::unique_lockLioncash
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.
2019-03-25bootmanager: Bypass input focus issuesReinUsesLisp
2019-03-25bootmanager: Bypass resizing issueReinUsesLisp
2019-03-25bootmanager: Delete container to avoid crash on game restartingReinUsesLisp
While we are at it, remove nullptr checks for deletion, since the C++ standard defines that delete does it by its own
2019-03-15frontend: qt: fix a freeze where if you click on entry in the game list too ↵liushuyu
fast, citra will hang
2019-03-13Merge pull request #2187 from FearlessTobi/port-sdl-thingsbunnei
Port various Citra changes to input_common, including deadzone support
2019-03-06bootmanager: Ensure that we have a context for shader loading.bunnei
2019-03-02Input: Remove global variables from SDL InputJames Rowe
Changes the interface as well to remove any unique methods that frontends needed to call such as StartJoystickEventHandler by conditionally starting the polling thread only if the frontend hasn't started it already. Additionally, moves all global state into a single SDLState class in order to guarantee that the destructors are called in the proper order
2019-02-06gl_shader_cache: Link loading screen with disk shader cache loadReinUsesLisp
2019-01-21QT: Hide GLWidget immediately after showing.James Rowe
With the loading screen merged, we don't want to actually show at this point, but it still needs to be shown to actually create the context. Turns out you can just show and hide it immediately and it'll work.
2019-01-21QT Frontend: Migrate to QOpenGLWindowJames Rowe
2019-01-19QT Frontend: Add a Loading screen with progressbarJames Rowe
With shader caches on the horizon, one requirement is to provide visible feedback for the progress. The shader cache reportedly takes several minutes to load for large caches that were invalidated, and as such we should provide a loading screen with progress. Adds a loading screen widget that will be shown until the first frame of the game is swapped. This was chosen in case shader caches are not being used, several games still take more than a few seconds to launch and could benefit from a loading screen.
2018-12-18yuzu, video_core: Screenshot functionalityzhupengfei
Allows capturing screenshot at the current internal resolution (native for software renderer), but a setting is available to capture it in other resolutions. The screenshot is saved to a single PNG in the current layout.
2018-11-21Update OpenGL's backend version from 3.3 to 4.3FernandoS27
2018-10-24bootmanager: Use QStringLiteral instead of std::string to represent the ↵Lioncash
window title This gets rid of an unnecessary type conversion. We can just use the regular QStringLiteral to already format the string as the type setWindowTitle accepts instead of converting from a std::string instance.
2018-10-09implemented touch in Qt and SDLNeatNit
change TouchToPixelPos to return std::pair<int, int> static_cast (SDL) various minor style and code improvements style - PascalCase for function names made touch events private const pointer arg in touch events make TouchToPixelPos a const member function did I do this right? braces on barely-multiline if remove question comment (confirmed in Discord) fixed consts remove unused parameter from TouchEndEvent DRY - High-DPI scaled touch put in separate function also fixes a bug where if you start touching (with either mouse or touchscreen) and drag the mouse to the LEFT of the emulator window, the touch point jumps to the RIGHT side of the touchscreen; draggin to above the window would make it jump to the bottom. implicit conversion from QPoint to QPointF, apparently I have no idea what const even means but I'll put it here anyway remove unused or used-once variables make touch scaling functions const, and put their implementations together removed unused FingerID parameters QTouchEvent forward declaration; add comment to TouchBegin that was lost in an edit better DRY in SDL To do -> TODO(NeatNit) remove unused include
2018-09-10Port #4141 from citra: Joystick hotplug support (#1275)Tobias
* Joystick hotplug support (#4141) * use SDL_PollEvent instead of SDL_JoystickUpdate Register hot plugged controller by GUID if they were configured in a previous session * Move SDL_PollEvent into its own thread * Don't store SDLJoystick pointer in Input Device; Get pointer on each GetStatus call * Fix that joystick_list gets cleared after SDL_Quit * Add VirtualJoystick for InputDevices thats never nullptr * fixup! Add VirtualJoystick for InputDevices thats never nullptr * fixup! fixup! Add VirtualJoystick for InputDevices thats never nullptr * Remove SDL_GameController, make SDL_Joystick* unique_ptr * fixup! Remove SDL_GameController, make SDL_Joystick* unique_ptr * Adressed feedback; fixed handling of same guid reconnects * fixup! Adressed feedback; fixed handling of same guid reconnects * merge the two joystick_lists into one * make SDLJoystick a member of VirtualJoystick * fixup! make SDLJoystick a member of VirtualJoystick * fixup! make SDLJoystick a member of VirtualJoystick * fixup! fixup! make SDLJoystick a member of VirtualJoystick * SDLJoystick: Addressed review comments * Address one missed review comment
2018-09-06frontend: Set swap interval to 0fearlessTobi
2018-07-14OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering.bunnei
2018-07-07Port #3505 from CItrafearlessTobi
2018-04-29string_util: Remove StringFromFormat() and related functionsLioncash
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
2018-01-18qt: Migrate to Qt 5 signal/slot connection syntax where applicableLioncash
2018-01-17bootmanager: Minor tidiness/correctness changesLioncash
Moved over from #3266 in citra.
2018-01-17 Implement Pull #3306 from citra: citra_qt: Drop Qt 5 version checks in code ↵N00byKing
(#41) * Update bootmanager.cpp * This *should* fix the clang error
2018-01-16Implement Pull #3333 from citra: citra_qt: Pause emulation on CoreError (#39)N00byKing
2018-01-12Removing unused settings and yuzu rebrandingJames Rowe
2018-01-12Remove gpu debugger and get yuzu qt to compileJames Rowe
2018-01-12Massive removal of unused modulesJames Rowe