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
Andrew Belt
306e454f0c
Use higher resolution clock for system::getNanoseconds() on Windows.
Ban `long` from codebase. Use int64_t instead.
4 years ago
Andrew Belt
5a45c26da6
Add system::getNanoseconds(). Use it instead of std::chrono.
4 years ago
Andrew Belt
c7f65f7bfb
Remove system::getThreadTime() and system::setThreadRealTime().
4 years ago
Andrew Belt
cc14d40fe3
Remove preset directory if empty.
5 years ago
Andrew Belt
2f5bff5a3a
Add _WIN32_WINNT version.
5 years ago
Andrew Belt
798d01d240
Add system::getEntriesRecursive().
5 years ago
Andrew Belt
a629561f58
Move plugin.cpp's extractZip to system::unzipToFolder().
5 years ago
Andrew Belt
873f6719d0
Use higher precision (but lower accuracy) thread runtime counter on Windows.
5 years ago
Andrew Belt
edc55bf3e3
Implement system::getThreadTime on Mac.
5 years ago
Andrew Belt
cb6e9b82c1
Add system::getThreadTime implementation on Windows
5 years ago
Andrew Belt
8c9e594c32
Use thread runtime rather than time of day for measuring module CPU.
5 years ago
Andrew Belt
dca30e2b53
Auto-format code with astyle.
5 years ago
Andrew Belt
7a86e4cc7c
Add fatal signal handling on Mac, with better stability in the handler function.
5 years ago
Andrew Belt
05e2e7b9c0
Reenable backtrace printing in log. Demangle symbols on Linux.
5 years ago
Andrew Belt
a5e1ac75f8
Finish auto-updater on Windows. Add network::urlPath(). Reimplement
runProcessDetached() using ShellExecuteExW() instead of CreateProcess().
5 years ago
Andrew Belt
60a1a47f00
Move system::getAbsolutePath() to string::absolutePath(). Implement on
Windows.
5 years ago
Andrew Belt
4a09492b3e
Implement system::getAbsolutePath() on Mac.
5 years ago
Andrew Belt
029434dcb7
Add system::getAbsoluteDirectory().
5 years ago
Andrew Belt
bc06efd9ab
Add system::openFolder() on Mac.
5 years ago
Andrew Belt
c8d495dfe3
Use correct ShellExecute verb for system::openFolder() on Windows.
5 years ago