public void buildLocalStorageCommands() { LoadingScreen ls = new LoadingScreen(); ls.progressBar1.Maximum = LocalStorage.Length; ls.progressBar1.Value = 0; ls.label1.Text = "Building SPU Commands out of LocalStorage..."; ls.Show(); for (int i = 0; i < LocalStorage.Length - 3; i += 4) { LocalStorageCommands[i >> 2] = new SPUCommand(LocalStorage, i); if ((i & 0xFF) == 0) { ls.progressBar1.Value = i; ls.Refresh(); } } ls.Hide(); }