mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
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
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:
parent
e83bc283b5
commit
aadd0e4923
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue