Comments (1)
The issue seems to be in the handling of the website. Specifically, the website only gets considered as a loadable target if we're inside the website's folder (if tic_fs_ispubdir
returns true
, which only happens if our working directory is in the website). Otherwise, it tries to load from the local filesystem, which naturally fails.
Even if we're inside the website directory and attempt to load a file from a directory, it still doesn't work, this time because tic_fs_enum
only considers the working directory when trying to determine where a file exists (attempting to load, say, Play/Games/zracer.tic
from the base tic80.com
directory would only work if there was a file in the root path that had a filename
of Play/Games/zracer.tic
, which I was able to confirm via testing locally with my custom surf server).
The former issue could be solved by adding a check if we're in the root directory and loading a path which starts with TIC_HOST
, and the latter issue could be solved using dirname
and basename
(or equivalents) to split the path into directory (which is appended to the working directory) and filename to search for.
from tic-80.
Related Issues (20)
- Sometimes can't execute the first command after launch (keyboard input weirdness) HOT 1
- [Question] How i can compile TIC-80 as a Libretro core for Nintendo Wii? HOT 1
- [libretro] minimap arrows are wrong direction HOT 2
- [linux] Shadows Over the Twelve Lands crashes in latest Arch build HOT 2
- Android: TIC80 (PRO) not showing virtual gamepad every second run HOT 3
- Associate .tic files with TIC-80 on macOS
- TIC-80 doesn't start properly on Windows XP unless forced to `--soft` HOT 1
- New release soon / more frequent releases? HOT 3
- The "X button to enter surf" needs a better input check HOT 6
- Better import screen error messages HOT 1
- Tiles in map editor does not update after editing tile HOT 1
- Scaling issue on web export on mobile
- Native Apple Silicon version and Black Borders
- `--fs` accepts files, not just folders; errors follow
- Command line not fully visible when using past commands
- [Libretro] iOS support HOT 2
- Using surf, 'close game' should go back to surf and not console
- Mouse sprite and ram aren't linked
- keyword 'of' in javascript is not colored
- Segmentation fault HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tic-80.