remove 2 redundant casts cuz like why
Some checks are pending
Build Binaries / Build Windows (push) Waiting to run
Build Binaries / Build macOS (push) Waiting to run
Build Binaries / Build Android (64-bit) (push) Waiting to run
Build Binaries / Build Android (32-bit) (push) Waiting to run
Build Binaries / Publish (push) Blocked by required conditions
Check CHANGELOG.md / Check CHANGELOG.md (push) Waiting to run

This commit is contained in:
dankmeme01 2024-09-12 18:02:30 +02:00
parent e83bc283b5
commit aadd0e4923
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ constexpr static auto MAX_PATH_CHARS = 32768u;
static HMODULE getXInput() {
static auto xinput = []() -> HMODULE {
std::wstring path(MAX_PATH_CHARS, L'\0');
auto size = GetSystemDirectoryW(const_cast<wchar_t*>(path.data()), path.size());
auto size = GetSystemDirectoryW(path.data(), path.size());
if (size) {
path.resize(size);
return LoadLibraryW((path + L"\\XInput1_4.dll").c_str());

View file

@ -233,7 +233,7 @@ protected:
else {
auto data = result->unwrap();
auto image = Ref(new CCImage());
image->initWithImageData(const_cast<uint8_t*>(data.data()), data.size());
image->initWithImageData(data.data(), data.size());
auto texture = CCTextureCache::get()->addUIImage(image, m_modID.c_str());
this->setSprite(CCSprite::createWithTexture(texture), true);