Skip to content
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

Fixes admin template uploads #4768

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

francinum
Copy link
Contributor

Why It's Good For The Game

fix bug

Changelog

🆑
admin: Custom map template uploads should now work properly.
/:cl:

If an empty string (rustg null) is returned after loading, loading will be attempted again with native handling
tfile = rustg_file_read(tfile)
//This is hacky garbage
if(tfile == "") //Might be an upload, try raw loading it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use isfile

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait wha how does that first not work this is dodgy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It reads file and checks if it's empty

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

Successfully merging this pull request may close these issues.

4 participants