Search found 14 matches

by sarako
Fri May 20, 2022 2:22 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

Actually, after converting things to the lua io library, the crash has stopped happening. Not sure what made the difference, but seems to be working smoothly!
by sarako
Fri May 20, 2022 2:04 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

Added test files to the repro. The steps to get it to crash: 1) create a new files, 2) open test.cos, 3) create a new file again, 4) open test.cos again. Thanks for checking!

In the meantime I'm converting my nativefs stuff to the lua io library. Totally forgot about that one. Thanks again!
by sarako
Fri May 20, 2022 2:01 am
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

I don't see any way to read/write files using lovefs besides sounds, fonts, and images. I'm using custom filetypes. I'm also running into an issue where if I load a file after I've already loaded one, the program just closes without providing any errors. Any ideas why that might happen? Here's what ...
by sarako
Thu May 19, 2022 10:27 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

Fixed it by search-replacing "wchar_t" with "char" in nativefs.lua.
by sarako
Thu May 19, 2022 10:04 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

Sadly nativefs and lovefs don't play well together. I think it's due to conflicting ffi.cdef's. Poking around to see if I can get them to work together, otherwise I'll use them as inspiration for my own file load/save dialog.
by sarako
Thu May 19, 2022 5:54 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

Thanks for explaining!
by sarako
Thu May 19, 2022 5:38 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

So does Love2D prevent you from accessing files at all outside the folder the program is in? Trying to call getInfo on files based on an absolute filepath ("C:\...") return nil.
by sarako
Wed May 18, 2022 6:08 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

Re: File dialogs in Love2D?

LoveFS looks perfect! It's even using LuaFrames, which is the GUI framework I went with. Thanks so much!
by sarako
Sun May 15, 2022 11:14 pm
Forum: Support and Development
Topic: File dialogs in Love2D?
Replies: 15
Views: 6561

File dialogs in Love2D?

I'm working on a little modding tool in Love2D, and I'd like to have a way for the user to open/save files with a system file dialog. Is there a library or anything to support that? Thanks!
by sarako
Sun May 17, 2015 4:32 pm
Forum: Games and Creations
Topic: Prospora
Replies: 12
Views: 9829

Re: Prospora

Version 2.0 of Prospora is out now! http://sarahgould.itch.io/prospora and http://github.com/sarahgould/prospora.
Prospora Screenshot 1.png
Prospora Screenshot 1.png (187.05 KiB) Viewed 1811 times