-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load extras.wad before IWAD #2078
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,17 @@ static void AddDirs(w_module_t *module, w_handle_t handle, const char *base) | |
} | ||
} | ||
|
||
boolean W_ExtrasWad(const char *path) | ||
{ | ||
w_handle_t handle = {0}; | ||
if (w_file_module.Open(path, &handle) == W_FILE) | ||
{ | ||
array_clear(wadfiles); // don't register it before IWAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This screams "bug!" all over the place. I don't even understand what happens here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The actual lump table is in In |
||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
boolean W_AddPath(const char *path) | ||
{ | ||
static int priority; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to
free()
this after use?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 7c7d285