Originally posted by Lycanthropist
View Post
SDL Storage API Merged For SDL 3.0
Collapse
X
-
-
-
This summarizes partially very well why I think windows is a disgusting piece of sh!t os.
Nothing is designed the proper way with this crap. Its only win is that Walmart only sells computers with this crap preinstalled, nothing more.
Leave a comment:
-
-
Besides, SDL is intended for games to use, and games are not using C in the vast majority..
Probably using Visual Basic, or just Basic I imagine....
. That said SDL can be used for more than just games. Any time you need graphic output (say automation projects with dials, switches, sliders, graphs, etc.), SDL can be the base library.
I like the portability concept between M$ and every other posix OS. If you do have have a foot in both worlds, this makes sense.... On the other hand, I'd like SDL to concentrate on optimizing the graphics side as much as possible and not run off on tangents that take resources away from making a good library better. Oh course if the goal is to allow easy porting of more applications to Linux ... This may just be a good thing. Just saying. Just like Java was (and is to some extent) to be the language of 'write once, run everywhere' language.Last edited by rclark; 17 March 2024, 09:52 PM.
Leave a comment:
-
-
Originally posted by Redfoxmoon View Post
if you assume utf8 internally you can just call WideCharToMultiByte and MultiByteToWideChar to translate between utf8 and (broken) utf16 for filesystem operations
Leave a comment:
-
-
Originally posted by byteabit View PostThat's why I don't even try to make my (little) programs and scripts compatible with Windows. Especially when it comes to filesystem. Thank god I am not getting paid for doing this and don't try to sell anything.
Leave a comment:
-
-
Originally posted by shmerl View PostBesides, SDL is intended for games to use, and games are not using C in the vast majority.
Leave a comment:
-
-
Originally posted by mr_tawan View Post
Since SDL is C library, and C does not really have a standard library for file system if I'm not mistaken. This should fit right in for those who still works in C rather than C++ for example..
Besides, SDL is intended for games to use, and games are not using C in the vast majority.
Leave a comment:
-
-
Originally posted by Redfoxmoon View Post
if you assume utf8 internally you can just call WideCharToMultiByte and MultiByteToWideChar to translate between utf8 and (broken) utf16 for filesystem operations
Don't forget that you also have to prepend the filename with "\\?\" to avoid the 260 character max length of a complete path in Windows.
Leave a comment:
-
-
Originally posted by shmerl View PostAren't there language specific I/O APIs that abstract it already? C++, Rust and etc. have pretty good standard libraries for this. I.e. you don't often need to use OS specific level APIs unless you really want to. So what is the benefit of this that standard libraries don't provide?
Also it has an API to distinguish between application data (title storage) and the userdata (user storage), which SDL_filesystem covers it somewhat, but may be they expand it further (I haven't look at it fully).
Leave a comment:
-
-
Originally posted by pabloski View PostObviously Rust cannot accept invalid sequences of codepoints, so it must go to great lengths to bust the "bad guys". Other languages don't care, meaning the programmer must take care.
Leave a comment:
-
Leave a comment: