mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
fix for using .rc files
This commit is contained in:
@@ -1822,6 +1822,7 @@ gb_internal bool init_build_paths(String init_filename) {
|
|||||||
if (bc->resource_filepath.len > 0) {
|
if (bc->resource_filepath.len > 0) {
|
||||||
bc->build_paths[BuildPath_RES] = path_from_string(ha, bc->resource_filepath);
|
bc->build_paths[BuildPath_RES] = path_from_string(ha, bc->resource_filepath);
|
||||||
if (!string_ends_with(bc->resource_filepath, str_lit(".res"))) {
|
if (!string_ends_with(bc->resource_filepath, str_lit(".res"))) {
|
||||||
|
bc->build_paths[BuildPath_RES].ext = copy_string(ha, STR_LIT("res"));
|
||||||
bc->build_paths[BuildPath_RC] = path_from_string(ha, bc->resource_filepath);
|
bc->build_paths[BuildPath_RC] = path_from_string(ha, bc->resource_filepath);
|
||||||
bc->build_paths[BuildPath_RC].ext = copy_string(ha, STR_LIT("rc"));
|
bc->build_paths[BuildPath_RC].ext = copy_string(ha, STR_LIT("rc"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user