Commit 6e117d46 authored by Ercan Ersoy's avatar Ercan Ersoy

Some changes

Change header files extension to ".hpp" extension.
Fix bug on help parameter code of usage Kitten Library.
parent f732ec1a
No preview for this file type
......@@ -13,4 +13,4 @@
#include <fdostui.hpp>
#include <mouse.h>
#include <kitten.h>
#include <config.h>
#include <config.hpp>
......@@ -153,8 +153,8 @@ struct menuitem view_menu[] =
{
{reinterpret_cast<unsigned char const*>(kittengets(7, 1, "Refresh")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_SEPERATOR, directory_view, 0}, // Refresh
{reinterpret_cast<unsigned char const*>(kittengets(7, 2, "Show Archive Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX | MENUITEM_VALUE, show_archive_items, 0}, // Show archive files
{reinterpret_cast<unsigned char const*>(kittengets(7, 3, "Show Hidden Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX | MENUITEM_VALUE, show_hidden_items, 0}, // Show hidden files
{reinterpret_cast<unsigned char const*>(kittengets(7, 4, "Show Readonly Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX, show_read_only_items, 0}, // Show read only files
{reinterpret_cast<unsigned char const*>(kittengets(7, 3, "Show Hidden Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX, show_hidden_items, 0}, // Show hidden files
{reinterpret_cast<unsigned char const*>(kittengets(7, 4, "Show Readonly Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX| MENUITEM_VALUE, show_read_only_items, 0}, // Show read only files
{reinterpret_cast<unsigned char const*>(kittengets(7, 5, "Show System Items")), MENUITEM_MNEMONIC_NONE, 0, SCAN_NONE, MENUITEM_CHECKBOX, show_system_items, 0}, // Show system files
{0}
};
......
......@@ -3,8 +3,8 @@
* Written by Ercan Ersoy and Mark Olesen.
*/
#include <common.h>
#include <dosshell.h>
#include <common.hpp>
#include <dosshell.hpp>
// Exit window manager function
void exit_window_manager(menuitem *, void *)
......
......@@ -3,8 +3,8 @@
* Written by Ercan Ersoy.
*/
#include <dosshell.h>
#include <fm.h>
#include <dosshell.hpp>
#include <fm.hpp>
// Directory view function
void directory_view(menuitem *, void *)
......
......@@ -3,8 +3,8 @@
* Written by Ercan Ersoy.
*/
#include <dosshell.h>
#include <main.h>
#include <dosshell.hpp>
#include <main.hpp>
// Main function
int main(int argc, char *argv[])
......@@ -23,6 +23,12 @@ int main(int argc, char *argv[])
puts(kittengets(0, 1, " Copyright (C) 2018 Ercan Ersoy"));
puts(kittengets(0, 2, " FreeDOS TUI Shell licensed under GNU GPL version 3."));
if(kitten_status != -1) // If Kitten library is open
{
// Close Kitten library
kittenclose();
}
// Exit FreeDOS TUI Shell
return EXIT_SUCCESS;
}
......
......@@ -3,8 +3,8 @@
* Written by Ercan Ersoy.
*/
#include <dosshell.h>
#include <run.h>
#include <dosshell.hpp>
#include <run.hpp>
// Show file manager function
void show_run(menuitem *, void *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment