[openbeos] Pref files bis

  • From: François Revol <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 17 Jan 2002 21:27:37 +0100 (MET)

// This one is for Workspaces :)
// ./dumpwsinfo ~/config/settings/Workspace_data

#include <File.h>
#include <stdio.h>

typedef struct {
        float window_x1;
        float window_y1;
        float window_x2;
        float window_y2;
} ws_info;

int main(int argc, char **argv)
{
        BApplication app(); // useful ?

        ws_info wsi;

        BFile f(argv[1], O_RDONLY);
        f.Read(&wsi, sizeof(ws_info));
        printf("BRect (%2.2f, %2.2f, %2.2f, %2.2f)\n", wsi.window_x1, 
wsi.window_y1, wsi.window_x2, wsi.window_y2);
}


Other related posts:

  • » [openbeos] Pref files bis