Lioncash
5b4f92ca79
yuzu/CMakeLists: Disable implicit type narrowing in connect() calls
Prevents hard-to-diagnose bugs from potentially occurring and requires
any type narrowing to be explicitly performed by our code.
7 years ago
Lioncash
5bcab18c77
yuzu/configuration: Make function naming consistent
7 years ago
Lioncash
c23f162111
kernel/process: Remove unused boost header include
Boost headers typically include a lot of other headers, so removing this
can prevent a bit of unnecessary compiler churn when building.
7 years ago
Zach Hilman
5f6dba8ece
game_list: Accept *.kip as a file extension of executables
7 years ago
Zach Hilman
fd67e22b25
loader: Add recognition for KIP file type
7 years ago
Zach Hilman
ef42e591df
loader: Add KIP and INI file parser-specific errors
7 years ago
Zach Hilman
6fb2fa51eb
loader: Add AppLoader_KIP for KIP files
7 years ago
Zach Hilman
04a69eb6c7
program_metadata: Add function to load meta from raw parameters
Needed for KIP loading as KIPs do not have an NPDM but do have the essential parts of the data within.
7 years ago
Zach Hilman
8662c6d579
partition_data_manager: Remove KIP processing and use FileSys
Previously, this TU contained the necessary headers to parse KIP/INI but now it should just use the FileSys class.
7 years ago
Zach Hilman
48bb330ad1
file_sys: Add classes to parse KIP1 and INI1 files
7 years ago
Lioncash
debd00b300
core/core_timing_util: Amend casing of cyclesTo* functions
Makes the casing consistent with all of our general function naming
conventions.
7 years ago
Lioncash
97882b84a8
core/core_timing_util: Use std::chrono types for specifying time units
Makes the interface more type-safe and consistent in terms of return
values.
7 years ago
Lioncash
c5d6bd7f15
core/core_timing_utils: Simplify overload set
Removes unused overloads, simplifying the overall interface,
deduplicating some code.
7 years ago
Fernando Sahmkow
a8250f511b
shader_bytecode: Mark EXIT as flow instruction
7 years ago
Lioncash
c10e37ddbf
input_common/sdl/sdl_impl: Correct logging string in SDLState constructor
If this path was ever taken, a runtime exception would occur due to the
lack of a formatting specifier to insert the error code into the format
string.
7 years ago
Lioncash
f7b6090635
input_common/sdl/sdl_impl: Move documentation comments to header where applicable
Places the documentation comments with the rest of SDLState's member
function documentation.
7 years ago
Lioncash
ac88c3d84d
input_common/sdl/sdl_impl: Amend names for axes for SDLAnalogPoller
Adds another underscore to clearly indicate the axis names.
7 years ago
Lioncash
4124d77186
input_common/sdl/sdl_impl: Mark variables const where applicable
Make it explicit that these aren't modified elsewhere (either through
functions by reference, or by other operations).
7 years ago
Lioncash
5b89bf78b8
input_common/sdl/sdl_impl: Mark SDLEventToButtonParamPackage() as static
Its prototype declared at the top of the translation unit contains the
static qualifier, so the function itself should also contain it to make
it a proper internally linked function.
7 years ago
Lioncash
f0a45d70a8
input_common/sdl/sdl_impl: Convert reinterpret_cast into a static_cast
It's valid to static_cast a void pointer back into its proper type.
7 years ago
Lioncash
ed90a754c5
input_common/sdl/sdl_impl: Use insert_or_assign() where applicable
Same behavior, but without a potential need to unnecessarily default
construct a value.
7 years ago
Lioncash
f51bbb791d
input_common/sdl/sdl_impl: Simplify SDL_Joystick deleter handling
The deleter can just be set in the constructor and maintained throughout
the lifetime of the object.
If a contained pointer is null, then the deleter won't execute, so this
is safe to do. We don't need to swap it out with a version of a deleter
that does nothing.
7 years ago
Lioncash
14fb03b99b
input_common/sdl/sdl_impl: Resolve two sign conversion warnings
Silences the final two warnings in SDL code.
7 years ago
Lioncash
24f0967a65
input_common/sdl: Remove unused header includes and forward declarations
Gets rid of a few unnecessary inclusion dependencies. It also uncovered
a few indirect inclusion dependencies being relied upon.
7 years ago
Lioncash
5438937cee
input_common/sdl/sdl_impl: Use nested namespace specifiers where applicable
7 years ago
Lioncash
e1a9cc2889
yuzu/bootmanager: Log out screenshot destination path
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).
7 years ago
Lioncash
564f80d4fd
yuzu/bootmanager: Treat the resolution factor as a u32
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.
7 years ago
Lioncash
c0600099bd
yuzu/bootmanager: Default EmuThread's destructor in the cpp file
This class contains non-trivial members, so we should default the
destructor's definition within the cpp file.
7 years ago
Lioncash
982ebbb022
yuzu/bootmanager: unsigned -> u32
Same thing (for platforms we support), less reading.
7 years ago
Lioncash
0cbdedd429
yuzu/bootmanager: Change false literal to 0 for setSwapInterval()
This function is defined as taking an int, not a bool.
7 years ago
Lioncash
8d120b9121
yuzu/bootmanager: Remove pointer downcast in GRenderWindow's constructor
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).
7 years ago
Lioncash
531072e387
yuzu/bootmanager: Remove unnecessary pointer casts
We can just invoke these functions by qualifying the object name before
the function.
7 years ago
ReinUsesLisp
ebbc9d3ee1
gl_shader_decompiler: Remove guest "position" varying
"position" was being written but not read anywhere besides geometry
shaders, where it had the same value as gl_Position.
This commit replaces "position" with gl_Position, reducing the
complexity of our code and the emitted GLSL code.
7 years ago
Lioncash
cbbf86ba97
input_common/sdl/sdl_impl: Silence sign conversion warnings
Makes the conversions explicit, as opposed to implicit.
7 years ago
Lioncash
f2551410bf
common/math_util: Provide a template deduction guide for Common::Rectangle
Allows for things such as:
auto rect = Common::Rectangle{0, 0, 0, 0};
as opposed to being required to explicitly write out the underlying
type, such as:
auto rect = Common::Rectangle<int>{0, 0, 0, 0};
The only requirement for the deduction is that all constructor arguments
be the same type.
7 years ago
Lioncash
a1874b586a
game_list_worker: Use QFile over our own IOFile instance or std streams
Stays consistent in our code with using Qt's provided mechanisms, and
also properly handles Unicode paths (which file streams on Windows don't
do very well).
7 years ago
Lioncash
7e7505d5a0
game_list_worker: Remove template specializations
This is equivalent to specifying two separate functions, so we can just
do that.
7 years ago
ReinUsesLisp
ca5758de77
gl_shader_cache: Store a system class and drop global accessors
7 years ago
ReinUsesLisp
07e1a695c8
gl_shader_cache: Add commentaries explaining the intention in shaders creation
7 years ago
ReinUsesLisp
165b4307ea
gl_shader_cache: Flip if condition in GetStageProgram to reduce indentation
7 years ago
ReinUsesLisp
1423e5d59d
gl_buffer_cache: Remove unused ReserveMemory method
7 years ago
ReinUsesLisp
3466bf45e8
maxwell_to_gl: Use GL_CLAMP to emulate Clamp wrap mode
7 years ago
ReinUsesLisp
af55acef7b
gl_rasterizer: Move alpha testing to the OpenGL pipeline
Removes the alpha testing code from each fragment shader invocation.
7 years ago
ReinUsesLisp
8bd24371a3
gl_rasterizer: Use GL_QUADS to emulate quads rendering
7 years ago
ReinUsesLisp
b70a0ec46d
rasterizer_opengl: Remove OpenGL core profile
7 years ago
Zach Hilman
99e5ba2e98
main: Remove extraneous comment
7 years ago
ReinUsesLisp
0d80feda2d
qt: Silence name collision warnings
7 years ago
fearlessTobi
5dc330f1ef
yuzu: Remove unused birthday setting
Fixes #2522 .
7 years ago
Lioncash
a4d4b67322
yuzu/software_keyboard: Remove unnecessary GetStatus() member function
Like with the profile selection dialog, we can just use the result of
QDialog's exec() function to determine whether or not a dialog was
accepted.
7 years ago
Lioncash
5cf1aab5a8
profile_select: Remove unnecessary GetStatus() member function
This behavior is already provided by the built-in exec() function. We
just need to check the return value of it.
7 years ago