mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Added a bunch of "user" functions, winamp is mostly covered, though menu_media needs a bit of work done to it.. I'm only a C noob so I'm not good with graphic stuff :P
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1582 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9795a359d1
commit
c161afa53f
2 changed files with 1315 additions and 278 deletions
|
@ -6,6 +6,9 @@
|
|||
#include "glquake.h"//fixme
|
||||
#endif
|
||||
|
||||
#include <stdlib.h> // needed for itoi
|
||||
#include <stdio.h> // needed for itoi?
|
||||
|
||||
|
||||
|
||||
#if !defined(__CYGWIN__) && !defined(NOMEDIA)
|
||||
|
@ -39,6 +42,8 @@ static mediatrack_t currenttrack;
|
|||
int lasttrackplayed;
|
||||
|
||||
int media_playing=true;//try to continue from the standard playlist
|
||||
cvar_t winamp_dir = {"winamp_dir", "c:/program files/winamp5/"};
|
||||
cvar_t winamp_exe = {"winamp_exe", "winamp.exe"};
|
||||
cvar_t media_shuffle = {"media_shuffle", "1"};
|
||||
cvar_t media_repeat = {"media_repeat", "1"};
|
||||
#ifdef WINAMP
|
||||
|
@ -61,6 +66,8 @@ qboolean WinAmp_GetHandle (void)
|
|||
return true;
|
||||
if ((hwnd_winamp = FindWindow("Winamp v1.x", NULL)))
|
||||
return true;
|
||||
if ((hwnd_winamp = FindWindow("winamp", NULL)))
|
||||
return true;
|
||||
|
||||
*currenttrack.nicename = '\0';
|
||||
|
||||
|
@ -304,25 +311,438 @@ void Media_LoadTrackNames (char *listname);
|
|||
#define MEDIA_SHUFFLE -2
|
||||
#define MEDIA_REPEAT -1
|
||||
|
||||
// Start Moodles Attempt at Winamp Commands
|
||||
// Note strange bug, load up FTE normally. And type winamp_version, for me the output is 0, but if I do winamp_version a second time it says 24604 (which is hex for 5010, my version of winamp is 5.10)
|
||||
|
||||
void Winamp_Play_f(void)
|
||||
{
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
//SendMessage(hwnd_winamp, WM_COMMAND, WINAMP_BUTTON2, 0); <- is below fails, uncomment this.
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_STARTPLAY);
|
||||
Con_Printf("Attempting to start playback\n");
|
||||
}
|
||||
|
||||
void Winamp_Version_f(void)
|
||||
{
|
||||
int version = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETVERSION);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
//itoa (version, temp, 16); // should convert it to hex
|
||||
|
||||
Con_Printf("Winamp Version: %d\n",version); //wtf work you stupid fuckin pos
|
||||
}
|
||||
|
||||
void Winamp_TimeLeft_f(void)
|
||||
{
|
||||
int tracklength = SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETOUTPUTTIME);
|
||||
int trackposition = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETOUTPUTTIME);
|
||||
int timeleft;
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
timeleft = tracklength-(trackposition/1000);
|
||||
|
||||
Con_Printf("Time Left: %d seconds\n",timeleft); // convert it to h:m:s later
|
||||
}
|
||||
|
||||
void Winamp_JumpTo_f(void) // input is a percentage
|
||||
{
|
||||
int tracklength = SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETOUTPUTTIME);
|
||||
float inputpercent;
|
||||
double trackpercent;
|
||||
char *input;
|
||||
int res;
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputpercent = atoi(input);
|
||||
|
||||
if (inputpercent > 100)
|
||||
{
|
||||
Con_Printf("ERROR: Choose a percent between 0 and 100\n");
|
||||
return;
|
||||
}
|
||||
|
||||
inputpercent = inputpercent/100;
|
||||
|
||||
trackpercent = (tracklength*1000)*inputpercent;
|
||||
|
||||
res = SendMessage(hwnd_winamp,WM_WA_IPC,trackpercent,IPC_JUMPTOTIME);
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
Con_Printf("Successfully jumped to %s percent\n",input,trackpercent);
|
||||
return;
|
||||
}
|
||||
else if (res == -1)
|
||||
{
|
||||
Con_Printf("There are no songs playing\n");
|
||||
return;
|
||||
}
|
||||
else if (res == 1)
|
||||
{
|
||||
Con_Printf("End of file\n");
|
||||
}
|
||||
|
||||
|
||||
Con_Printf("Oh oh spagettioes you shouldn't see this");
|
||||
}
|
||||
|
||||
void Winamp_GoToPlayListPosition_f(void) // the playlist selecter doesn't actually work
|
||||
{
|
||||
//int length = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETLISTLENGTH); //set a max
|
||||
char *input;
|
||||
int inputnumber;
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputnumber = atoi(input);
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,inputnumber,IPC_SETPLAYLISTPOS);
|
||||
Sleep(100);
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_STARTPLAY); // the above only selects it, doesn't actually play it.
|
||||
|
||||
Con_Printf("Attemped to set playlist position %s\n",input);
|
||||
}
|
||||
|
||||
void Winamp_Volume_f(void) // I think this only works when the client did the winamp_play
|
||||
{
|
||||
char *input;
|
||||
int inputnumber;
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputnumber = atoi(input);
|
||||
|
||||
if ((input == "") || (inputnumber > 255))
|
||||
{
|
||||
Con_Printf("Choose a number between 0 and 255\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,inputnumber,IPC_SETVOLUME);
|
||||
|
||||
Con_Printf("Winamp volume set to: %s\n",input);
|
||||
}
|
||||
|
||||
void Winamp_ChannelPanning_f(void) // doesn't seem to work for me
|
||||
{
|
||||
char *input;
|
||||
int inputnumber;
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputnumber = atoi(input);
|
||||
|
||||
if ((input == "") || (inputnumber > 255))
|
||||
{
|
||||
Con_Printf("Choose a number between 0 (left) and 255 (right). Center is about 127\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,inputnumber,IPC_SETPANNING);
|
||||
|
||||
Con_Printf("Winamp channel panning set to: %s\n",input);
|
||||
}
|
||||
|
||||
void Winamp_PlayListLength_f(void) // has a habit of returning 0 when you dont use winamp_play to start off playing
|
||||
{
|
||||
int length = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETLISTLENGTH);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Con_Printf("Winamp playlist length: %d\n",length);
|
||||
}
|
||||
|
||||
void Winamp_PlayListPosition_f(void) // has a habit of return 0 of 0
|
||||
{
|
||||
int pos = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETLISTPOS);
|
||||
int length = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETLISTLENGTH);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Con_Printf("Winamp currently on position '%d' of '%d'\n",pos,length);
|
||||
}
|
||||
|
||||
void Winamp_SongInfo_f(void)
|
||||
{
|
||||
char title[255];
|
||||
int res = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_ISPLAYING);
|
||||
int samplerate = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETINFO);
|
||||
int bitrate = SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETINFO);
|
||||
int channels = SendMessage(hwnd_winamp,WM_WA_IPC,2,IPC_GETINFO);
|
||||
GetWindowText(hwnd_winamp, title, sizeof(title));
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
Con_Printf("WinAmp is off\n");
|
||||
return;
|
||||
}
|
||||
else if (res == 1)
|
||||
{
|
||||
Con_Printf("Currently playing: %s\nSamplerate: %dkHz\nBitrate: %dkbps \nChannels: %d\n",title,samplerate,bitrate,channels);
|
||||
return;
|
||||
}
|
||||
else if (res == 3)
|
||||
{
|
||||
Con_Printf("Winamp is paused\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void Winamp_Restart_f(void)
|
||||
{
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_RESTARTWINAMP);
|
||||
|
||||
Con_Printf("Attempting to restart winamp\n");
|
||||
}
|
||||
|
||||
void Winamp_Shuffle_f(void) //it works, thats all i can say lol
|
||||
{
|
||||
char *input;
|
||||
int inputnumber;
|
||||
int inputnumber2;
|
||||
int get = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GET_SHUFFLE);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputnumber2 = atoi(input);
|
||||
|
||||
inputnumber = Cmd_Argc();
|
||||
|
||||
if (inputnumber2 == 1)
|
||||
{
|
||||
PostMessage(hwnd_winamp,WM_WA_IPC,1,IPC_SET_SHUFFLE);
|
||||
Con_Printf("Winamp shuffle turned on\n");
|
||||
return;
|
||||
}
|
||||
else if ((inputnumber2 == 0) && (inputnumber == 2))
|
||||
{
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_SET_SHUFFLE);
|
||||
Con_Printf("Winamp shuffle turned off\n");
|
||||
return;
|
||||
}
|
||||
else if (get == 1)
|
||||
{
|
||||
Con_Printf("Winamp shuffle is currently on\n");
|
||||
}
|
||||
else if (get == 0)
|
||||
{
|
||||
Con_Printf("Winamp shuffle is currently off\n");
|
||||
}
|
||||
|
||||
Con_Printf("Enter 1 to to turn Winamp shuffle on, 0 to turn it off\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void Winamp_Repeat_f(void) // it works, thats all i can say lol
|
||||
{
|
||||
char *input;
|
||||
int inputnumber;
|
||||
int inputnumber2;
|
||||
int get = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GET_REPEAT);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
{
|
||||
Con_Printf("Winamp not loaded\n");
|
||||
return;
|
||||
}
|
||||
|
||||
input = Cmd_Argv(1);
|
||||
|
||||
inputnumber2 = atoi(input);
|
||||
|
||||
inputnumber = Cmd_Argc();
|
||||
|
||||
if (inputnumber2 == 1)
|
||||
{
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_SET_REPEAT);
|
||||
Con_Printf("Winamp repeat turned on\n");
|
||||
return;
|
||||
}
|
||||
else if ((inputnumber2 == 0) && (inputnumber == 2))
|
||||
{
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_SET_REPEAT);
|
||||
Con_Printf("Winamp repeat turned off\n");
|
||||
return;
|
||||
}
|
||||
else if (get == 1)
|
||||
{
|
||||
Con_Printf("Winamp repeat is currently on\n");
|
||||
}
|
||||
else if (get == 0)
|
||||
{
|
||||
Con_Printf("Winamp repeat is currently off\n");
|
||||
}
|
||||
|
||||
Con_Printf("Enter 1 to to turn Winamp repeat on, 0 to turn it off\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void Winamp_VolumeUp_f(void)
|
||||
{
|
||||
SendMessage(hwnd_winamp, WM_COMMAND, WINAMP_VOLUMEUP, 0);
|
||||
|
||||
Con_Printf("Winamp volume incremented\n");
|
||||
}
|
||||
|
||||
void Winamp_VolumeDown_f(void)
|
||||
{
|
||||
SendMessage(hwnd_winamp, WM_COMMAND, WINAMP_VOLUMEDOWN, 0);
|
||||
|
||||
Con_Printf("Winamp volume decremented\n");
|
||||
}
|
||||
|
||||
void Winamp_FastForward5Seconds_f(void)
|
||||
{
|
||||
SendMessage(hwnd_winamp, WM_COMMAND, WINAMP_FFWD5S, 0);
|
||||
|
||||
Con_Printf("Winamp fast forwarded 5 seconds\n");
|
||||
}
|
||||
|
||||
void Winamp_Rewind5Seconds_f(void)
|
||||
{
|
||||
SendMessage(hwnd_winamp, WM_COMMAND, WINAMP_REW5S, 0);
|
||||
|
||||
Con_Printf("Winamp rewinded 5 seconds\n");
|
||||
}
|
||||
|
||||
// End Moodles Attempt at Winamp Commands
|
||||
|
||||
|
||||
void M_Media_Draw (void)
|
||||
{
|
||||
mpic_t *p;
|
||||
mediatrack_t *track;
|
||||
int y;
|
||||
int op, i;
|
||||
char samplerate[20]; // usually 44kHz
|
||||
char bitrate[20];
|
||||
char channels[20];
|
||||
char sr2[20];
|
||||
char br2[20];
|
||||
char chns2[20];
|
||||
char title[255];
|
||||
int res = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_ISPLAYING);
|
||||
|
||||
int sr = SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETINFO); // M_Print wants chars, not int's
|
||||
int br = SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_GETINFO);
|
||||
int chns = SendMessage(hwnd_winamp,WM_WA_IPC,2,IPC_GETINFO);
|
||||
|
||||
if (!WinAmp_GetHandle())
|
||||
return false;
|
||||
|
||||
GetWindowText(hwnd_winamp, title, sizeof(title));
|
||||
|
||||
strcpy(samplerate,"Samplerate: ");
|
||||
strcpy(bitrate,"Bitrate: ");
|
||||
strcpy(channels,"Channels: ");
|
||||
|
||||
itoa ( sr, sr2, 10);
|
||||
itoa ( br, br2, 10);
|
||||
itoa ( chns, chns2, 10);
|
||||
|
||||
strcat(samplerate,sr2);
|
||||
strcat(bitrate,br2);
|
||||
strcat(channels,chns2);
|
||||
|
||||
strcat(samplerate,"kHz");
|
||||
strcat(bitrate,"kbps");
|
||||
|
||||
#define MP_Hightlight(x,y,text,hl) (hl?M_PrintWhite(x, y, text):M_Print(x, y, text))
|
||||
|
||||
p = Draw_CachePic ("gfx/p_option.lmp");
|
||||
M_DrawPic ( (320-p->width)/2, 4, p);
|
||||
if (!bgmvolume.value)
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
M_Print (12, 32, "WinAmp is off");
|
||||
}
|
||||
else if (res == 1)
|
||||
{
|
||||
M_Print (12, 32, "WinAmp is on and Currently playing:");
|
||||
M_Print (12, 40, title);
|
||||
M_Print (12, 48, samplerate);
|
||||
M_Print (12, 56, bitrate);
|
||||
M_Print (12, 64, channels);
|
||||
}
|
||||
else if (res == 3)
|
||||
{
|
||||
M_Print (12, 32, "WinAmp is paused and on:");
|
||||
M_Print (12, 40, currenttrack.nicename);
|
||||
}
|
||||
|
||||
/*if (!bgmvolume.value)
|
||||
M_Print (12, 32, "Not playing - no volume");
|
||||
else if (!*currenttrack.nicename)
|
||||
{
|
||||
if (!tracks)
|
||||
M_Print (12, 32, "Not playing - no track to play");
|
||||
else
|
||||
if (!*currenttrack.nicename) //elseif
|
||||
{
|
||||
|
||||
#ifdef WINAMP
|
||||
if (!WinAmp_GetHandle())
|
||||
M_Print (12, 32, "Please start WinAmp 2");
|
||||
|
@ -330,19 +750,18 @@ void M_Media_Draw (void)
|
|||
#endif
|
||||
M_Print (12, 32, "Not playing - switched off");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
M_Print (12, 32, "Currently playing:");
|
||||
M_Print (12, 40, currenttrack.nicename);
|
||||
}
|
||||
}*/
|
||||
|
||||
op = selectedoption - (vid.height-52)/16;
|
||||
if (op + (vid.height-52)/8>numtracks)
|
||||
op = numtracks - (vid.height-52)/8;
|
||||
if (op < MEDIA_MIN)
|
||||
op = MEDIA_MIN;
|
||||
y=52;
|
||||
y=100;
|
||||
while(op < 0)
|
||||
{
|
||||
switch(op)
|
||||
|
@ -377,25 +796,43 @@ void M_Media_Draw (void)
|
|||
break;
|
||||
case MEDIA_SHUFFLE:
|
||||
if (media_shuffle.value)
|
||||
{
|
||||
MP_Hightlight (12, y, "Shuffle on", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_SET_SHUFFLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
MP_Hightlight (12, y, "Shuffle off", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_SET_SHUFFLE);
|
||||
}
|
||||
y+=8;
|
||||
break;
|
||||
case MEDIA_REPEAT:
|
||||
if (media_shuffle.value)
|
||||
{
|
||||
if (media_repeat.value)
|
||||
{
|
||||
MP_Hightlight (12, y, "Repeat on", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_SET_REPEAT);
|
||||
}
|
||||
else
|
||||
{
|
||||
MP_Hightlight (12, y, "Repeat off", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_SET_REPEAT);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (media_repeat.value)
|
||||
{
|
||||
MP_Hightlight (12, y, "(Repeat on)", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,1,IPC_SET_REPEAT);
|
||||
}
|
||||
else
|
||||
{
|
||||
MP_Hightlight (12, y, "(Repeat off)", op == selectedoption);
|
||||
SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_SET_REPEAT);
|
||||
}
|
||||
}
|
||||
y+=8;
|
||||
break;
|
||||
|
@ -1669,6 +2106,26 @@ void Media_Init(void)
|
|||
Cmd_AddCommand("capturedemo", Media_RecordDemo_f);
|
||||
Cmd_AddCommand("capturestop", Media_StopRecordFilm_f);
|
||||
|
||||
#ifdef WINAMP
|
||||
Cmd_AddCommand("winamp_play", Winamp_Play_f);
|
||||
Cmd_AddCommand("winamp_version", Winamp_Version_f);
|
||||
Cmd_AddCommand("winamp_timeleft", Winamp_TimeLeft_f);
|
||||
Cmd_AddCommand("winamp_jumpto", Winamp_JumpTo_f);
|
||||
Cmd_AddCommand("winamp_gotoplaylistposition", Winamp_GoToPlayListPosition_f);
|
||||
Cmd_AddCommand("winamp_volume", Winamp_Volume_f);
|
||||
Cmd_AddCommand("winamp_channelpanning", Winamp_ChannelPanning_f);
|
||||
Cmd_AddCommand("winamp_playlistlength", Winamp_PlayListLength_f);
|
||||
Cmd_AddCommand("winamp_playlistposition", Winamp_PlayListPosition_f);
|
||||
Cmd_AddCommand("winamp_songinfo", Winamp_SongInfo_f);
|
||||
Cmd_AddCommand("winamp_restart", Winamp_Restart_f);
|
||||
Cmd_AddCommand("winamp_shuffle", Winamp_Shuffle_f);
|
||||
Cmd_AddCommand("winamp_repeat", Winamp_Repeat_f);
|
||||
Cmd_AddCommand("winamp_volumeup", Winamp_VolumeUp_f);
|
||||
Cmd_AddCommand("winamp_volumedown", Winamp_VolumeDown_f);
|
||||
Cmd_AddCommand("winamp_fastforward5seconds", Winamp_FastForward5Seconds_f);
|
||||
Cmd_AddCommand("winamp_rewind5seconds", Winamp_Rewind5Seconds_f);
|
||||
#endif
|
||||
|
||||
Cvar_Register(&capturemessage, "AVI capture controls");
|
||||
Cvar_Register(&capturesound, "AVI capture controls");
|
||||
Cvar_Register(&capturerate, "AVI capture controls");
|
||||
|
@ -1680,14 +2137,14 @@ void Media_Init(void)
|
|||
#endif
|
||||
Cvar_Register(&media_shuffle, "Media player things");
|
||||
Cvar_Register(&media_repeat, "Media player things");
|
||||
Cvar_Register(&winamp_dir, "Winamp Things");
|
||||
Cvar_Register(&winamp_exe, "Winamp Things");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#else
|
||||
void Media_Init(void){}
|
||||
void M_Media_Draw (void){}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue