Skip to content

Some resources cleanup#267

Merged
Vogtinator merged 3 commits into
ndless-nspire:masterfrom
Vogtinator:resourcessimpler
Jan 23, 2021
Merged

Some resources cleanup#267
Vogtinator merged 3 commits into
ndless-nspire:masterfrom
Vogtinator:resourcessimpler

Conversation

@Vogtinator

Copy link
Copy Markdown
Contributor
  • Refine Storage in zehn_loader.cpp
  • Improve printf use in zehn_loader.cpp
  • Drop calchook

- Actually make it safe to use
- Add some additional checks
- Make it API compatible with std::vector
- Use the msgbox method instead of formatting manually
- Use snprintf
- Was mostly a PoC and used quite a few hacks
- Not documented anywhere and not regularly tested
- Adds a fragile hook in a place which is prone to change
- Uses the default allocator, which pulls in exception code
  (without, ndless_resources.tns goes from 235KiB to 170KiB)
- Due to -fno-exceptions, it couldn't handle out of memory situations
@Vogtinator Vogtinator merged commit fe04e49 into ndless-nspire:master Jan 23, 2021
@Vogtinator Vogtinator deleted the resourcessimpler branch January 23, 2021 12:46
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.

1 participant