SHARE
TWEET

Untitled

a guest Sep 24th, 2015 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "plugin.h"
  2.  
  3. struct gob_header {
  4.     char magic[4];
  5.     long MASTERX;
  6. };
  7.  
  8.  
  9. enum plugin_status plugin_start(const void* parameter)
  10. {
  11.     int gob_file = rb->open(parameter, O_RDONLY);
  12.  
  13.     struct gob_header current_header;
  14.  
  15.     rb->read(gob_file, &current_header, sizeof(struct gob_header));
  16.  
  17.     rb->splash(HZ*2, current_header.magic);
  18.     rb->splash(HZ*2, (const char*)current_header.MASTERX);
  19.  
  20.     rb->close(gob_file);
  21.  
  22.     return PLUGIN_OK;
  23.  
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top