2 * Copyright 2003-2006, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors in chronological order:
17 #include <StorageKit.h>
23 BApplication("application/x-vnd.Haiku-Media"),
27 BRect
rect(32, 64, 637, 462);
30 if (find_directory(B_USER_SETTINGS_DIRECTORY
, &path
) == B_OK
) {
31 path
.Append(SETTINGS_FILE
);
32 BFile
file(path
.Path(),B_READ_ONLY
);
33 if (file
.InitCheck()==B_OK
) {
36 while ((size
= file
.Read(buffer
, 255)) > 0) {
38 while (buffer
[i
] == '#') {
39 while (i
< size
&& buffer
[i
] != '\n')
44 const char* scanString
= " rect = %li,%li,%li,%li";
45 if (sscanf(&buffer
[i
], scanString
, &a
, &b
, &c
, &d
) == 4) {
46 if (c
- a
>= rect
.IntegerWidth()) {
50 if (d
- b
>= rect
.IntegerHeight()) {
59 MediaListItem::SetIcons(&fIcons
);
60 fWindow
= new MediaWindow(rect
);
68 return fWindow
->InitCheck();
80 if (app
.InitCheck() == B_OK
)