aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-08-10 15:22:09 +0200
committerGitHub <noreply@github.com>2022-08-10 15:22:09 +0200
commit4ee50c5a35310eb48f0d6adf6a5c803fe044356e (patch)
tree26bdac6e01411978e9374d59a596383e5bb2bade /src/main.cpp
parent84f9fb706b90d97e7e52819af8388f64e38970e3 (diff)
parent28f440dd9e9e9674738b243d284a4394b22a5bc4 (diff)
Merge pull request #1941 from jockus/fix-rc-missing-extension
Do not remove .rc extension from resource path to prevent expansion t…
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
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));