fix improper dir sep when loading sample on Win
This commit is contained in:
parent
f75803c3b2
commit
df97142157
2 changed files with 7 additions and 1 deletions
|
|
@ -4833,7 +4833,7 @@ bool DivEngine::addSampleFromFile(const char* path) {
|
|||
sf_close(f);
|
||||
DivSample* sample=new DivSample;
|
||||
int sampleCount=(int)song.sample.size();
|
||||
const char* sName=strrchr(path,'/');
|
||||
const char* sName=strrchr(path,DIR_SEPARATOR);
|
||||
if (sName==NULL) {
|
||||
sName=path;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue