lights0123 / n-link

Free, cross-platform, CX-II compatible computer linking program for the TI-Nspire.
https://lights0123.com/n-link/
GNU General Public License v3.0
133 stars 3 forks source link

Uploading any file/dir #5

Closed Frityet closed 3 years ago

Frityet commented 3 years ago

Could there be functionality to install any folder/dir onto the device, not just .tns?

lights0123 commented 3 years ago

I've thought about doing that, but I couldn't decide what it should do in each case.

File that doesn't end in .tns:

Frityet commented 3 years ago

rename to add it and go?

Like rename it to a .tns? how could it then even be used on softwares, such as the SNES emulator

if it's a zip file, should it unzip it?

yeah probs, I dont see any program which needs a zipped directory

if so, what should it do to files without a .tns in it?

well, I just see it beneficial if any file/dir could be loaded on

Frityet commented 3 years ago

Downloading everything required for building rn, gonna see what I can do.

Frityet commented 3 years ago

Conclusion from looking at devices.ts: I know jack shit about typescript/javascript/vue

Frityet commented 3 years ago

ok, so, I removed the .tns limit, testing now

lights0123 commented 3 years ago

The calculator isn't going to let you send a file without a tns extension or rename an existing file to remove it IIRC

Frityet commented 3 years ago

;( there goes my dreams then

Frityet commented 3 years ago

wait. how do I rename files on the calc?

lights0123 commented 3 years ago

Ctrl+Menu → Rename...

But, of course, it hides the tns extension and doesn't let you remove it.


what software are you using that needs files that don't have a tns extension? And if you truly do, you can use a Ndless file manager app to rename it.

Frityet commented 3 years ago

I want to install ROMs so I can "do math" in class

lights0123 commented 3 years ago

Right, but don't all the emulators expect ROMs ending in their file extension + .tns?

Frityet commented 3 years ago

I don't know tbh, will try the rename method

lights0123 commented 3 years ago

The only software that can remove the tns extension is an Ndless program—you can't do it over USB, and the stock file browser hides the tns extension so you can't remove it, and hides files that don't have a tns extension at all.

Have you tried just... leaving the tns extension on? It wouldn't make sense for an emulator to not support running from a .tns file because then you couldn't see it in the stock file manager.