summaryrefslogtreecommitdiff
path: root/plugins/sid/csid.cpp
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-02-01 20:14:39 +0100
committerGravatar waker <wakeroid@gmail.com>2011-02-01 20:14:39 +0100
commitcb26c00e37ad876f2d3f0f5704e323bf6d47ec48 (patch)
tree183991f6867b98a1518d0698f80c87a2492facaa /plugins/sid/csid.cpp
parent3beb907821ef4788e1daefa756185e7eec317230 (diff)
added vfs support to sid plugin
Diffstat (limited to 'plugins/sid/csid.cpp')
-rw-r--r--plugins/sid/csid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sid/csid.cpp b/plugins/sid/csid.cpp
index 80236854..6583761e 100644
--- a/plugins/sid/csid.cpp
+++ b/plugins/sid/csid.cpp
@@ -53,7 +53,7 @@ extern DB_decoder_t sid_plugin;
//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
#define trace(fmt,...)
-static DB_functions_t *deadbeef;
+DB_functions_t *deadbeef;
#define min(x,y) ((x)<(y)?(x):(y))
#define max(x,y) ((x)>(y)?(x):(y))
@@ -302,11 +302,11 @@ csid_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
// libsidplay crashes if file doesn't exist
// so i have to check it here
- FILE *fp = fopen (it->fname, "rb");
+ DB_FILE *fp = deadbeef->fopen (it->fname);
if (!fp ){
return -1;
}
- fclose (fp);
+ deadbeef->fclose (fp);
info->sidplay = new sidplay2;
info->resid = new ReSIDBuilder ("wtf");