?? profile.c
字號(hào):
strcat(pathbuf, "coolplayer.ini");
for(iColIDX = PLAYLIST_first; iColIDX <= PLAYLIST_last; iColIDX++)
{
char keyname[100];
// Write the width
sprintf(keyname, "PlaylistCol%d", iColIDX);
WritePrivateProfileString("WindowPos", keyname, _itoa(options.playlist_column_widths[iColIDX], intbuf, 10), pathbuf);
// Write the order array
sprintf(keyname, "PlaylistSeq%d", iColIDX);
WritePrivateProfileString("WindowPos", keyname, _itoa(options.playlist_column_seq[iColIDX], intbuf, 10), pathbuf);
// Write the visiblity array
sprintf(keyname, "PlaylistVis%d", iColIDX);
WritePrivateProfileString("WindowPos", keyname, options.playlist_column_visible[iColIDX] ? "1" : "0", pathbuf);
}
WritePrivateProfileString("WindowPos", // pointer to section name
"WindowX", // pointer to key name
_itoa(options.main_window_pos.x, intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("WindowPos", // pointer to section name
"WindowY", // pointer to key name
_itoa(options.main_window_pos.y, intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("WindowPos", // pointer to section name
"PlaylistX", // pointer to key name
_itoa(options.playlist_window_pos.left,
intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("WindowPos", // pointer to section name
"PlaylistY", // pointer to key name
_itoa(options.playlist_window_pos.top,
intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("WindowPos", // pointer to section name
"PlaylistW", // pointer to key name
_itoa(options.playlist_window_pos.right -
options.playlist_window_pos.left, intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("WindowPos", // pointer to section name
"PlaylistH", // pointer to key name
_itoa(options.playlist_window_pos.bottom -
options.playlist_window_pos.top, intbuf, 10), // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("LastDirectory", // pointer to section name
"Directory", // pointer to key name
options.last_used_directory, // pointer to string to add
pathbuf // pointer to initialization filename
);
WritePrivateProfileString("Skin", "PlaylistSkin",
options.playlist_skin_file, pathbuf);
{
int teller;
int profileteller = 1;
char SkinFileString[MAX_PATH];
for (teller = MENU_SKIN_DEFAULT+1; teller < MENU_SKIN_DEFAULT+1 + options.remember_skin_count;
teller++) {
if (GetMenuString
(globals.main_menu_popup, teller, options.main_skin_file,
MAX_PATH, MF_BYCOMMAND)) {
if (GetMenuState
(globals.main_menu_popup, teller,
MF_BYCOMMAND) & MF_CHECKED) {
options.last_selected_skin_number = profileteller;
}
sprintf(SkinFileString, "SkinFile%d", profileteller++);
WritePrivateProfileString("Skin", SkinFileString,
options.main_skin_file, pathbuf);
} else {
sprintf(SkinFileString, "SkinFile%d", profileteller++);
WritePrivateProfileString("Skin", SkinFileString, NULL,
pathbuf);
}
}
}
WritePrivateProfileString("Skin", "LastSkin",
_itoa(options.last_selected_skin_number,
intbuf, 10), pathbuf);
WritePrivateProfileString("Skin", "UsePlaylistSkin",
_itoa(options.use_playlist_skin, intbuf, 10),
pathbuf);
WritePrivateProfileString("Skin", "UseDefault",
_itoa(options.use_default_skin, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "Repeat",
_itoa(options.repeat_playlist, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "Shuffle",
_itoa(options.shuffle_play, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "Easymove",
_itoa(options.easy_move, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "RotateIcon",
_itoa(options.rotate_systray_icon, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "Ontop",
_itoa(options.always_on_top, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "Autoexit",
_itoa(options.auto_exit_after_playing,
intbuf, 10), pathbuf);
WritePrivateProfileString("Misc", "Rememberpls",
_itoa(options.remember_playlist, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "Remaining",
_itoa(options.show_remaining_time, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "ReadID3tag",
_itoa(options.read_id3_tag, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "ReadSelID3tag",
_itoa(options.read_id3_tag_of_selected,
intbuf, 10), pathbuf);
WritePrivateProfileString("Misc", "SuportID3v2",
_itoa(options.support_id3v2, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "PreferNativeOGGtags",
_itoa(options.prefer_native_ogg_tags, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "BackgroundReadID3",
_itoa(options.read_id3_tag_in_background, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "WorkOutTrackLengths",
_itoa(options.work_out_track_lengths, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "AllowMultipleInstances",
_itoa(options.allow_multiple_instances, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "Outputmode",
_itoa(options.decoder_output_mode, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "Scrolltitle",
_itoa(options.scroll_track_title, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "ShowPlaylist",
_itoa(options.show_playlist, intbuf, 10),
pathbuf);
{
if(options.remember_last_played_track)
WritePrivateProfileString("Misc", "RememberLastSong", options.initial_file, pathbuf);
else
WritePrivateProfileString("Misc", "RememberLastSong", "", pathbuf);
}
WritePrivateProfileString("Misc", "Fileonce",
_itoa(options.allow_file_once_in_playlist,
intbuf, 10), pathbuf);
WritePrivateProfileString("Misc", "Autoplay",
_itoa(options.auto_play_when_started, intbuf,
10), pathbuf);
WritePrivateProfileString("Misc", "TaskBar",
_itoa(options.show_on_taskbar, intbuf, 10),
pathbuf);
WritePrivateProfileString("Misc", "DelayTime",
_itoa(options.seconds_delay_after_track,
intbuf, 10), pathbuf);
WritePrivateProfileString("Misc", "RememberSkins",
_itoa(options.remember_skin_count, intbuf,
10), pathbuf);
WritePrivateProfileString("Equalizer", "Active",
_itoa(options.equalizer, intbuf, 10),
pathbuf);
for (teller = 1; teller <= 8; teller++) {
char keyname[100];
sprintf(keyname, "Eq%d", teller);
WritePrivateProfileString("Equalizer", keyname,
_itoa(options.eq_settings[teller],
intbuf, 10), pathbuf);
}
// Write quick find defaults
{
char pcQuickFindOption[2];
pcQuickFindOption[1] = '\0';
if(options.m_enQuickFindTerm == qftTitle)
pcQuickFindOption[0] = 'T';
else if(options.m_enQuickFindTerm == qftArtist)
pcQuickFindOption[0] = 'A';
else if(options.m_enQuickFindTerm == qftAlbum)
pcQuickFindOption[0] = 'M';
WritePrivateProfileString("Misc", "QuickFindSearchTerm", pcQuickFindOption, pathbuf);
}
// Write out mixer mode
if(globals.m_enMixerMode == mmMasterVolume)
WritePrivateProfileString("Mixer", "Mode", "Master", pathbuf);
else if(globals.m_enMixerMode == mmWaveVolume)
WritePrivateProfileString("Mixer", "Mode", "Wave", pathbuf);
else
WritePrivateProfileString("Mixer", "Mode", "Internal", pathbuf);
WritePrivateProfileString("Mixer", "InternalVolume", _itoa(globals.m_iVolume, intbuf, 10), pathbuf);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -