From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Plugins/Library/ml_bookmarks/bookmark.cpp | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Src/Plugins/Library/ml_bookmarks/bookmark.cpp (limited to 'Src/Plugins/Library/ml_bookmarks/bookmark.cpp') diff --git a/Src/Plugins/Library/ml_bookmarks/bookmark.cpp b/Src/Plugins/Library/ml_bookmarks/bookmark.cpp new file mode 100644 index 00000000..c7ad05e1 --- /dev/null +++ b/Src/Plugins/Library/ml_bookmarks/bookmark.cpp @@ -0,0 +1,32 @@ +/** (c) Nullsoft, Inc. C O N F I D E N T I A L + ** Filename: + ** Project: + ** Description: + ** Author: + ** Created: + **/ +#include "bookmark.h" + +BookmarkWriter::BookmarkWriter():fp(0) +{ +} + +void BookmarkWriter::Open(const wchar_t *filename) +{ + fp=_wfopen(filename, L"a+t"); +} + +void BookmarkWriter::New(const wchar_t *filename) +{ + fp=_wfopen(filename, L"wt"); +} + +void BookmarkWriter::Write(const char *filename, const char *title) +{ + fprintf(fp,"%s\n%s\n",filename,title); +} + +void BookmarkWriter::Close() +{ + if (fp) fclose(fp); +} \ No newline at end of file -- cgit