## Link to GitHub Issue, if one exists n/a, user reported ## Description of change When copying text to clipboard, the last character was being dropped due to incorrect string buffer size calculation. Also, clean up callers to just pass std:string by reference instead of going back and forth between C-style strings. Lastly, fix `git archive` in `build_all.sh` which broke after github migration. ## Compiling Yes ## Testing Tested all three callers - IIDX cam hook, scard reader in Cards tab, and patch manager datecode.
10 lines
196 B
C++
10 lines
196 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
|
|
namespace clipboard {
|
|
void copy_image(const std::filesystem::path path);
|
|
void copy_text(const std::string& str);
|
|
const std::string paste_text();
|
|
}
|