mirror of
https://github.com/aap/librw.git
synced 2025-12-22 02:19:56 +00:00
almost-working lcs conversion
This commit is contained in:
@@ -112,7 +112,7 @@ void
|
||||
Texture::decRef(void)
|
||||
{
|
||||
this->refCount--;
|
||||
if(this->refCount)
|
||||
if(this->refCount == NULL)
|
||||
delete this;
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ Image::getFilename(const char *name)
|
||||
char *s, *p = searchPaths;
|
||||
int len = strlen(name)+1;
|
||||
if(numSearchPaths == 0){
|
||||
f = fopen(name, "r");
|
||||
f = fopen(name, "rb");
|
||||
if(f){
|
||||
fclose(f);
|
||||
printf("found %s\n", name);
|
||||
|
||||
Reference in New Issue
Block a user