GithubHelp home page GithubHelp logo

Use PhysicsFS about raceintospace HOT 9 OPEN

raceintospace avatar raceintospace commented on May 30, 2024
Use PhysicsFS

from raceintospace.

Comments (9)

willglynn avatar willglynn commented on May 30, 2024

This would now let us discard src/game/platform_windows/dirent.{c,h} as well as a bunch of CMake tests.

from raceintospace.

kiyote avatar kiyote commented on May 30, 2024

I'm getting some mysterious unhandled exception of "no such path". Appears to be thrown from physfs. Has the media structure changed in a way I need to adapt?

from raceintospace.

willglynn avatar willglynn commented on May 30, 2024

Right now, it's expecting the game data directories to be right next to the executable. Is that customary on Windows?

from raceintospace.

kiyote avatar kiyote commented on May 30, 2024

I was using the BARIS_DATA variable, previously.

from raceintospace.

kiyote avatar kiyote commented on May 30, 2024

Where is it expecting the game data to be in relation to the executable now? Same folder? So:
+raceintospace.exe
+\gamedata
+\images
+\audio

etc?

from raceintospace.

willglynn avatar willglynn commented on May 30, 2024

Yep. At least, that's my understanding of what it's looking at on Windows. The relevant code is in Filesystem::init().

from raceintospace.

kiyote avatar kiyote commented on May 30, 2024

Has the gamedata structure changed at all. Still getting a "no such path", I'm just wondering how one is supposed to indicate to the game where all the gamedata is now?

from raceintospace.

willglynn avatar willglynn commented on May 30, 2024

No, the game data structure hasn't changed. There's also no way to indicate a game data search path at present -- I didn't think this should be necessary, since there are customary locations to put game data on each platform that don't require runtime configuration. On Windows, it should be using the executable's parent directory as the start of the search path.

from raceintospace.

kiyote avatar kiyote commented on May 30, 2024

Huzzah, success. Playing with the BARIS_DATA and BARIS_SAVE environment variables got me moving again.

from raceintospace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.