diff options
| author | Joakim Hentula <joakim.hentula@gmail.com> | 2022-08-10 13:58:33 +0100 |
|---|---|---|
| committer | Joakim Hentula <joakim.hentula@gmail.com> | 2022-08-10 14:03:04 +0100 |
| commit | 28f440dd9e9e9674738b243d284a4394b22a5bc4 (patch) | |
| tree | 26bdac6e01411978e9374d59a596383e5bb2bade /src/main.cpp | |
| parent | 84f9fb706b90d97e7e52819af8388f64e38970e3 (diff) | |
Do not remove .rc extension from resource path to prevent expansion to full path assuming it's a directory if a folder with the same name exists in the same folder as the resource file
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7fa04cc37..ef1b8dda1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1562,7 +1562,7 @@ bool parse_build_flags(Array<String> args) { bad_flags = true; break; } - build_context.resource_filepath = substring(path, 0, string_extension_position(path)); + build_context.resource_filepath = path; build_context.has_resource = true; } else { gb_printf_err("Invalid -resource path, got %.*s\n", LIT(path)); |