You can subscribe to this list here.
2004 |
Jan
(17) |
Feb
(38) |
Mar
(24) |
Apr
(18) |
May
(75) |
Jun
(2) |
Jul
|
Aug
|
Sep
(21) |
Oct
(3) |
Nov
(19) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(15) |
Jul
(2) |
Aug
|
Sep
(5) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
(8) |
Feb
|
Mar
|
Apr
(6) |
May
(73) |
Jun
(57) |
Jul
(12) |
Aug
(68) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(2) |
2
|
3
(5) |
4
(3) |
5
(7) |
6
(2) |
7
|
8
|
9
|
10
|
11
(4) |
12
|
13
|
14
|
15
|
16
|
17
|
18
(3) |
19
|
20
|
21
|
22
|
23
(13) |
24
(6) |
25
(23) |
26
|
27
|
28
|
29
|
30
|
31
|
|
|
From: Spacy <sp...@us...> - 2006-08-25 16:11:50
|
Update of /cvsroot/vba/VisualBoyAdvance/src/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27316/src/win32 Modified Files: DirectSound.cpp Log Message: Sound is now hearable when unchecked "Pause when inactive window" and VBA does not have the focus. Index: DirectSound.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/DirectSound.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DirectSound.cpp 6 Aug 2006 12:40:35 -0000 1.5 --- DirectSound.cpp 25 Aug 2006 16:11:43 -0000 1.6 *************** *** 185,189 **** ZeroMemory( &dsbdesc, sizeof(DSBUFFERDESC) ); dsbdesc.dwSize = sizeof(DSBUFFERDESC); ! dsbdesc.dwFlags = DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_CTRLPOSITIONNOTIFY; if( theApp.dsoundDisableHardwareAcceleration ) { dsbdesc.dwFlags |= DSBCAPS_LOCSOFTWARE; --- 185,189 ---- ZeroMemory( &dsbdesc, sizeof(DSBUFFERDESC) ); dsbdesc.dwSize = sizeof(DSBUFFERDESC); ! dsbdesc.dwFlags = DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_CTRLPOSITIONNOTIFY | DSBCAPS_GLOBALFOCUS; if( theApp.dsoundDisableHardwareAcceleration ) { dsbdesc.dwFlags |= DSBCAPS_LOCSOFTWARE; |
From: Spacy <sp...@us...> - 2006-08-25 15:27:19
|
Update of /cvsroot/vba/VisualBoyAdvance/src/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8862/src/win32 Modified Files: skinButton.cpp Log Message: Fixed bug [ 1154031 ] Skin Buttons by Nunya Business - thecloudofsmoke Index: skinButton.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/skinButton.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** skinButton.cpp 27 May 2006 14:47:33 -0000 1.8 --- skinButton.cpp 25 Aug 2006 15:27:16 -0000 1.9 *************** *** 127,130 **** --- 127,132 ---- inside &= PtInRegion(region, pt.x, pt.y); if(inside) { + ReleaseCapture(); + Invalidate(); HWND hWnd = m_hWnd; if(idCommand != 0) |
From: Spacy <sp...@us...> - 2006-08-25 14:51:00
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv25724/src Modified Files: Gfx.h Log Message: Fixed bug [ 1472649 ] Alpha blending loses precision by JSensebe - jsensebe Index: Gfx.h =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/Gfx.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Gfx.h 3 Sep 2005 12:28:23 -0000 1.17 --- Gfx.h 25 Aug 2006 14:50:53 -0000 1.18 *************** *** 1604,1611 **** int b0 = ((color2 >> 10) & 0x1F); ! r = ((r * ca) >> 4) + ((r0 * cb) >> 4); ! g = ((g * ca) >> 4) + ((g0 * cb) >> 4); ! b = ((b * ca) >> 4) + ((b0 * cb) >> 4); ! if(r > 31) r = 31; --- 1604,1611 ---- int b0 = ((color2 >> 10) & 0x1F); ! r = ((r * ca) + (r0 * cb)) >> 4; ! g = ((g * ca) + (g0 * cb)) >> 4; ! b = ((b * ca) + (b0 * cb)) >> 4; ! if(r > 31) r = 31; *************** *** 1633,1639 **** int b0 = ((color2 >> 10) & 0x1F); ! r = ((r * ca) >> 4) + ((r0 * cb) >> 4); ! g = ((g * ca) >> 4) + ((g0 * cb) >> 4); ! b = ((b * ca) >> 4) + ((b0 * cb) >> 4); if(r > 31) --- 1633,1639 ---- int b0 = ((color2 >> 10) & 0x1F); ! r = ((r * ca) + (r0 * cb)) >> 4; ! g = ((g * ca) + (g0 * cb)) >> 4; ! b = ((b * ca) + (b0 * cb)) >> 4; if(r > 31) |
From: Spacy <sp...@us...> - 2006-08-25 14:13:41
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8786/src Modified Files: GBA.cpp GBA.h Log Message: Applied patch [ 1044856 ] Enable profiling multiple regions of memory. by Rib Rdb - ribrdb Index: GBA.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/GBA.cpp,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** GBA.cpp 25 Aug 2006 13:30:08 -0000 1.69 --- GBA.cpp 25 Aug 2006 14:13:38 -0000 1.70 *************** *** 105,112 **** int profilingTicks = 0; int profilingTicksReload = 0; ! static char *profilBuffer = NULL; ! static int profilSize = 0; ! static u32 profilLowPC = 0; ! static int profilScale = 0; #endif --- 105,109 ---- int profilingTicks = 0; int profilingTicksReload = 0; ! static profile_segment *profilSegment = NULL; #endif *************** *** 502,511 **** #ifdef PROFILING ! void cpuProfil(char *buf, int size, u32 lowPC, int scale) { ! profilBuffer = buf; ! profilSize = size; ! profilLowPC = lowPC; ! profilScale = scale; } --- 499,505 ---- #ifdef PROFILING ! void cpuProfil(profile_segment *seg) { ! profilSegment = seg; } *************** *** 4275,4284 **** if(profilingTicks <= 0) { profilingTicks += profilingTicksReload; ! if(profilBuffer && profilSize) { ! u16 *b = (u16 *)profilBuffer; ! int pc = ((reg[15].I - profilLowPC) * profilScale)/0x10000; ! if(pc >= 0 && pc < profilSize) { b[pc]++; } } } --- 4269,4284 ---- if(profilingTicks <= 0) { profilingTicks += profilingTicksReload; ! if(profilSegment) { ! profile_segment *seg = profilSegment; ! do { ! u16 *b = (u16 *)seg->sbuf; ! int pc = ((reg[15].I - seg->s_lowpc) * seg->s_scale)/0x10000; ! if(pc >= 0 && pc < seg->ssiz) { b[pc]++; + break; } + + seg = seg->next; + } while(seg); } } Index: GBA.h =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/GBA.h,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** GBA.h 24 Jun 2006 20:21:47 -0000 1.23 --- GBA.h 25 Aug 2006 14:13:38 -0000 1.24 *************** *** 123,127 **** extern bool CPUIsZipFile(const char *); #ifdef PROFILING ! extern void cpuProfil(char *buffer, int, u32, int); extern void cpuEnableProfiling(int hz); #endif --- 123,128 ---- extern bool CPUIsZipFile(const char *); #ifdef PROFILING ! #include "prof/prof.h" ! extern void cpuProfil(profile_segment *seg); extern void cpuEnableProfiling(int hz); #endif |
From: Spacy <sp...@us...> - 2006-08-25 14:13:41
|
Update of /cvsroot/vba/VisualBoyAdvance/src/prof In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8786/src/prof Modified Files: prof.cpp prof.h Log Message: Applied patch [ 1044856 ] Enable profiling multiple regions of memory. by Rib Rdb - ribrdb Index: prof.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/prof/prof.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** prof.cpp 13 May 2004 15:06:47 -0000 1.5 --- prof.cpp 25 Aug 2006 14:13:38 -0000 1.6 *************** *** 58,75 **** #include "../NLS.h" /* * froms is actually a bunch of unsigned shorts indexing tos */ static int profiling = 3; - static unsigned short *froms; - static struct tostruct *tos = 0; - static long tolimit = 0; - static u32 s_lowpc = 0; - static u32 s_highpc = 0; - static unsigned long s_textsize = 0; ! static int ssiz; ! static char *sbuf; ! static int s_scale; static int hz = 0; --- 58,69 ---- #include "../NLS.h" + #include "prof.h" /* for struct profile_segment */ + /* * froms is actually a bunch of unsigned shorts indexing tos */ static int profiling = 3; ! static profile_segment *first_segment = NULL; static int hz = 0; *************** *** 128,132 **** /* start */ #ifdef PROFILING ! cpuProfil(sbuf, ssiz, (u32)s_lowpc, s_scale); #endif profiling = 0; --- 122,126 ---- /* start */ #ifdef PROFILING ! cpuProfil(first_segment); #endif profiling = 0; *************** *** 134,138 **** /* stop */ #ifdef PROFILING ! cpuProfil(NULL, 0, 0, 0); #endif profiling = 3; --- 128,132 ---- /* stop */ #ifdef PROFILING ! cpuProfil(NULL); #endif profiling = 3; *************** *** 148,152 **** --- 142,154 ---- char *buffer; int o; + profile_segment *newseg = (profile_segment*)calloc(1,sizeof(profile_segment)); + if (newseg) { + newseg->next = first_segment; + first_segment = newseg; + } else { + systemMessage(0, MSG); + return; + } /* * round lowpc and highpc to multiples of the density we're using *************** *** 154,162 **** */ lowpc = ROUNDDOWN(lowpc, HISTFRACTION*sizeof(HISTCOUNTER)); ! s_lowpc = lowpc; highpc = ROUNDUP(highpc, HISTFRACTION*sizeof(HISTCOUNTER)); ! s_highpc = highpc; ! s_textsize = highpc - lowpc; ! monsize = (s_textsize / HISTFRACTION); buffer = (char *)calloc(1, 2*monsize ); if ( buffer == NULL ) { --- 156,164 ---- */ lowpc = ROUNDDOWN(lowpc, HISTFRACTION*sizeof(HISTCOUNTER)); ! newseg->s_lowpc = lowpc; highpc = ROUNDUP(highpc, HISTFRACTION*sizeof(HISTCOUNTER)); ! newseg->s_highpc = highpc; ! newseg->s_textsize = highpc - lowpc; ! monsize = (newseg->s_textsize / HISTFRACTION); buffer = (char *)calloc(1, 2*monsize ); if ( buffer == NULL ) { *************** *** 164,169 **** return; } ! froms = (unsigned short *) calloc(1, 4*s_textsize / HASHFRACTION ); ! if ( froms == NULL ) { systemMessage(0, MSG); free(buffer); --- 166,171 ---- return; } ! newseg->froms = (unsigned short *) calloc(1, 4*newseg->s_textsize / HASHFRACTION ); ! if ( newseg->froms == NULL ) { systemMessage(0, MSG); free(buffer); *************** *** 171,182 **** return; } ! tolimit = s_textsize * ARCDENSITY / 100; ! if ( tolimit < MINARCS ) { ! tolimit = MINARCS; ! } else if ( tolimit > 65534 ) { ! tolimit = 65534; } ! tos = (struct tostruct *) calloc(1, tolimit * sizeof( struct tostruct ) ); ! if ( tos == NULL ) { systemMessage(0, MSG); --- 173,184 ---- return; } ! newseg->tolimit = newseg->s_textsize * ARCDENSITY / 100; ! if ( newseg->tolimit < MINARCS ) { ! newseg->tolimit = MINARCS; ! } else if ( newseg->tolimit > 65534 ) { ! newseg->tolimit = 65534; } ! newseg->tos = (struct tostruct *) calloc(1, newseg->tolimit * sizeof( struct tostruct ) ); ! if ( newseg->tos == NULL ) { systemMessage(0, MSG); *************** *** 184,202 **** buffer = NULL; ! free(froms); ! froms = NULL; return; } ! tos[0].link = 0; ! sbuf = buffer; ! ssiz = monsize; if ( monsize <= 0 ) return; o = highpc - lowpc; if( monsize < o ) ! s_scale = (int)(( (float) monsize / o ) * SCALE_1_TO_1); else ! s_scale = SCALE_1_TO_1; profControl(1); } --- 186,204 ---- buffer = NULL; ! free(newseg->froms); ! newseg->froms = NULL; return; } ! newseg->tos[0].link = 0; ! newseg->sbuf = buffer; ! newseg->ssiz = monsize; if ( monsize <= 0 ) return; o = highpc - lowpc; if( monsize < o ) ! newseg->s_scale = (int)(( (float) monsize / o ) * SCALE_1_TO_1); else ! newseg->s_scale = SCALE_1_TO_1; profControl(1); } *************** *** 210,213 **** --- 212,216 ---- int toindex; struct gmon_hdr ghdr; + profile_segment *seg = first_segment; profControl(0); *************** *** 230,238 **** hz = 100; ! hist_num_bins = ssiz; if(profWrite8(fd, GMON_TAG_TIME_HIST) || ! profWrite32(fd, (u32)s_lowpc) || ! profWrite32(fd, (u32)s_highpc) || profWrite32(fd, hist_num_bins) || profWrite32(fd, hz) || --- 233,243 ---- hz = 100; ! while(seg) { ! ! hist_num_bins = seg->ssiz; if(profWrite8(fd, GMON_TAG_TIME_HIST) || ! profWrite32(fd, (u32)seg->s_lowpc) || ! profWrite32(fd, (u32)seg->s_highpc) || profWrite32(fd, hist_num_bins) || profWrite32(fd, hz) || *************** *** 243,247 **** return; } ! u16 *hist_sample = (u16 *)sbuf; u16 count; --- 248,252 ---- return; } ! u16 *hist_sample = (u16 *)seg->sbuf; u16 count; *************** *** 258,272 **** } ! endfrom = s_textsize / (HASHFRACTION * sizeof(*froms)); for ( fromindex = 0 ; fromindex < endfrom ; fromindex++ ) { ! if ( froms[fromindex] == 0 ) { continue; } ! frompc = s_lowpc + (fromindex * HASHFRACTION * sizeof(*froms)); ! for (toindex=froms[fromindex]; toindex!=0; toindex=tos[toindex].link) { if(profWrite8(fd, GMON_TAG_CG_ARC) || profWrite32(fd, (u32)frompc) || ! profWrite32(fd, (u32)tos[toindex].selfpc) || ! profWrite32(fd, tos[toindex].count)) { systemMessage(0, "mcount: arc"); fclose(fd); --- 263,277 ---- } ! endfrom = seg->s_textsize / (HASHFRACTION * sizeof(*seg->froms)); for ( fromindex = 0 ; fromindex < endfrom ; fromindex++ ) { ! if ( seg->froms[fromindex] == 0 ) { continue; } ! frompc = seg->s_lowpc + (fromindex * HASHFRACTION * sizeof(*seg->froms)); ! for (toindex=seg->froms[fromindex]; toindex!=0; toindex=seg->tos[toindex].link) { if(profWrite8(fd, GMON_TAG_CG_ARC) || profWrite32(fd, (u32)frompc) || ! profWrite32(fd, (u32)seg->tos[toindex].selfpc) || ! profWrite32(fd, seg->tos[toindex].count)) { systemMessage(0, "mcount: arc"); fclose(fd); *************** *** 275,278 **** --- 280,285 ---- } } + seg = seg->next; + } fclose(fd); } *************** *** 285,288 **** --- 292,296 ---- register struct tostruct *prevtop; register long toindex; + profile_segment *seg = first_segment; /* *************** *** 310,319 **** * not from text space. too bad. */ ! frompcindex = (unsigned short *) ((long) frompcindex - (long) s_lowpc); ! if ((unsigned long) frompcindex > s_textsize) { goto done; } frompcindex = ! &froms[((long) frompcindex) / (HASHFRACTION * sizeof(*froms))]; toindex = *frompcindex; if (toindex == 0) { --- 318,334 ---- * not from text space. too bad. */ ! while(seg) { ! u32 index = (long)frompcindex - (long)seg->s_lowpc; ! if (index <= seg->s_textsize) { ! frompcindex = (unsigned short *) index; ! break; ! } ! seg = seg->next; ! } ! if ((unsigned long) frompcindex > seg->s_textsize) { goto done; } frompcindex = ! &(seg->froms[((long) frompcindex) / (HASHFRACTION * sizeof(*seg->froms))]); toindex = *frompcindex; if (toindex == 0) { *************** *** 321,330 **** * first time traversing this arc */ ! toindex = ++tos[0].link; ! if (toindex >= tolimit) { goto overflow; } *frompcindex = (unsigned short)toindex; ! top = &tos[toindex]; top->selfpc = selfpc; top->count = 1; --- 336,345 ---- * first time traversing this arc */ ! toindex = ++seg->tos[0].link; ! if (toindex >= seg->tolimit) { goto overflow; } *frompcindex = (unsigned short)toindex; ! top = &seg->tos[toindex]; top->selfpc = selfpc; top->count = 1; *************** *** 332,336 **** goto done; } ! top = &tos[toindex]; if (top->selfpc == selfpc) { /* --- 347,351 ---- goto done; } ! top = &seg->tos[toindex]; if (top->selfpc == selfpc) { /* *************** *** 354,362 **** * and link it to the head of the chain. */ ! toindex = ++tos[0].link; ! if (toindex >= tolimit) { goto overflow; } ! top = &tos[toindex]; top->selfpc = selfpc; top->count = 1; --- 369,377 ---- * and link it to the head of the chain. */ ! toindex = ++seg->tos[0].link; ! if (toindex >= seg->tolimit) { goto overflow; } ! top = &seg->tos[toindex]; top->selfpc = selfpc; top->count = 1; *************** *** 369,373 **** */ prevtop = top; ! top = &tos[top->link]; if (top->selfpc == selfpc) { /* --- 384,388 ---- */ prevtop = top; ! top = &seg->tos[top->link]; if (top->selfpc == selfpc) { /* Index: prof.h =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/prof/prof.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** prof.h 13 May 2004 15:06:47 -0000 1.2 --- prof.h 25 Aug 2006 14:13:38 -0000 1.3 *************** *** 25,28 **** --- 25,46 ---- all the data structures are ready. */ + + typedef struct profile_segment { + unsigned short *froms; + struct tostruct *tos; + long tolimit; + + u32 s_lowpc; + u32 s_highpc; + unsigned long s_textsize; + + int ssiz; + char *sbuf; + int s_scale; + + struct profile_segment *next; + + } profile_segment; + extern void profControl(int mode); extern void profStartup(u32 lowpc, u32 highpc); |
From: Spacy <sp...@us...> - 2006-08-25 14:06:10
|
Update of /cvsroot/vba/VisualBoyAdvance/src/sdl In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5171/src/sdl Modified Files: SDL.cpp Log Message: Applied patch [ 1264167 ] Buffer overflow patch by Quirky - richq Index: SDL.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/SDL.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** SDL.cpp 25 Aug 2006 13:59:54 -0000 1.17 --- SDL.cpp 25 Aug 2006 14:06:01 -0000 1.18 *************** *** 188,191 **** --- 188,192 ---- #define REWIND_SIZE 400000 + #define SYSMSG_BUFFER_SIZE 1024 #define _stricmp strcasecmp *************** *** 2193,2196 **** --- 2194,2203 ---- if(optind < argc) { char *szFile = argv[optind]; + u32 len = strlen(szFile); + if (len > SYSMSG_BUFFER_SIZE) + { + fprintf(stderr,"%s :%s: File name too long\n",argv[0],szFile); + exit(-1); + } utilGetBaseName(szFile, filename); *************** *** 2612,2616 **** void systemMessage(int num, const char *msg, ...) { ! char buffer[2048]; va_list valist; --- 2619,2623 ---- void systemMessage(int num, const char *msg, ...) { ! char buffer[SYSMSG_BUFFER_SIZE*2]; va_list valist; |
From: Spacy <sp...@us...> - 2006-08-25 14:00:58
|
Update of /cvsroot/vba/VisualBoyAdvance/src/sdl In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv2767/src/sdl Modified Files: debugger.cpp Log Message: Added [ 1334509 ] Binary/Text search feature patch by devzz / F-Zero Index: debugger.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/debugger.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** debugger.cpp 25 Aug 2006 13:30:15 -0000 1.11 --- debugger.cpp 25 Aug 2006 14:00:49 -0000 1.12 *************** *** 75,79 **** --- 75,87 ---- }; + unsigned int SearchStart = 0xFFFFFFFF; + unsigned int SearchMaxMatches = 5; + u8 SearchData [64]; // It doesn't make much sense to search for more than 64 bytes + unsigned int SearchLength = 0; + unsigned int SearchResults; + static void debuggerContinueAfterBreakpoint(); + void debuggerDoSearch(); + unsigned int AddressToGBA(u8* mem); static void debuggerHelp(int,char **); *************** *** 101,104 **** --- 109,115 ---- static void debuggerFileDisassembleArm(int, char **); static void debuggerFileDisassembleThumb(int, char **); + static void debuggerFindText(int, char **); + static void debuggerFindHex(int, char **); + static void debuggerFindResume(int, char **); static void debuggerIo(int, char **); static void debuggerLast(int, char **); *************** *** 149,152 **** --- 160,166 ---- { "fda", debuggerFileDisassembleArm, "Disassemble ARM instructions to file", "<file> [<address> [<number>]]" }, { "fdt", debuggerFileDisassembleThumb, "Disassemble THUMB instructions to file", "<file> [<address> [<number>]]" }, + { "ft", debuggerFindText, "Search memory for ASCII-string.", "<start> [<max-result>] <string>" }, + { "fh", debuggerFindHex, "Search memory for hex-string.", "<start> [<max-result>] <hex-string>" }, + { "fr", debuggerFindResume, "Resume current search.", "[<max-result>]" }, { "h", debuggerHelp, "Show this help information. Type h <command> for command help", "[<command>]" }, { "io", debuggerIo, "Show I/O registers status", "[video|video2|dma|timer|misc]" }, *************** *** 1528,1531 **** --- 1542,1743 ---- } + void debuggerFindText(int n, char **args) + { + if ((n == 4) || (n == 3)) + { + SearchResults = 0; + sscanf(args[1], "%x", &SearchStart); + + if (n == 4) + { + sscanf(args[2], "%u", &SearchMaxMatches); + strncpy((char*) SearchData, args[3], 64); + SearchLength = strlen(args[3]); + } + else if (n == 3) + { + strncpy((char*) SearchData, args[2], 64); + SearchLength = strlen(args[2]); + }; + + if (SearchLength > 64) + { + printf ("Entered string (length: %d) is longer than 64 bytes and was cut.\n", SearchLength); + SearchLength = 64; + }; + + debuggerDoSearch (); + + } else + debuggerUsage("ft"); + }; + + void debuggerFindHex(int n, char **args) + { + if ((n == 4) || (n == 3)) + { + SearchResults = 0; + sscanf(args[1], "%x", &SearchStart); + + char SearchHex [128]; + if (n == 4) + { + sscanf(args[2], "%u", &SearchMaxMatches); + strncpy(SearchHex, args[3], 128); + SearchLength = strlen(args[3]); + } + else if (n == 3) + { + strncpy(SearchHex, args[2], 128); + SearchLength = strlen(args[2]); + }; + + if (SearchLength & 1) + printf ("Unaligned bytecount: %d,5. Last digit (%c) cut.\n", SearchLength / 2, SearchHex [SearchLength - 1]); + + SearchLength /= 2; + + if (SearchLength > 64) + { + printf ("Entered string (length: %d) is longer than 64 bytes and was cut.\n", SearchLength); + SearchLength = 64; + }; + + for (unsigned int i = 0; i < SearchLength; i++) + { + unsigned int cbuf = 0; + sscanf (&SearchHex [i << 1], "%02x", &cbuf); + SearchData [i] = cbuf; + }; + + debuggerDoSearch (); + + } else + debuggerUsage("fh"); + }; + + void debuggerFindResume(int n, char **args) + { + if ((n == 1) || (n == 2)) + { + if (SearchLength == 0) + { + printf("Error: No search in progress. Start a search with ft or fh.\n"); + debuggerUsage("fr"); + return; + }; + + if (n == 2) + sscanf(args[1], "%u", &SearchMaxMatches); + + debuggerDoSearch(); + + } else + debuggerUsage("fr"); + }; + + void debuggerDoSearch() + { + int count = 0; + + while (true) + { + unsigned int final = SearchStart + SearchLength - 1; + u8* end; + u8* start; + + switch (SearchStart >> 24) + { + case 0: + if (final > 0x00003FFF) { SearchStart = 0x02000000; continue; } + else { start = bios + (SearchStart & 0x3FFF); end = bios + 0x3FFF; break; }; + case 2: + if (final > 0x0203FFFF) { SearchStart = 0x03000000; continue; } + else { start = workRAM + (SearchStart & 0x3FFFF); end = workRAM + 0x3FFFF; break; }; + case 3: + if (final > 0x03007FFF) { SearchStart = 0x04000000; continue; } + else { start = internalRAM + (SearchStart & 0x7FFF); end = internalRAM + 0x7FFF; break; }; + case 4: + if (final > 0x040003FF) { SearchStart = 0x05000000; continue; } + else { start = ioMem + (SearchStart & 0x3FF); end = ioMem + 0x3FF; break; }; + case 5: + if (final > 0x050003FF) { SearchStart = 0x06000000; continue; } + else { start = paletteRAM + (SearchStart & 0x3FF); end = paletteRAM + 0x3FF; break; }; + case 6: + if (final > 0x0601FFFF) { SearchStart = 0x07000000; continue; } + else { start = vram + (SearchStart & 0x1FFFF); end = vram + 0x1FFFF; break; }; + case 7: + if (final > 0x070003FF) { SearchStart = 0x08000000; continue; } + else { start = oam + (SearchStart & 0x3FF); end = oam + 0x3FF; break; }; + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + if (final <= 0x09FFFFFF) + { start = rom + (SearchStart & 0x01FFFFFF); end = rom + 0x01FFFFFF; break; }; + default: + printf ("Search completed.\n"); + SearchLength = 0; + return; + }; + + end -= SearchLength - 1; + u8 firstbyte = SearchData [0]; + while (start <= end) + { + while ((start <= end) && (*start != firstbyte)) + start++; + + if (start > end) + break; + + unsigned int p = 1; + while ((start [p] == SearchData [p]) && (p < SearchLength)) + p++; + + if (p == SearchLength) + { + printf ("Search result (%d): %08x\n", count + SearchResults, AddressToGBA (start)); + count++; + if (count == SearchMaxMatches) + { + SearchStart = AddressToGBA (start + p); + SearchResults += count; + return; + }; + + start += p; // assume areas don't overlap; alternative: start++; + } else + start++; + }; + + SearchStart = AddressToGBA (end + SearchLength - 1) + 1; + }; + }; + + unsigned int AddressToGBA(u8* mem) + { + if(mem >= &bios[0] && mem <= &bios[0x3fff]) + return 0x00000000 + (mem - &bios[0]); + else if(mem >= &workRAM[0] && mem <= &workRAM[0x3ffff]) + return 0x02000000 + (mem - &workRAM[0]); + else if(mem >= &internalRAM[0] && mem <= &internalRAM[0x7fff]) + return 0x03000000 + (mem - &internalRAM[0]); + else if(mem >= &ioMem[0] && mem <= &ioMem[0x3ff]) + return 0x04000000 + (mem - &ioMem[0]); + else if(mem >= &paletteRAM[0] && mem <= &paletteRAM[0x3ff]) + return 0x05000000 + (mem - &paletteRAM[0]); + else if(mem >= &vram[0] && mem <= &vram[0x1ffff]) + return 0x06000000 + (mem - &vram[0]); + else if(mem >= &oam[0] && mem <= &oam[0x3ff]) + return 0x07000000 + (mem - &oam[0]); + else if(mem >= &rom[0] && mem <= &rom[0x1ffffff]) + return 0x08000000 + (mem - &rom[0]); + else + return 0xFFFFFFFF; + }; + static void debuggerFileDisassemble(int n, char **args) { *************** *** 2345,2348 **** --- 2557,2618 ---- } + char* strqtok (char* string, const char* ctrl) + { // quoted tokens + static char* nexttoken = NULL; + char* str; + + if (string != NULL) + str = string; + else { + if (nexttoken == NULL) + return NULL; + str = nexttoken; + }; + + char deli [32]; + memset (deli, 0, 32 * sizeof (char)); + while (*ctrl) + { + deli [*ctrl >> 3] |= (1 << (*ctrl & 7)); + ctrl++; + }; + // can't allow to be set + deli ['"' >> 3] &= ~(1 << ('"' & 7)); + + // jump over leading delimiters + while ((deli [*str >> 3] & (1 << (*str & 7))) && *str) + str++; + + if (*str == '"') + { + string = ++str; + + // only break if another quote or end of string is found + while ((*str != '"') && *str) + str++; + } else { + string = str; + + // break on delimiter + while (!(deli [*str >> 3] & (1 << (*str & 7))) && *str) + str++; + }; + + if (string == str) + { + nexttoken = NULL; + return NULL; + } else { + if (*str) + { + *str = 0; + nexttoken = str + 1; + } else + nexttoken = NULL; + + return string; + }; + }; + /*extern*/ void debuggerMain() { *************** *** 2362,2370 **** char *s = fgets(buffer, 1024, stdin); ! commands[0] = strtok(s, " \t\n"); if(commands[0] == NULL) continue; commandCount++; ! while((s = strtok(NULL, " \t\n"))) { commands[commandCount++] = s; if(commandCount == 10) --- 2632,2640 ---- char *s = fgets(buffer, 1024, stdin); ! commands[0] = strqtok(s, " \t\n"); if(commands[0] == NULL) continue; commandCount++; ! while((s = strqtok(NULL, " \t\n"))) { commands[commandCount++] = s; if(commandCount == 10) |
From: Spacy <sp...@us...> - 2006-08-25 13:59:57
|
Update of /cvsroot/vba/VisualBoyAdvance/src/sdl In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv2262/src/sdl Modified Files: SDL.cpp Log Message: reopened sound deadlock patch Index: SDL.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/SDL.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** SDL.cpp 25 Aug 2006 13:30:14 -0000 1.16 --- SDL.cpp 25 Aug 2006 13:59:54 -0000 1.17 *************** *** 3024,3028 **** { // Patch #1382692 by deathpudding. ! SDL_CloseAudio (); SDL_DestroySemaphore (sdlBufferLock); SDL_DestroySemaphore (sdlBufferFull); --- 3024,3028 ---- { // Patch #1382692 by deathpudding. ! SDL_CloseAudio (); //TODO: fix freeze SDL_DestroySemaphore (sdlBufferLock); SDL_DestroySemaphore (sdlBufferFull); |
From: Spacy <sp...@us...> - 2006-08-25 13:30:42
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20255/src Modified Files: GBA.cpp Sound.cpp arm-new.h Log Message: applied patch [ 1471725 ] Silence some compilation warning (and fix some real bugs) Index: Sound.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/Sound.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Sound.cpp 6 Jun 2006 21:04:20 -0000 1.17 --- Sound.cpp 25 Aug 2006 13:30:08 -0000 1.18 *************** *** 868,872 **** soundDSAValue = (soundDSFifoA[soundDSFifoAIndex]); ! soundDSFifoAIndex = (++soundDSFifoAIndex) & 31; soundDSFifoACount--; } else --- 868,872 ---- soundDSAValue = (soundDSFifoA[soundDSFifoAIndex]); ! soundDSFifoAIndex = (soundDSFifoAIndex + 1) & 31; soundDSFifoACount--; } else *************** *** 897,901 **** soundDSBValue = (soundDSFifoB[soundDSFifoBIndex]); ! soundDSFifoBIndex = (++soundDSFifoBIndex) & 31; soundDSFifoBCount--; } else { --- 897,901 ---- soundDSBValue = (soundDSFifoB[soundDSFifoBIndex]); ! soundDSFifoBIndex = (soundDSFifoBIndex + 1) & 31; soundDSFifoBCount--; } else { Index: GBA.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/GBA.cpp,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** GBA.cpp 24 Jun 2006 20:21:47 -0000 1.68 --- GBA.cpp 25 Aug 2006 13:30:08 -0000 1.69 *************** *** 2240,2244 **** int sw = 0; int dw = 0; - bool blank = false; int sc = c; --- 2240,2243 ---- *************** *** 4402,4404 **** 5000 #endif ! }; \ No newline at end of file --- 4401,4403 ---- 5000 #endif ! }; Index: arm-new.h =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/arm-new.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** arm-new.h 30 Apr 2006 14:34:50 -0000 1.17 --- arm-new.h 25 Aug 2006 13:30:08 -0000 1.18 *************** *** 8699,8701 **** if (clockTicks == 0) ! clockTicks = codeTicksAccessSeq32(oldArmNextPC) + 1; \ No newline at end of file --- 8699,8701 ---- if (clockTicks == 0) ! clockTicks = codeTicksAccessSeq32(oldArmNextPC) + 1; |
From: Spacy <sp...@us...> - 2006-08-25 13:30:19
|
Update of /cvsroot/vba/VisualBoyAdvance/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20255/win32 Modified Files: vba_vs2005.vcproj Log Message: applied patch [ 1471725 ] Silence some compilation warning (and fix some real bugs) Index: vba_vs2005.vcproj =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/win32/vba_vs2005.vcproj,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** vba_vs2005.vcproj 25 Aug 2006 13:09:04 -0000 1.17 --- vba_vs2005.vcproj 25 Aug 2006 13:30:15 -0000 1.18 *************** *** 2562,2565 **** --- 2562,2569 ---- </FileConfiguration> </File> + <File + RelativePath="..\src\win32\VisualBoyAdvance.exe.manifest" + > + </File> </Filter> <Filter *************** *** 4853,4860 **** </File> </Filter> - <File - RelativePath="..\src\win32\VisualBoyAdvance.exe.manifest" - > - </File> </Files> <Globals> --- 4857,4860 ---- |
From: Spacy <sp...@us...> - 2006-08-25 13:30:19
|
Update of /cvsroot/vba/VisualBoyAdvance/src/gb In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20255/src/gb Modified Files: GB.cpp Log Message: applied patch [ 1471725 ] Silence some compilation warning (and fix some real bugs) Index: GB.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/gb/GB.cpp,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** GB.cpp 6 Jun 2006 21:04:20 -0000 1.28 --- GB.cpp 25 Aug 2006 13:30:09 -0000 1.29 *************** *** 4617,4621 **** { gbLYChangeHappened = true; ! gbMemory[0xff44] = register_LY = (++register_LY) % 154; if (register_LY == 0x91) --- 4617,4621 ---- { gbLYChangeHappened = true; ! gbMemory[0xff44] = register_LY = (register_LY + 1) % 154; if (register_LY == 0x91) *************** *** 5128,5132 **** } } - int newmask = gbJoymask[0] & 255; gbFrameCount++; --- 5128,5131 ---- *************** *** 5441,5443 **** 1000, #endif ! }; \ No newline at end of file --- 5440,5442 ---- 1000, #endif ! }; |
From: Spacy <sp...@us...> - 2006-08-25 13:30:18
|
Update of /cvsroot/vba/VisualBoyAdvance/src/sdl In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20255/src/sdl Modified Files: SDL.cpp debugger.cpp Log Message: applied patch [ 1471725 ] Silence some compilation warning (and fix some real bugs) Index: SDL.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/SDL.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** SDL.cpp 31 Jul 2006 15:51:01 -0000 1.15 --- SDL.cpp 25 Aug 2006 13:30:14 -0000 1.16 *************** *** 1731,1735 **** if(emulating && emulator.emuReadMemState && rewindMemory && rewindCount) { ! rewindPos = --rewindPos & 7; emulator.emuReadMemState(&rewindMemory[REWIND_SIZE*rewindPos], REWIND_SIZE); --- 1731,1735 ---- if(emulating && emulator.emuReadMemState && rewindMemory && rewindCount) { ! rewindPos = (rewindPos - 1) & 7; emulator.emuReadMemState(&rewindMemory[REWIND_SIZE*rewindPos], REWIND_SIZE); *************** *** 2572,2578 **** emulator.emuWriteMemState(&rewindMemory[rewindPos*REWIND_SIZE], REWIND_SIZE)) { ! rewindPos = ++rewindPos & 7; if(rewindCount == 8) ! rewindTopPos = ++rewindTopPos & 7; } } --- 2572,2578 ---- emulator.emuWriteMemState(&rewindMemory[rewindPos*REWIND_SIZE], REWIND_SIZE)) { ! rewindPos = (rewindPos + 1) & 7; if(rewindCount == 8) ! rewindTopPos = (rewindTopPos + 1) & 7; } } Index: debugger.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/debugger.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** debugger.cpp 24 Jun 2006 20:21:47 -0000 1.10 --- debugger.cpp 25 Aug 2006 13:30:15 -0000 1.11 *************** *** 2026,2030 **** char *op=args[start+1]; char *value=args[start+2]; - char *returnmsg=""; char *tsize,*taddress,*tvalue; --- 2026,2029 ---- |
From: Spacy <sp...@us...> - 2006-08-25 13:09:12
|
Update of /cvsroot/vba/VisualBoyAdvance/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11079/win32 Modified Files: vba_vs2005.vcproj Log Message: Applied patch 1362211 [crash when exiting, wrong calloc size] Index: vba_vs2005.vcproj =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/win32/vba_vs2005.vcproj,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** vba_vs2005.vcproj 25 Aug 2006 12:28:39 -0000 1.16 --- vba_vs2005.vcproj 25 Aug 2006 13:09:04 -0000 1.17 *************** *** 268,272 **** OutputFile="$(OutDir)\VisualBoyAdvance_SDL_debug.exe" LinkIncremental="2" ! AdditionalLibraryDirectories="" GenerateManifest="false" IgnoreDefaultLibraryNames="" --- 268,272 ---- OutputFile="$(OutDir)\VisualBoyAdvance_SDL_debug.exe" LinkIncremental="2" ! AdditionalLibraryDirectories="".\dependencies\sdl\$(ConfigurationName)"" GenerateManifest="false" IgnoreDefaultLibraryNames="" *************** *** 360,364 **** OutputFile="$(OutDir)\VisualBoyAdvance_SDL.exe" LinkIncremental="1" ! AdditionalLibraryDirectories="" GenerateManifest="false" IgnoreDefaultLibraryNames="" --- 360,364 ---- OutputFile="$(OutDir)\VisualBoyAdvance_SDL.exe" LinkIncremental="1" ! AdditionalLibraryDirectories="".\dependencies\sdl\$(ConfigurationName)"" GenerateManifest="false" IgnoreDefaultLibraryNames="" *************** *** 1213,1216 **** --- 1213,1232 ---- RelativePath="..\src\win32\skinButton.h" > + <FileConfiguration + Name="SDL_Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + /> + </FileConfiguration> + <FileConfiguration + Name="SDL_Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + /> + </FileConfiguration> </File> <File *************** *** 2237,2240 **** --- 2253,2272 ---- RelativePath="..\src\win32\skin.h" > + <FileConfiguration + Name="SDL_Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + /> + </FileConfiguration> + <FileConfiguration + Name="SDL_Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCustomBuildTool" + /> + </FileConfiguration> </File> <File *************** *** 2765,2768 **** --- 2797,2816 ---- RelativePath="..\src\win32\skinButton.cpp" > + <FileConfiguration + Name="SDL_Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="SDL_Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> </File> <File *************** *** 3973,3976 **** --- 4021,4040 ---- RelativePath="..\src\win32\skin.cpp" > + <FileConfiguration + Name="SDL_Debug|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> + <FileConfiguration + Name="SDL_Release|Win32" + ExcludedFromBuild="true" + > + <Tool + Name="VCCLCompilerTool" + /> + </FileConfiguration> </File> <File |
From: Spacy <sp...@us...> - 2006-08-25 13:09:09
|
Update of /cvsroot/vba/VisualBoyAdvance/src/sdl In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11079/src/sdl Modified Files: TestEmu.cpp Log Message: Applied patch 1362211 [crash when exiting, wrong calloc size] Index: TestEmu.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/sdl/TestEmu.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TestEmu.cpp 6 Jun 2006 21:04:20 -0000 1.7 --- TestEmu.cpp 25 Aug 2006 13:09:04 -0000 1.8 *************** *** 257,261 **** vram = (u8 *)calloc(1, 0x20000); oam = (u8 *)calloc(1, 0x400); ! pix = (u8 *)calloc(1, 4 * 240 * 160); ioMem = (u8 *)calloc(1, 0x400); --- 257,261 ---- vram = (u8 *)calloc(1, 0x20000); oam = (u8 *)calloc(1, 0x400); ! pix = (u8 *)calloc(1, 4 * 241 * 162); ioMem = (u8 *)calloc(1, 0x400); |
From: Spacy <sp...@us...> - 2006-08-25 13:09:09
|
Update of /cvsroot/vba/VisualBoyAdvance/src/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11079/src/win32 Modified Files: MainWndTools.cpp Log Message: Applied patch 1362211 [crash when exiting, wrong calloc size] Index: MainWndTools.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/MainWndTools.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MainWndTools.cpp 21 Jun 2006 16:58:15 -0000 1.5 --- MainWndTools.cpp 25 Aug 2006 13:09:04 -0000 1.6 *************** *** 215,219 **** vram = (u8 *)calloc(1, 0x20000); oam = (u8 *)calloc(1, 0x400); ! pix = (u8 *)calloc(1, 4 * 240 * 160); ioMem = (u8 *)calloc(1, 0x400); --- 215,219 ---- vram = (u8 *)calloc(1, 0x20000); oam = (u8 *)calloc(1, 0x400); ! pix = (u8 *)calloc(1, 4 * 241 * 162); ioMem = (u8 *)calloc(1, 0x400); |
From: Spacy <sp...@us...> - 2006-08-25 13:07:30
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Debug In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9696/win32/dependencies/sdl/SDL_Debug Added Files: SDL.lib SDLmain.lib Log Message: renamed sdl lib dir --- NEW FILE: SDL.lib --- (This appears to be a binary file; contents omitted.) --- NEW FILE: SDLmain.lib --- (This appears to be a binary file; contents omitted.) |
From: Spacy <sp...@us...> - 2006-08-25 13:07:29
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Release In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9696/win32/dependencies/sdl/SDL_Release Added Files: SDL.lib SDLmain.lib Log Message: renamed sdl lib dir --- NEW FILE: SDL.lib --- (This appears to be a binary file; contents omitted.) --- NEW FILE: SDLmain.lib --- (This appears to be a binary file; contents omitted.) |
From: Spacy <sp...@us...> - 2006-08-25 13:03:26
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Debug In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8825/SDL_Debug Log Message: Directory /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Debug added to the repository |
From: Spacy <sp...@us...> - 2006-08-25 13:03:25
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Release In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8825/SDL_Release Log Message: Directory /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/SDL_Release added to the repository |
From: Spacy <sp...@us...> - 2006-08-25 13:02:42
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/Release In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8399/win32/dependencies/sdl/Release Removed Files: SDL.lib SDLmain.lib Log Message: renamed directory --- SDL.lib DELETED --- --- SDLmain.lib DELETED --- |
From: Spacy <sp...@us...> - 2006-08-25 13:02:37
|
Update of /cvsroot/vba/VisualBoyAdvance/win32/dependencies/sdl/Debug In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8399/win32/dependencies/sdl/Debug Removed Files: SDL.lib SDLmain.lib Log Message: renamed directory --- SDL.lib DELETED --- --- SDLmain.lib DELETED --- |
From: Spacy <sp...@us...> - 2006-08-25 12:28:48
|
Update of /cvsroot/vba/VisualBoyAdvance In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24715 Modified Files: INSTALL Log Message: changed yasm usage and instructions Index: INSTALL =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/INSTALL,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** INSTALL 5 Aug 2006 13:52:55 -0000 1.11 --- INSTALL 25 Aug 2006 12:28:38 -0000 1.12 *************** *** 90,96 **** - Yasm (free, essential) > http://www.tortall.net/projects/yasm/ ! > Unpack it anywhere on your pc and add the directory to ! "Tools>Options>Projects and Solutions>VC++ Directories>Executable files" ! If you got a newer version you have to change the custom build option for the "2xSaImmx.asm" file to use your version of yasm. - AMD CodeAnalyst (optional, AMD CPU required) > http://developer.amd.com/cawin.aspx?session_id=FB$37649@DJEBIGID --- 90,94 ---- - Yasm (free, essential) > http://www.tortall.net/projects/yasm/ ! > Follow the install guide at http://www.tortall.net/projects/yasm/wiki/VisualStudio2005 - AMD CodeAnalyst (optional, AMD CPU required) > http://developer.amd.com/cawin.aspx?session_id=FB$37649@DJEBIGID |
From: Spacy <sp...@us...> - 2006-08-25 12:28:42
|
Update of /cvsroot/vba/VisualBoyAdvance/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24715/win32 Modified Files: vba_vs2005.sln vba_vs2005.vcproj Log Message: changed yasm usage and instructions Index: vba_vs2005.vcproj =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/win32/vba_vs2005.vcproj,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** vba_vs2005.vcproj 24 Aug 2006 02:08:26 -0000 1.15 --- vba_vs2005.vcproj 25 Aug 2006 12:28:39 -0000 1.16 *************** *** 14,17 **** --- 14,20 ---- </Platforms> <ToolFiles> + <DefaultToolFile + FileName="yasm.rules" + /> </ToolFiles> <Configurations> *************** *** 32,35 **** --- 35,41 ---- /> <Tool + Name="YASM" + /> + <Tool Name="VCXMLDataGeneratorTool" /> *************** *** 121,124 **** --- 127,133 ---- /> <Tool + Name="YASM" + /> + <Tool Name="VCXMLDataGeneratorTool" /> *************** *** 217,220 **** --- 226,232 ---- /> <Tool + Name="YASM" + /> + <Tool Name="VCXMLDataGeneratorTool" /> *************** *** 307,310 **** --- 319,325 ---- /> <Tool + Name="YASM" + /> + <Tool Name="VCXMLDataGeneratorTool" /> *************** *** 2531,2538 **** > <Tool ! Name="VCCustomBuildTool" ! Description="Assembling $(InputFileName)..." ! CommandLine="yasm-0.5.0-win32.exe -D __DJGPP__ --oformat=win32 --arch=x86 --dformat=cv8 --machine=x86 -X vc --objfile="$(OutDir)\$(InputName).obj" "$(InputPath)"
" ! Outputs=""$(OutDir)\$(InputName).obj"" /> </FileConfiguration> --- 2546,2551 ---- > <Tool ! Name="YASM" ! Defines="__DJGPP__" /> </FileConfiguration> *************** *** 2541,2548 **** > <Tool ! Name="VCCustomBuildTool" ! Description="Assembling $(InputFileName)..." ! CommandLine="yasm-0.5.0-win32.exe -D __DJGPP__ --oformat=win32 --arch=x86 --dformat=cv8 --machine=x86 -X vc --objfile="$(OutDir)\$(InputName).obj" "$(InputPath)"
" ! Outputs=""$(OutDir)\$(InputName).obj"" /> </FileConfiguration> --- 2554,2559 ---- > <Tool ! Name="YASM" ! Defines="__DJGPP__" /> </FileConfiguration> *************** *** 2551,2558 **** > <Tool ! Name="VCCustomBuildTool" ! Description="Assembling $(InputFileName)..." ! CommandLine="yasm-0.5.0-win32.exe -D __DJGPP__ --oformat=win32 --arch=x86 --dformat=cv8 --machine=x86 -X vc --objfile="$(OutDir)\$(InputName).obj" "$(InputPath)"
" ! Outputs=""$(OutDir)\$(InputName).obj"" /> </FileConfiguration> --- 2562,2567 ---- > <Tool ! Name="YASM" ! Defines="__DJGPP__" /> </FileConfiguration> *************** *** 2561,2568 **** > <Tool ! Name="VCCustomBuildTool" ! Description="Assembling $(InputFileName)..." ! CommandLine="yasm-0.5.0-win32.exe -D __DJGPP__ --oformat=win32 --arch=x86 --dformat=cv8 --machine=x86 -X vc --objfile="$(OutDir)\$(InputName).obj" "$(InputPath)"
" ! Outputs=""$(OutDir)\$(InputName).obj"" /> </FileConfiguration> --- 2570,2575 ---- > <Tool ! Name="YASM" ! Defines="__DJGPP__" /> </FileConfiguration> *************** *** 4750,4753 **** --- 4757,4792 ---- </Filter> </Filter> + <Filter + Name="doc" + > + <File + RelativePath="..\AUTHORS" + > + </File> + <File + RelativePath="..\COPYING" + > + </File> + <File + RelativePath="..\INSTALL" + > + </File> + <File + RelativePath="..\NEWS" + > + </File> + <File + RelativePath="..\README" + > + </File> + <File + RelativePath="..\README-win.txt" + > + </File> + <File + RelativePath="..\VERSION" + > + </File> + </Filter> <File RelativePath="..\src\win32\VisualBoyAdvance.exe.manifest" Index: vba_vs2005.sln =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/win32/vba_vs2005.sln,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** vba_vs2005.sln 23 Aug 2006 22:13:30 -0000 1.3 --- vba_vs2005.sln 25 Aug 2006 12:28:38 -0000 1.4 *************** *** 9,25 **** EndProjectSection EndProject - Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "documentation", "documentation", "{61FD874C-E3E4-499F-B4A9-AC8A66174D5D}" - ProjectSection(SolutionItems) = preProject - ..\AUTHORS = ..\AUTHORS - ..\COPYING = ..\COPYING - ..\INSTALL = ..\INSTALL - ..\NEWS = ..\NEWS - ..\README = ..\README - ..\README-win.txt = ..\README-win.txt - ..\VERSION = ..\VERSION - EndProjectSection - EndProject - Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dependencies", "dependencies", "{F78600CD-B229-4EE2-9351-A9D5D47AEA3B}" - EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "dependencies\zlib\zlib.vcproj", "{B938FBD9-C7F9-4BF7-8C27-68865D1FA092}" EndProject --- 9,12 ---- *************** *** 75,83 **** HideSolutionNode = FALSE EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {B938FBD9-C7F9-4BF7-8C27-68865D1FA092} = {F78600CD-B229-4EE2-9351-A9D5D47AEA3B} - {96E945F7-0377-48DA-A5F8-1C192DE9F25F} = {F78600CD-B229-4EE2-9351-A9D5D47AEA3B} - {DB5C12E9-BCD3-4517-8708-475C0D1D88CE} = {F78600CD-B229-4EE2-9351-A9D5D47AEA3B} - EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution AMDCaProjectFile = --- 62,65 ---- |
From: Spacy <sp...@us...> - 2006-08-24 02:13:42
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10582/src Modified Files: interframe.cpp Log Message: removed unused interlace filter Index: interframe.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/interframe.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** interframe.cpp 13 May 2004 15:06:45 -0000 1.8 --- interframe.cpp 24 Aug 2006 02:13:39 -0000 1.9 *************** *** 580,620 **** } } - - static int count = 0; - - void InterlaceIB(u8 *srcPtr, u32 srcPitch, int width, int height) - { - if(frm1 == NULL) { - Init(); - } - - u16 colorMask = ~RGB_LOW_BITS_MASK; - - u16 *src0 = (u16 *)srcPtr; - u16 *src1 = (u16 *)frm1; - - int sPitch = srcPitch >> 1; - - int pos = 0; - for (int j = 0; j < height; j++) { - bool render = count ? (j & 1) != 0 : (j & 1) == 0; - if(render) { - for (int i = 0; i < sPitch; i++) { - u16 color = src0[pos]; - src0[pos] = - (((color & colorMask) >> 1) + ((((src1[pos] & colorMask) >> 1) & colorMask) >> 1)); - src1[pos] = color; - pos++; - } - } else { - for (int i = 0; i < sPitch; i++) { - u16 color = src0[pos]; - src0[pos] = - (((((color & colorMask) >> 1) & colorMask) >> 1) + ((src1[pos] & colorMask) >> 1)); - src1[pos] = color; - pos++; - } - } - } - count = count ^ 1; - } --- 580,581 ---- |
From: Spacy <sp...@us...> - 2006-08-24 02:08:30
|
Update of /cvsroot/vba/VisualBoyAdvance/src/win32 In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7872/src/win32 Modified Files: DirectInput.cpp Log Message: Updated Input handling from using DirectInput5 to using DirectInput8 Index: DirectInput.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/DirectInput.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** DirectInput.cpp 6 Jun 2006 21:04:21 -0000 1.7 --- DirectInput.cpp 24 Aug 2006 02:08:26 -0000 1.8 *************** *** 1,26 **** ! // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. ! // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2004 Forgotten and the VBA development team ! // This program is free software; you can redistribute it and/or modify ! // it under the terms of the GNU General Public License as published by ! // the Free Software Foundation; either version 2, or(at your option) ! // any later version. ! // ! // This program is distributed in the hope that it will be useful, [...2047 lines suppressed...] ! checkKeyboard(); } void DirectInput::activate() { ! for (int i = 0; i < numDevices; i++) { ! if (pDevices != NULL && pDevices[i].device != NULL) ! pDevices[i].device->Acquire(); ! } } void DirectInput::loadSettings() { ! winReadKeys(); } void DirectInput::saveSettings() { ! winSaveKeys(); } |