Don't create files we literally never write anything to.
Chris Pressey
4 years ago
11 | 11 |
#define LINAPPLE_VERSION 2
|
12 | 12 |
|
13 | 13 |
#include <curl/curl.h>
|
14 | |
|
15 | |
extern FILE * spMono,*spStereo;
|
16 | 14 |
|
17 | 15 |
extern char VERSIONSTRING[]; // Contructed in WinMain()
|
18 | 16 |
|
782 | 782 |
}
|
783 | 783 |
|
784 | 784 |
|
785 | |
FILE *spMono, *spStereo;
|
786 | |
|
787 | 785 |
//---------------------------------------------------------------------------
|
788 | 786 |
|
789 | 787 |
int main(int argc, char * lpCmdLine[])
|
|
803 | 801 |
bool bBoot = false;
|
804 | 802 |
|
805 | 803 |
registry = fopen(REGISTRY, "rt"); // open conf file (linapple.conf by default)
|
806 | |
spMono = fopen("speakersmono.pcm","wb");
|
807 | |
spStereo = fopen("speakersstereo.pcm","wb");
|
808 | 804 |
|
809 | 805 |
LPSTR szImageName_drive1 = NULL; // file names for images of drive1 and drive2
|
810 | 806 |
LPSTR szImageName_drive2 = NULL;
|
|
1097 | 1093 |
{
|
1098 | 1094 |
fclose(registry); //close conf file (linapple.conf by default)
|
1099 | 1095 |
}
|
1100 | |
fclose(spMono);
|
1101 | |
fclose(spStereo);
|
1102 | 1096 |
|
1103 | 1097 |
SDL_Quit();
|
1104 | 1098 |
// CURL routines
|