Jeck - Quick crashfix when loading without a profiles directory, slight keypad modifications.
This commit is contained in:
@@ -331,6 +331,9 @@ void OptionDirectory::Reload(){
|
||||
char buf[4096];
|
||||
mDip = opendir(root.c_str());
|
||||
|
||||
if(!mDip)
|
||||
return;
|
||||
|
||||
while ((mDit = readdir(mDip))){
|
||||
if(mDit->d_name[0] != '.'){
|
||||
sprintf(buf,"%s/%s",root.c_str(),mDit->d_name);
|
||||
@@ -356,6 +359,9 @@ OptionDirectory::OptionDirectory(string _root, string _id, string _displayValue)
|
||||
root = _root;
|
||||
mDip = opendir(root.c_str());
|
||||
|
||||
if(!mDip)
|
||||
return;
|
||||
|
||||
while ((mDit = readdir(mDip))){
|
||||
if(mDit->d_name[0] != '.'){
|
||||
sprintf(buf,"%s/%s",root.c_str(),mDit->d_name);
|
||||
|
||||
Reference in New Issue
Block a user