Code Monkey home page Code Monkey logo

Comments (9)

mahoneyt944 avatar mahoneyt944 commented on August 29, 2024

@barbudreadmon , just fixed this issue in mame2003-plus.

The problem is if you send path_mkdir() a path to create containing a trailing slash, this path gets copied to basedir and then the slash is removed from basedir if it's defined as a gekko based system. It then checks if basedir is a valid path or not to create. If it's valid, it enables the non recursive function that actually makes the new directory by using the original path, dir, which still contains the trailing slash. So it fails on wiiu because it can't make path dir containing the trailing slash.

They corrected the path it checks (basedir), but then it tries to make the bad path(dir). You need to also remove the trailing slash from dir then make sure your core isn't sending any file paths to path_mkdir with trailing slashes.

We also force create our system and save directories anytime osd_get_path() in src/fileio.c is called if they are not already created by default.

from libretro-common.

barbudreadmon avatar barbudreadmon commented on August 29, 2024

make sure your core isn't sending any file paths to path_mkdir with trailing slashes.

Yes, that's exactly what i did when fixing this issue in FBNeo a few months ago

from libretro-common.

mahoneyt944 avatar mahoneyt944 commented on August 29, 2024

Yes, that's exactly what i did when fixing this issue in FBNeo a few months ago

Ok cool. Didn't know where you guys were with this issue. Just figured I'd share what we did in case it was still an open issue.

This ideally needs to be corrected in path_mkdir() by removing any trailing slashes in dir as well under the if defined gekko section.

from libretro-common.

mahoneyt944 avatar mahoneyt944 commented on August 29, 2024

@barbudreadmon I just fixed path_mkdir() for gekko systems in #172. If it gets merged. Not sure if this will effect your fix in fbneo or not.

from libretro-common.

barbudreadmon avatar barbudreadmon commented on August 29, 2024

ok, thanks for the heads-up

from libretro-common.

mahoneyt944 avatar mahoneyt944 commented on August 29, 2024

@barbudreadmon #172 should fix these create issues if you want to test it with your core and wiiu.

from libretro-common.

barbudreadmon avatar barbudreadmon commented on August 29, 2024

hmmm, how come you are freeing len & len2 ? They aren't ptr (http://www.cplusplus.com/reference/cstdlib/free/).

from libretro-common.

mahoneyt944 avatar mahoneyt944 commented on August 29, 2024

@barbudreadmon whoops. I meant to free newdir, fixed it now. Please test the updated fix. I don't have a wiiu but I believe this should fix it from the libretro side. If so you'll have to check your slash situation in fbneo

from libretro-common.

barbudreadmon avatar barbudreadmon commented on August 29, 2024

I've no real means for testing this either :/. No wiiu sdk and no emulator able to run RA wiiu homebrew available on linux anyway.

from libretro-common.

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.