Skip to content

Commit

Permalink
extend xbmcvfs module with, read, write, seek, close, listdir, mkdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
amet committed Jun 2, 2012
1 parent 0fe9189 commit 688b7a4
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 8 deletions.
2 changes: 2 additions & 0 deletions xbmc/interfaces/python/XBPython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ extern "C" {
void InitAddonTypes(void);
void DeinitAddonModule(void);
void InitVFSModule(void);
void InitVFSTypes(void);
void DeinitVFSModule(void);
}

Expand Down Expand Up @@ -490,6 +491,7 @@ void XBPython::Initialize()
InitGUITypes();
InitPluginTypes();
InitAddonTypes();
InitVFSTypes();

This comment has been minimized.

Copy link
@theuni

theuni Jul 7, 2012

Contributor

@amet: I segfault unless I also add InitVFSTypes(); to XBPython::InitializeInterpreter. It was a blind c/p, so I have no idea what's going on there. But from the looks, it's safe to assume that's needed?


if (!(m_mainThreadState = PyThreadState_Get()))
CLog::Log(LOGERROR, "Python threadstate is NULL.");
Expand Down
Loading

0 comments on commit 688b7a4

Please sign in to comment.