class IconUtility

Manipulates icons in executable files.

Public

Methods

staticUpdateIconExe

static void UpdateIconExe(const Path &filePath, const Map<u32, SPtr<PixelData>> &icons)

Updates icons in the provided executable.

Only icons that already exist in the executable can be updated, no new icons can be inserted. Icons must be square.

filePath
Path to the executable.
icons
Pixels of images to replace. Each entry maps an icon width (and height, since they're square) to its pixels.

Private

Methods

staticUpdateIconData

static void UpdateIconData(u8 *iconData, const Map<u32, SPtr<PixelData>> &icons)

Updates data of an existing icon with new pixels.

iconData
Existing icon bytes, in Windows ICO format.
icons
Pixels of images to replace. Each entry maps an icon width (and height, since they're square) to its pixels.