X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fwin32%2FGenaDrive%2FFileMenu.h;fp=platform%2Fwin32%2FGenaDrive%2FFileMenu.h;h=6aa00725a52efdd4d132a8bc1bc8460ec0b0efd7;hb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;hp=0000000000000000000000000000000000000000;hpb=2cadbd5e56966f8b7a4e9790aba2f719cfcc38e8;p=picodrive.git diff --git a/platform/win32/GenaDrive/FileMenu.h b/platform/win32/GenaDrive/FileMenu.h new file mode 100644 index 0000000..6aa0072 --- /dev/null +++ b/platform/win32/GenaDrive/FileMenu.h @@ -0,0 +1,29 @@ + +// FileMenu.cpp +class FileMenu +{ +public: + FileMenu(); + int init(); + int scan(); + void exit(); + int render(); + int scroll(int amount); + int getFilePath(char *name); + +private: + int nameReset(); + int nameFind(char *path); + int nameAdd(char *entry); + int nameSizeUp(); + int nameOffset(int index); + + char currentPath[260]; + char *nameList; + int nameSize,nameMax; + int nameCount; + + int choiceFocus; +}; + +extern class FileMenu FileMenu;