Zach Hilman
4cbef33915
core: Port core to VfsFilesystem for file access
8 years ago
Zach Hilman
4f44293e63
vfs: Add unreachable assert to file permissions converter
8 years ago
Zach Hilman
6b97b22716
vfs: Add RealVfsFilesystem implementation
8 years ago
Zach Hilman
944f8b80d8
file_util: Add platform-specific slash option to SanitizePath
8 years ago
Zach Hilman
325a55bb1e
vfs: Add VfsFilesystem interface and default implementation
8 years ago
Zach Hilman
653257de93
filesystem: Remove unnecessary if conditions
8 years ago
bunnei
6978915f4e
gl_rasterizer: Do not render when no render target is configured.
- Used by Super Mario Odyssey.
8 years ago
Lioncash
4cfe9fad75
fsp_srv: Use std::string_view's copy() function instead of strncpy()
Given elements inserted into a vector are zeroed out, we can just copy
MAX_LEN - 1 elements and the data will already be properly null
terminated.
8 years ago
Lioncash
a1320c53af
fsp_srv: Emplace entries first when building index instead of emplacing last
The current way were doing it would require copying a 768 character
buffer (part of the Entry struct) to the new element in the vector.
Given it's a plain array, std::move won't eliminate that.
Instead, we can emplace an instance directly into the destination buffer
and then fill it out, avoiding the need to perform any unnecessary
copies.
Given this is done in a loop, we can request the destination to allocate
all of the necessary memory ahead of time, avoiding the need to
potentially keep reallocating over and over on every few insertions into
the vector.
8 years ago
Lioncash
5415ccb7da
common/logging: Add missing service log categories
These weren't added when the services were introduced.
8 years ago
Lioncash
18cd5b3930
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
8 years ago
Lioncash
2fe76428c5
common/color: Get rid of undefined behavior
Gets rid of type punning via reinterpret_cast within functions. Instead,
we use memcpy to transfer the contents across types.
8 years ago
Lioncash
e3444cb2a6
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
8 years ago
mailwl
89cc070fcf
Service/Account: stub LoadImage function
8 years ago
bunnei
1e66ac1103
gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.
- Used by Super Mario Odyssey.
8 years ago
mailwl
219c0dabe1
hid: fix IsSixAxisSensorAtRest() response
8 years ago
bunnei
37e2165d82
gl_shader_decompiler: Stub input attribute Unknown_63.
8 years ago
bunnei
89b9893d28
maxwell_3d: Use correct const buffer size and check bounds.
- Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX.
8 years ago
bunnei
a23331808d
renderer_opengl: Use trace log in a few places.
8 years ago
bunnei
be0642cb94
maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.
8 years ago
bunnei
e0f48e4daf
nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
8 years ago
bunnei
5381a038ca
gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.
- Used by Super Mario Odyssey.
8 years ago
bunnei
3ee2d948a2
gl_shader_decompiler: Let OpenGL interpret floats.
- Accuracy is lost in translation to string, e.g. with NaN.
- Needed for Super Mario Odyssey.
8 years ago
bunnei
5851753d2a
am: Stub SetScreenShotImageOrientation.
- Used by Super Mario Odyssey.
8 years ago
Lioncash
3266d0989f
acc: Add missing function table entries for GetUserCount
Given this is stubbed within the common module in
5ac7b84, it should be added to the other relevant tables as well.
8 years ago
bunnei
a0c94e433d
acc: Stub GetUserCount. ( #973 )
- Used by Pokken Tournament DX.
8 years ago
Lioncash
e8824d065b
nvdrv: Get rid of global std::weak_ptr
Rather than use global state, we can simply pass the instance into the
NVFlinger instance directly.
8 years ago
Lioncash
9e90145916
vector_math: Remove unimplemented function prototypes
8 years ago
Lioncash
3868198de6
vector_math: Make functions constexpr where applicable
8 years ago
Lioncash
1393309653
vector_math: Convert typedefs to type aliases
8 years ago
Lioncash
6b1e9244c0
common: Convert type traits templates over to variable template versions where applicable
Uses the C++17 inline variable variants
8 years ago
Lioncash
fdde0c66db
hle: Remove unused romfs.cpp/.h
These files are no longer used, so we can get rid of them.
8 years ago
Lioncash
a7798e834a
externals: Update catch to 2.3.0
Updates the library from 2.2.3 to 2.3.0
8 years ago
Hexagon12
81fdfc4192
Fixed the sRGB pixel format ( #963 )
* Changed the sRGB pixel format return
* Add a message about SRGBA -> RGBA conversion
8 years ago
Zach Hilman
0ddf082be2
configure_gamelist: Use explicit QVariant constructor
8 years ago
Lioncash
30c608d046
file_util: Avoid sign-conversions in WriteArray() and ReadArray()
Prevents compiler warnings.
8 years ago
Hexagon12
d87674e755
Lowered down the logging for methods
8 years ago
Zach Hilman
9aa2bfc60c
loader: Fix scope error in DeconstructedRomDirectory
8 years ago
Lioncash
a3f5289038
service/apm: Add the apm:sys service
Adds the basic skeleton of the apm:sys service based off the information
on Switch Brew.
8 years ago
Lioncash
64e8d3fd3d
nvflinger: Correct typo in name of composition event
8 years ago
Lioncash
e1625fdbec
nvdrv: Make Ioctl()'s definition match its prototype
The only reason this wasn't a compilation error is because we use
little-endian systems.
8 years ago
Lioncash
5bdcce6955
nvdrv: Get rid of indirect inclusions
8 years ago
Lioncash
fd0111572b
nvflinger: Get rid of indirect inclusions
8 years ago
Lioncash
a907041218
nvflinger: Use std::string_view in OpenDisplay()
We don't need to use a std::string here, given all that's done is
comparing the character sequence against another. This allows passing
regular const char* without needing to heap allocate.
8 years ago
KAMiKAZOW
fef6c33e77
Make building cubeb optional
8 years ago
Lioncash
20f059acef
services/hid: Add ActivateNpadWithRevision() to the hid function info array
Updated based off the information on Switch Brew.
8 years ago
Lioncash
0c0bdb7d9e
service/time: Amend command IDs of ToPosixTime() and ToPosixTimeWithMyRule()
Updates the ID of these based off the information on Switch Brew.
8 years ago
Lioncash
705c5b6166
service: Add usb services
Adds basic skeleton for the usb services based off the information provided by Switch Brew.
8 years ago
Lioncash
ee8808c6a7
qt/hotkey: Get rid of global hotkey map instance
Instead, we make a proper registry class and house it within the main
window, then pass it to whatever needs access to the loaded hotkeys.
This way, we avoid a global variable, and don't need to initialize a
std::map instance before the program can do anything.
8 years ago
Zach Hilman
d53b3a13b3
loader: Add icon and title support to XCI
8 years ago