diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 09c76eb3f..84262afab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -524,65 +524,4 @@ jobs: with: name: Fedora ${{ matrix.release }} RPM path: | - imhex-${{env.IMHEX_VERSION}}-Fedora-${{matrix.release}}.rpm - - - - steam_deploy: - needs: [ win, macos, ubuntu ] - runs-on: ubuntu-latest - name: 🚀 Steam Deployment Nightly - - if: github.event_name == 'push' && github.repository == 'WerWolv/ImHex' && github.ref == 'refs/heads/master' - steps: - - name: 🧰 Checkout - uses: actions/checkout@v3 - with: - path: ImHex - - - name: 📜 Set version variable - run: | - project_version=`cat ImHex/VERSION` - echo "IMHEX_VERSION=$project_version" >> $GITHUB_ENV - - - name: ⬇️ Download Windows Artifact - uses: actions/download-artifact@v3 - with: - name: Windows Portable - path: ./steam/windows - - - name: ⬇️ Download macOS Artifact - uses: actions/download-artifact@v3 - with: - name: macOS Portable - path: ./steam/macos - - - name: ⬇️ Download Linux Artifact - uses: actions/download-artifact@v3 - with: - name: Linux AppImage - path: ./steam/linux - - - name: 🗜️ Setup steam depots - run: | - mv steam/linux/imhex-${{env.IMHEX_VERSION}}.AppImage steam/linux/imhex.AppImage - - - name: 🗝️ Generate Steam TOTP - uses: CyberAndrii/steam-totp@v1 - id: steam-totp - with: - shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} - - - name: 💨 Publish Steam Nightly - uses: game-ci/steam-deploy@main - with: - username: ${{ secrets.STEAM_USERNAME }} - password: ${{ secrets.STEAM_PASSWORD }} - totp: ${{ steps.steam-totp.outputs.code }} - appId: 2186040 - buildDescription: v${{ env.IMHEX_VERSION }} - ${{ github.sha }} - rootPath: ./steam - depot1Path: windows - depot2Path: macos - depot3Path: linux - releaseBranch: nightly \ No newline at end of file + imhex-${{env.IMHEX_VERSION}}-Fedora-${{matrix.release}}.rpm \ No newline at end of file diff --git a/lib/libimhex/include/hex/providers/buffered_reader.hpp b/lib/libimhex/include/hex/providers/buffered_reader.hpp index b46076b18..d07c0e93c 100644 --- a/lib/libimhex/include/hex/providers/buffered_reader.hpp +++ b/lib/libimhex/include/hex/providers/buffered_reader.hpp @@ -14,7 +14,7 @@ namespace hex::prv { public: explicit BufferedReader(Provider *provider, size_t bufferSize = 16_MiB) : m_provider(provider), m_bufferAddress(provider->getBaseAddress()), m_maxBufferSize(bufferSize), - m_startAddress(0x00), m_endAddress(provider->getActualSize() - 1), + m_startAddress(provider->getBaseAddress()), m_endAddress(provider->getBaseAddress() + provider->getActualSize() - 1), m_buffer(bufferSize) { } diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 0421d4fc0..36b2a08f1 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -288,9 +288,11 @@ namespace hex::plugin::builtin { } std::optional findSequence(const std::vector &sequence, bool backwards) { - hex::prv::BufferedReader reader(ImHexApi::Provider::get()); + auto provider = ImHexApi::Provider::get(); - reader.seek(this->m_searchPosition.value_or(0x00)); + hex::prv::BufferedReader reader(provider); + + reader.seek(this->m_searchPosition.value_or(provider->getBaseAddress())); constexpr static auto searchFunction = [](const auto &haystackBegin, const auto &haystackEnd, const auto &needleBegin, const auto &needleEnd) { return std::search(haystackBegin, haystackEnd, std::boyer_moore_horspool_searcher(needleBegin, needleEnd)); diff --git a/resources/dist/steam/header_capsule.png b/resources/dist/steam/header_capsule.png deleted file mode 100644 index 4bb80dfb9..000000000 Binary files a/resources/dist/steam/header_capsule.png and /dev/null differ diff --git a/resources/dist/steam/imhex_background.png b/resources/dist/steam/imhex_background.png deleted file mode 100644 index c98ca466d..000000000 Binary files a/resources/dist/steam/imhex_background.png and /dev/null differ diff --git a/resources/dist/steam/library_capsule.png b/resources/dist/steam/library_capsule.png deleted file mode 100644 index 0112dfc17..000000000 Binary files a/resources/dist/steam/library_capsule.png and /dev/null differ diff --git a/resources/dist/steam/library_header.png b/resources/dist/steam/library_header.png deleted file mode 100644 index 6e4c3d3c9..000000000 Binary files a/resources/dist/steam/library_header.png and /dev/null differ diff --git a/resources/dist/steam/library_logo.png b/resources/dist/steam/library_logo.png deleted file mode 100644 index a52ab0b71..000000000 Binary files a/resources/dist/steam/library_logo.png and /dev/null differ diff --git a/resources/dist/steam/main_capsule.png b/resources/dist/steam/main_capsule.png deleted file mode 100644 index 1977cebff..000000000 Binary files a/resources/dist/steam/main_capsule.png and /dev/null differ diff --git a/resources/dist/steam/small_capsule.png b/resources/dist/steam/small_capsule.png deleted file mode 100644 index c3f6e3480..000000000 Binary files a/resources/dist/steam/small_capsule.png and /dev/null differ diff --git a/resources/dist/steam/vertical_capsule.png b/resources/dist/steam/vertical_capsule.png deleted file mode 100644 index 6889ae1b2..000000000 Binary files a/resources/dist/steam/vertical_capsule.png and /dev/null differ diff --git a/resources/projects/steam_header_capsule.xcf b/resources/projects/steam_header_capsule.xcf deleted file mode 100644 index 863140ecf..000000000 Binary files a/resources/projects/steam_header_capsule.xcf and /dev/null differ diff --git a/resources/projects/steam_main_capsule.xcf b/resources/projects/steam_main_capsule.xcf deleted file mode 100644 index c8ff29d6c..000000000 Binary files a/resources/projects/steam_main_capsule.xcf and /dev/null differ diff --git a/resources/projects/steam_small_capsule.xcf b/resources/projects/steam_small_capsule.xcf deleted file mode 100644 index ceaf0c98d..000000000 Binary files a/resources/projects/steam_small_capsule.xcf and /dev/null differ