code-prettify

2017年11月26日 星期日

Use wine to play Diablo 2 on macOS high sierra

[Update] After updating to macOS 10.13.6, the Diablo 2 macOS installer works perfectly, no need to use wine anymore.

After upgrading to macOS High Sierra, the installer of Diablo 2 is no longer runnable, and it seems like that Blizzard does not provide a update for this issue until now.

There are at least two ways to make Diablo 2 playable on macOS High Sierra

  1. Install on macOS Sierra and then copy the bundle to the High Sierra machine
  2. Use wine to simulate a Windows environment

This article would cover 2. only, here are the steps


  1. Install homebrew
  2. Open terminal and type
    • brew cask install xquartz
    • brew install wine
    • wine [your_d2_installer_dir]/Installer.exe
    • wine [your_lod_installer_dir]/Installer.exe
  3. This completes the installation, to start game, go to terminal and type
    wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Diablo\ II/Diablo\ II.exe -w

    You can save this as a script for quick launch,
    happy D2 :)
  4. Screenshot

2017年4月8日 星期六

Retina display support for legacy Xcode project

If you have legacy Xcode project that you want to support retina display, do not forget add `NSHighResolutionCapable` attribute(1st row) to your plist file and set to `YES`, as following


if this attribute does not exist in your plist file, just add it manually.