Blinue / Magpie

An all-purpose window upscaler for Windows 10/11.
GNU General Public License v3.0
9.69k stars 496 forks source link

Fix generation of effect source files in subdirectories #814

Closed hauuau closed 10 months ago

hauuau commented 10 months ago

This pull request should fix saving of intermediate effect source files when the effect file is stored in a subdirectory.

Without this patch enabling "Save source code when parsing effects" results in an error like this |error|Win32Utils.cpp:bool __cdecl Win32Utils::WriteFile(const wchar_t *,const void *,unsigned __int64) noexcept|打开文件 sources\**\*.hlsl 失败 in the log when the effect is not stored in the root of the Effects directory tree.

Blinue commented 10 months ago

I've tested it locally and the patch works fine. Thank you!

Blinue commented 10 months ago

@all-contributors

Please add @hauuau for code.

allcontributors[bot] commented 10 months ago

@Blinue

I've put up a pull request to add @hauuau! :tada: