Add a flags field to HLEFunction. Fix a small path issue.

This commit is contained in:
Henrik Rydgard 2012-11-06 19:34:17 +01:00
parent 3f730548b1
commit d769297d06
2 changed files with 9 additions and 0 deletions

View File

@ -223,6 +223,9 @@ ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(std::string path)
return &entireISO;
}
if (path.substr(0,2) == "./")
path.erase(0,2);
if (path[0] == '/')
path.erase(0,1);

View File

@ -25,11 +25,17 @@
typedef void (* HLEFunc)();
enum {
NOT_IN_INTERRUPT,
NOT_DISPATCH_SUSPENDED,
};
struct HLEFunction
{
u32 ID;
HLEFunc func;
const char *name;
u32 flags;
};
struct HLEModule