Can the love2d open a Chinese path?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Can the love2d open a Chinese path?
My Windows user name is chinese ,I use filesystem loading image after obtaining the love2d path(known images exist).but love2d reported an error,saying that the image does not exist.
- Attachments
-
- code for error reporting section.lua
- (1.56 KiB) Downloaded 60 times
::Hello::
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Can the love2d open a Chinese path?
love functions that accept a filepath all take a path that's relative to the game's source and save directories, not an absolute path.
So this code
should be this instead:
So this code
Code: Select all
love.graphics.newImage(love.filesystem.getSaveDirectory().."/chart/"..item.."/"..citem)
Code: Select all
love.graphics.newImage("chart/"..item.."/"..citem)
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests