1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-02-22 11:05:50 +01:00

initial import

This commit is contained in:
root
2010-02-09 21:25:29 +01:00
commit b2719dc011
1080 changed files with 41656 additions and 0 deletions

View File

@@ -0,0 +1 @@
MD5 2dd9b88a02978d3001b48863b8cffc5b modplugxmms-2.05.tar.gz 242595

View File

@@ -0,0 +1,73 @@
--- stdafx.h
+++ stdafx.h
23a24,91
> #elif defined(__x86_64__)
>
> #include <stdlib.h>
> #include <stdio.h>
> #include <string.h>
>
> typedef signed char CHAR;
> typedef unsigned char UCHAR;
> typedef unsigned char* PUCHAR;
> typedef unsigned short USHORT;
> typedef unsigned int ULONG;
> typedef unsigned int UINT;
> typedef unsigned int DWORD;
> typedef int LONG;
> typedef unsigned short WORD;
> typedef unsigned char BYTE;
> typedef unsigned char * LPBYTE;
> typedef bool BOOL;
> typedef char * LPSTR;
> typedef void * LPVOID;
> typedef int * LPLONG;
> typedef unsigned int * LPDWORD;
> typedef unsigned short * LPWORD;
> typedef const char * LPCSTR;
> typedef long LONGLONG;
> typedef void * PVOID;
> typedef void VOID;
>
> inline LONG MulDiv (int a, int b, int c)
> {
> // if (!c) return 0;
> return ((unsigned long)a * (unsigned long) b ) / c;
> }
>
> #define MODPLUG_NO_FILESAVE
> #define NO_AGC
> #define LPCTSTR LPCSTR
> #define lstrcpyn strncpy
> #define lstrcpy strcpy
> #define lstrcmp strcmp
> #define WAVE_FORMAT_PCM 1
> //#define ENABLE_EQ
>
> #define GHND 0
>
> inline signed char * GlobalAllocPtr(unsigned int, size_t size)
> {
> signed char * p = (signed char *) malloc(size);
>
> if (p != NULL) memset(p, 0, size);
> return p;
> }
>
> inline void ProcessPlugins(int n) {}
>
> #define GlobalFreePtr(p) free((void *)(p))
>
> #define strnicmp(a,b,c) strncasecmp(a,b,c)
> #define wsprintf sprintf
>
> #ifndef FALSE
> #define FALSE false
> #endif
>
> #ifndef TRUE
> #define TRUE true
> #endif
>
52d119
<

View File

@@ -0,0 +1,50 @@
diff -ru modplugxmms/archive/arch_gzip.cpp /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_gzip.cpp
--- modplugxmms/archive/arch_gzip.cpp 2003-04-27 14:30:48.000000000 +0300
+++ /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_gzip.cpp 2003-06-02 07:01:24.000000000 +0300
@@ -88,7 +88,10 @@
FILE *f = popen(lCommand.c_str(),"r");
if (f <= 0)
+ {
+ pclose(f);
return false;
+ }
char line[300];
fgets(line, 80, f); // ignore a line.
diff -ru modplugxmms/archive/arch_rar.cpp /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_rar.cpp
--- modplugxmms/archive/arch_rar.cpp 2003-04-27 14:30:48.000000000 +0300
+++ /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_rar.cpp 2003-06-02 06:48:34.000000000 +0300
@@ -175,8 +175,11 @@
lName = lBuffer;
if(IsOurFile(lName))
+ {
+ pclose(f);
return true;
+ }
}
-
+ pclose(f);
return false;
}
diff -ru modplugxmms/archive/arch_zip.cpp /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_zip.cpp
--- modplugxmms/archive/arch_zip.cpp 2003-04-27 14:30:48.000000000 +0300
+++ /home/oscar/modplugxmms-2.041/modplugxmms/archive/arch_zip.cpp 2003-06-02 07:04:05.000000000 +0300
@@ -134,11 +134,16 @@
uint32 tempSize;
if (!processLine(line, &tempSize, lName))
{
+ pclose(f);
return false;
}
+ /* Did you forget an else here or something? */
+ /* Cause there is no real reason to use while if not */
+ pclose(f);
return true;
}
+ pclose(f);
return false;
}