Skip to content

Commit

Permalink
Updated Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
infinimineralex committed Apr 14, 2024
1 parent ea1a5bd commit 24c60d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Charcoal/Charcoal/Charcoal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ JSValue Charcoal::printAllBooks(const JSObject& thisObject, const JSArgs& args)

MessageBoxA(NULL, bookList.c_str(), "Book List", MB_OK); //this confirms there is an actual booklist.

//convert the book list string to a JavaScript string
//convert the book list string to a JavaScript string, but does not work.

JSStringRef jsBookList = JSStringCreateWithUTF8CString(bookList.c_str());

JSValue jsValue = JSValue(jsBookList);

JSStringRelease(jsBookList);

//return the JSValue object
//return the JSValue object, I tried with JSString and the issue persisted.

return jsValue;

}
void Charcoal::grayscaleName(const JSObject& thisObject, const JSArgs& args) { //at the moment just gets metadata, you will put your grayscale hooks here.
void Charcoal::grayscaleName(const JSObject& thisObject, const JSArgs& args) { //at the moment just gets metadata, Thomas will puts grayscale hooks here.
//std::string added = ebooks.getStringData();
//MessageBoxA(NULL, added.c_str(), "Book Data", MB_OK);
}
Expand Down

0 comments on commit 24c60d5

Please sign in to comment.