diff --git a/plugins/model/plugin.cpp b/plugins/model/plugin.cpp index e032e398..4fe73b01 100644 --- a/plugins/model/plugin.cpp +++ b/plugins/model/plugin.cpp @@ -74,9 +74,9 @@ void PicoPrintFunc( int level, const char *str ) } } -void PicoLoadFileFunc( char *name, byte **buffer, int *bufSize ) +void PicoLoadFileFunc( const char *name, byte **buffer, int *bufSize ) { - *bufSize = vfsLoadFile( (const char*) name, (void**) buffer); + *bufSize = vfsLoadFile( name, (void**) buffer); } void PicoFreeFileFunc( void* file )