Skip to content

Remove path when checking IWAD name#850

Open
andrikpowell wants to merge 1 commit intokraflab:masterfrom
andrikpowell:dsda-iwad-name-fix
Open

Remove path when checking IWAD name#850
andrikpowell wants to merge 1 commit intokraflab:masterfrom
andrikpowell:dsda-iwad-name-fix

Conversation

@andrikpowell
Copy link
Copy Markdown
Contributor

@andrikpowell andrikpowell commented Feb 20, 2026

  • Fixes stuff like paintitdoom.wad

Let me know if I missed something, I used the directory format from HasTrailingSlash(), but I'm a bit unfamiliar with how Linux/Mac paths work.

- Fixes stuff like paintitdoom.wad
@fabiangreffrath
Copy link
Copy Markdown
Collaborator

You may want to have a look at M_BaseName() in Woof:

https://github.com/fabiangreffrath/woof/blob/d632b50becb2d1977a130a5afeb54699ed8e5963/src/m_misc.c#L219-L243

@andrikpowell
Copy link
Copy Markdown
Contributor Author

You may want to have a look at M_BaseName() in Woof:

https://github.com/fabiangreffrath/woof/blob/d632b50becb2d1977a130a5afeb54699ed8e5963/src/m_misc.c#L219-L243

Thanks, my version was pretty similar... I noticed that you just allow :, while DSDA's HasTrailingSlash currently only allows that for AMIGA...

Should we gate the : only for AMIGA? (like in HasTrailingSlash)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants