Andrew Belt
0932c80370
mach_approximate_time() requires Mac 10.10+, so use mach_absolute_time() instead.
3 years ago
Andrew Belt
985b996d76
Use much faster system::getTime() implementation on Mac.
3 years ago
Andrew Belt
36e02a2c93
Link to the absolute path /tmp/Rack2/libRack.<ext>. Create a symlink at /tmp/Rack2 to the system dir containting libRack.
3 years ago
Andrew Belt
ce11ceab53
Make system::copy() overwrite destination.
3 years ago
Andrew Belt
418eb0846c
Remove debug in system::unarchiveToDirectory().
3 years ago
Andrew Belt
420e781fa7
Set thread locale to en_US.UTF-8 for system::unarchiveToDirectory() on Mac, which fixes libarchive error when a non-ASCII filename is extracted.
3 years ago
Andrew Belt
b48d777ada
Get retail Mac version number in system::getOperatingSystemInfo().
3 years ago
Andrew Belt
e29a98a8aa
Implement system::getThreadTime() on Windows.
3 years ago
Andrew Belt
363d97a56e
Add UI thread CPU meter.
3 years ago
Andrew Belt
1023247941
Add Model::appendContextMenu(). Display Model context menu in ModelBox of module browser.
3 years ago
Andrew Belt
2eb4967261
Make system::getEntries() return vector instead of list.
3 years ago
Andrew Belt
bf21e1574c
Set RtAudio thread name. Limit thread on Linux to 15 characters.
3 years ago
Andrew Belt
a12296cca9
Fix return value of system::removeRecursively().
3 years ago
Andrew Belt
830d2fcdd4
Make system::openDirectory() and openBrowser() nonblocking by running in detached thread. Use MenuItem helpers for File menu.
3 years ago
Andrew Belt
a2c5a7695f
Add system::readFile/writeFile().
3 years ago
Andrew Belt
b0a1f4db49
Don't throw Exception in many system:: functions.
3 years ago
Andrew Belt
c3ff43b6de
Rename *Dir() functions to *Directory(), backtracking on a previous commit.
3 years ago
Andrew Belt
c9fa0e656b
Fix system::archiveDir() adding 10k of padding to the end of memory output.
3 years ago
Andrew Belt
00eb16189b
Use "directory/dir" terminology instead of "folder" except for UI text.
3 years ago
Andrew Belt
d5e1c40b77
Add ability for archiveFolder/unarchiveToFolder() to write/read from memory.
3 years ago
Andrew Belt
ed1842a743
Rename string::U8toU16 to UTF8toUTF16 and U16toU8 to UTF16toUTF8.
3 years ago
Andrew Belt
7bec4bd93c
Destroy system and plugin subsystems properly so they can be re-initialized.
3 years ago
Andrew Belt
cb5a03c90e
Rename initRuntime() to initTime() in system.cpp.
3 years ago
Andrew Belt
5a5a40f5a2
Fix INTERNAL definition on Windows.
3 years ago
Andrew Belt
4ae79f662d
Fix crash when saving/loading module presets. Add "Clear template" menu item to module presets menu. Rename `system::doesExist()` to `exists()`.
3 years ago
Andrew Belt
69c2d74ad4
Fix a few Exception strings
3 years ago
Andrew Belt
86f3658b51
Add `Exception::Exception(const char* format, ...)` so you can create Exception objects using C format strings.
3 years ago
Andrew Belt
90ada5c532
Add Engine::setSuggestedSampleRate(). Make ReadWriteLock support recursive writes.
3 years ago
Andrew Belt
2a1bbf4ae3
Rename system::getRuntime() to getTime().
3 years ago
Andrew Belt
ac0588c0f8
Rewrite module browser's ModelBox to support changing zoom. Add FramebufferWidget::setDirty().
3 years ago
Andrew Belt
790e1053cc
Rename system::getTime() to getRuntime(). Add system::getUnixTime().
3 years ago
Andrew Belt
7efd063392
Change timestamps from int64_t to double, and define epoch as when `system::init()` is called.
3 years ago
Andrew Belt
d6b382f36d
Fix bug in resolving paths in system::unarchiveFolder().
Create .tar.zst plugins in `make dist` for plugins.
Link to libstdc++ statically for plugins.
Remove -lstdc++fs since we replaced it with ghc::filesystem.
4 years ago
Andrew Belt
2a7fab31aa
Replace std::experimental::filesystem with ghc::filesystem library.
4 years ago
Andrew Belt
9c5a616eab
Change file extension of plugin packages to .vcvplugin.
4 years ago
Andrew Belt
232d2c10e5
Add `compressionLevel` argument to `system::archiveFolder()`.
4 years ago
Andrew Belt
8d908a0a55
Add system::join(). Add asset::module().
4 years ago
Andrew Belt
6d1795ee35
Test new system:: functions. Make system:: filesystem functions throw Exception on error. Add system::getCanonical().
4 years ago
Andrew Belt
c862847394
Set compression level of system::archiveFolder() .tar.zst file.
4 years ago
Andrew Belt
3fbd0f77a9
Move string::absolute, directory, filename, filenameBase, and filenameExtension to system::getAbsolute, getDirectory, getFilename, getStem, and getExtension. Reimplement most system:: functions using std::experimental::filesystem. Add system::doesExist, getFileSize, and getTempDir.
4 years ago
Andrew Belt
df544700b9
Remove libzip, zlib. Remove string::compress() and uncompress(). Remove system::unzipToFolder().
4 years ago
Andrew Belt
8a50d39b7f
Make system::archiveFolder and unarchiveToFolder work on Windows with
Unicode. Rename UTF8toUTF16 to U8toU16 and switch back to std::wstring
instead of std::u16string.
4 years ago
Andrew Belt
0ded01c228
Add system::unarchiveToFolder() and archiveFolder(). Begin using `std::experimental::filesystem`.
4 years ago
Andrew Belt
dd0e670050
Fix wchar_t/char16_t distinction on Windows.
4 years ago
Andrew Belt
e457294889
Change string::fromWstring to UTF16toUTF8. Change string::toWstring to UTF8toUTF16. Replace std::wstring to std::u16string and wchar_t to char16_t.
4 years ago
Andrew Belt
b3a3b1cdbd
Add system::get/setWorkingDirectory() which fixes the Windows build.
4 years ago
Andrew Belt
120aafe6d3
Change order of includes to C++ standard headers, library headers, and local project headers.
4 years ago
Andrew Belt
af834d49ee
Replace fopen, remove, and rename on Windows with wrappers that call
wide-string equivalents.
4 years ago
Andrew Belt
8423ce87aa
Add template preset for modules, which are loaded when created from the Module Browser.
4 years ago
Andrew Belt
58a44db0c5
Slightly increase performance of system::getNanoseconds() for Linux.
4 years ago