-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies. Fix black screen when both slang_shader and slan…
…g_shader_3d are set. Added readme and license.
- Loading branch information
Showing
5 changed files
with
134 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 jsdeck | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Mega Man X Legacy Collection `d3d10.dll` wrapper mod | ||
|
||
Features: | ||
|
||
- Let you use [slang-shaders](https://github.com/libretro/slang-shaders) with Capcom's Mega Man X Legacy Collection. | ||
- Fixes scaling artifact due to nearest-neighbour upscaling. | ||
|
||
## Building from source | ||
|
||
Using i686-w64-mingw32-gcc (cross compiling should work too): | ||
|
||
```bash | ||
# Download source | ||
git clone https://github.com/xzn/d3d10-mmxlc.git | ||
cd d3d10-mmxlc | ||
git submodule update --init --recursive | ||
|
||
# Create symlinks and patch files | ||
make prep | ||
|
||
# Build the dll | ||
make -j$(nproc) dll | ||
``` | ||
|
||
Some options to pass to make | ||
|
||
```bash | ||
# disable optimizations and prevents stripping | ||
make o3=0 dll | ||
|
||
# disable lto (keep -O3) | ||
make lto=0 dll | ||
``` | ||
|
||
## Install | ||
|
||
Copy `dinput8.dll`, `interp-mod.ini`, and the `slang-shaders\` directory to your game folders, e.g.: | ||
|
||
`SteamLibrary\steamapps\common\Mega Man X Legacy Collection` | ||
`SteamLibrary\steamapps\common\Mega Man X Legacy Collection 2` | ||
|
||
## Configuration | ||
|
||
`interp-mod.ini` contains options to configure the mod. | ||
|
||
```ini | ||
; Log API calls to interp-mod.log, | ||
; Should be left disabled. Really slow and for the most part isn't useful for debugging. | ||
; [logging] | ||
; enabled=true | ||
; hotkey_toggle=VK_CONTROL+O | ||
; hotkey_frame=VK_CONTROL+P | ||
|
||
; Change interpolation mode and set up custom shaders. | ||
[graphics] | ||
; Recommended, even if slang-shader is not used. | ||
; Get rid of nearest-neighbour upscaling artifact. | ||
interp=true | ||
; Not recommended, very slow. | ||
; When using Type 1 filter, run the default 2x upscale shader multiple times until it covers the size of the screen. | ||
; enhanced=true | ||
; Set up custom shader for X1~X6, and 3d shader for X7~X8. Need Type 1 filter to be set in-game. | ||
slang_shader=slang-shaders/xbr/xbr-lv2.slangp | ||
slang_shader_3d=slang-shaders/anti-aliasing/fxaa.slangp | ||
; Currently broken, couldn't figure out how to get this to work yet. Do not use. | ||
; render_3d_width= | ||
; render_3d_height= | ||
; display_width= | ||
; display_height= | ||
``` | ||
|
||
If all goes well you should now be able to start the game and see the overlay on top-left of the screen showing the status of the mod. | ||
|
||
`interp-mod.ini` can be edited and have its options applied while the game is running. | ||
|
||
## License | ||
|
||
Source code for this mod, without its dependencies, is available under MIT. Dependencies such as `RetroArch` are released under GPL. | ||
|
||
- `RetroArch` is needed only for `slang_shader` support. | ||
- `SPIRV-Cross` and `glslang` are used for `slang_shader` support. | ||
- `HLSLcc` is used for debugging. | ||
|
||
Other dependencies are more or less required: | ||
|
||
- `minhook` is used for intercepting calls to `d3d10.dll`. | ||
- `imgui` is used for overlay display. | ||
- `smhasher` is technically optional. Currently used for identifying the built-in Type 1 filter shader. |
Submodule RetroArch
updated
10 files
+7 −11 | Makefile.wiiu | |
+23 −24 | audio/drivers/dsound.c | |
+292 −1 | core_info.c | |
+7 −0 | core_info.h | |
+7 −3 | intl/msg_hash_ja.h | |
+8 −0 | intl/msg_hash_us.h | |
+5 −5 | libretro-common/cdrom/cdrom.c | |
+12 −0 | menu/menu_displaylist.c | |
+2 −0 | msg_hash.h | |
+25 −1 | tasks/task_content.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters