Skip to content

Commit

Permalink
Little things
Browse files Browse the repository at this point in the history
back 1

other little change, join 2 in 1
  • Loading branch information
latot committed Jan 9, 2016
1 parent 2fc296a commit 53ac6d9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Core/FileSystems/ISOFileSystem.cpp
Expand Up @@ -814,8 +814,7 @@ void ISOFileSystem::DoState(PointerWrap &p)
bool hasFile = of.file != NULL;
p.Do(hasFile);
if (hasFile) {
std::string path = "";
path = EntryFullPath(of.file);
std::string path = EntryFullPath(of.file);
p.Do(path);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Core/HLE/sceAtrac.cpp
Expand Up @@ -1192,14 +1192,14 @@ u32 _AtracDecodeData(int atracID, u8 *outbuf, u32 outbufPtr, u32 *SamplesNum, u3
}

static u32 sceAtracDecodeData(int atracID, u32 outAddr, u32 numSamplesAddr, u32 finishFlagAddr, u32 remainAddr) {
int ret = -1;
//int ret = -1;

// Note that outAddr being null is completely valid here, used to skip data.

u32 numSamples = 0;
u32 finish = 0;
int remains = 0;
ret = _AtracDecodeData(atracID, Memory::GetPointer(outAddr), outAddr, &numSamples, &finish, &remains);
int ret = _AtracDecodeData(atracID, Memory::GetPointer(outAddr), outAddr, &numSamples, &finish, &remains);
if (ret != (int)ATRAC_ERROR_BAD_ATRACID && ret != (int)ATRAC_ERROR_NO_DATA) {
if (Memory::IsValidAddress(numSamplesAddr))
Memory::Write_U32(numSamples, numSamplesAddr);
Expand Down
8 changes: 4 additions & 4 deletions Core/HLE/sceNetAdhoc.cpp
Expand Up @@ -260,8 +260,8 @@ static int sceNetAdhocPdpCreate(const char *mac, u32 port, int bufferSize, u32 u
//return ERROR_NET_ADHOC_PORT_IN_USE;

// Create Internet UDP Socket
int usocket = (int)INVALID_SOCKET;
usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
// int usocket = (int)INVALID_SOCKET;
int usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
// Valid Socket produced
if (usocket != INVALID_SOCKET) {
// Change socket buffer size when necessary
Expand Down Expand Up @@ -1644,8 +1644,8 @@ static int sceNetAdhocPtpOpen(const char *srcmac, int sport, const char *dstmac,
// Valid Arguments
if (bufsize > 0 && rexmt_int > 0 && rexmt_cnt > 0) {
// Create Infrastructure Socket
int tcpsocket = (int)INVALID_SOCKET;
tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
// int tcpsocket = (int)INVALID_SOCKET;
int tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

// Valid Socket produced
if (tcpsocket > 0) {
Expand Down
6 changes: 4 additions & 2 deletions UI/MiscScreens.cpp
Expand Up @@ -87,10 +87,12 @@ void DrawBackground(UIContext &dc, float alpha = 1.0f) {
last_yres = yres;
}

int img = I_BG;
#ifdef GOLD
img = I_BG_GOLD;
int img = I_BG_GOLD;
#else
int img = I_BG;
#endif

ui_draw2d.DrawImageStretch(img, dc.GetBounds());
float t = time_now();
for (int i = 0; i < 100; i++) {
Expand Down
6 changes: 3 additions & 3 deletions ext/native/ext/glew/glew.c
Expand Up @@ -141,7 +141,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
void* NSGLGetProcAddress (const GLubyte *name)
{
static const struct mach_header* image = NULL;
NSSymbol symbol;
//NSSymbol symbol;
char* symbolName;
if (NULL == image)
{
Expand All @@ -151,10 +151,10 @@ void* NSGLGetProcAddress (const GLubyte *name)
symbolName = malloc(strlen((const char*)name) + 2);
strcpy(symbolName+1, (const char*)name);
symbolName[0] = '_';
symbol = NULL;
//symbol = NULL;
/* if (NSIsSymbolNameDefined(symbolName))
symbol = NSLookupAndBindSymbol(symbolName); */
symbol = image ? NSLookupSymbolInImage(image, symbolName, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR) : NULL;
NSSSymbol symbol = image ? NSLookupSymbolInImage(image, symbolName, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR) : NULL;
free(symbolName);
if( symbol ) return NSAddressOfSymbol(symbol);
#ifdef GLEW_APPLE_GLX
Expand Down
2 changes: 1 addition & 1 deletion ext/native/tools/atlastool.cpp
Expand Up @@ -353,7 +353,7 @@ inline vector<CharRange> merge(const vector<CharRange> &a, const vector<CharRang
return result;
}

void RasterizeFonts(const FontReferenceList fontRefs, vector<CharRange> &ranges, float *metrics_height, Bucket *bucket) {
void RasterizeFonts(const FontReferenceList &fontRefs, vector<CharRange> &ranges, float *metrics_height, Bucket *bucket) {
FT_Library freetype;
CHECK(FT_Init_FreeType(&freetype) == 0);

Expand Down

0 comments on commit 53ac6d9

Please sign in to comment.