Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

Check for second occurence of the same string?

Featured Replies

  • Author
  • Localization

BloodRaynare, posted Fri Mar 01, 2019 7:36 am (45433)


How to make quickbms to look for the second occurence of the same string that obtained from get NAME string?

I'm currently working on the script that adds TIM2 header to the extracted VINYLS.bin files from NFS series, and those extracted files actually holds the texture name at the end of it and rename the files accordingly. But some of the texture names has duplicate names when it was actually different textures (like alpha masks) and since I'm using MEMORY_FILE and append, those duplicates will be merged automatically by quickbms instead of asking to rename or overwrite the files.
  • Author
  • Localization

aluigi, posted Fri Mar 01, 2019 3:58 pm (45455)


quickbms asks ever if you want to overwrite a file.
The only situations in which it doesn't happen is when the append mode is enabled while you perform the Log operation on file.
If the situation is just that, you can use:
Code:
...
append # disable append mode
log NAME 0 SIZE MEMORY_FILE
append # re-enable append mode
...
I have not fully understood the situation so let me know if this is enough or I can help in other ways.
  • Author
  • Localization

BloodRaynare, posted Sat Mar 02, 2019 2:56 am (45468)


That trick works! I never knew you could disable/enable append commands.
Thanks aluigi. :D
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.