Trimmed excess whitespace.
This commit is contained in:
@@ -955,7 +955,7 @@ void load_file_fs(char *path)
|
|||||||
{
|
{
|
||||||
memmove(ROM, ROM+512, addOnStart);
|
memmove(ROM, ROM+512, addOnStart);
|
||||||
curromspace -= 512;
|
curromspace -= 512;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *STCart2 = 0;
|
char *STCart2 = 0;
|
||||||
@@ -975,7 +975,7 @@ void SplitSetup(char *basepath, char *basefile, unsigned int MirrorSystem)
|
|||||||
memcpy(ROM+0x200000, ROM, addOnSize);
|
memcpy(ROM+0x200000, ROM, addOnSize);
|
||||||
curromspace = 0;
|
curromspace = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!*basepath)
|
if (!*basepath)
|
||||||
{
|
{
|
||||||
load_file_fs(basefile);
|
load_file_fs(basefile);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ This is part of a toolkit used to assist in ZSNES development
|
|||||||
bool parse_dir(const char *dir_loc, void (*func)(const char *, struct stat&))
|
bool parse_dir(const char *dir_loc, void (*func)(const char *, struct stat&))
|
||||||
{
|
{
|
||||||
char cwd[16384];
|
char cwd[16384];
|
||||||
|
|
||||||
if (getcwd(cwd, sizeof(cwd)) && !chdir(dir_loc)) //chdir() returns 0 on success
|
if (getcwd(cwd, sizeof(cwd)) && !chdir(dir_loc)) //chdir() returns 0 on success
|
||||||
{
|
{
|
||||||
DIR *curDir = opendir(".");
|
DIR *curDir = opendir(".");
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ void handle_file(const char *filename, struct stat& stat_buffer)
|
|||||||
readin_file(ModifyFile, ModifyText);
|
readin_file(ModifyFile, ModifyText);
|
||||||
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
|
||||||
for (size_t start_pos = 0;;)
|
for (size_t start_pos = 0;;)
|
||||||
{
|
{
|
||||||
size_t match_point = ModifyText.find(SearchText, start_pos);
|
size_t match_point = ModifyText.find(SearchText, start_pos);
|
||||||
@@ -105,7 +105,7 @@ int main(size_t argc, const char **argv)
|
|||||||
if (*argp && !strcmp(*argp, "-r"))
|
if (*argp && !strcmp(*argp, "-r"))
|
||||||
{
|
{
|
||||||
if (argc < 5) { help(); }
|
if (argc < 5) { help(); }
|
||||||
|
|
||||||
subdir_scan = true;
|
subdir_scan = true;
|
||||||
argp++;
|
argp++;
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@ int main(size_t argc, const char **argv)
|
|||||||
help();
|
help();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ifstream SearchFile(*argp, ios::in);
|
ifstream SearchFile(*argp, ios::in);
|
||||||
if (SearchFile)
|
if (SearchFile)
|
||||||
{
|
{
|
||||||
@@ -158,6 +158,6 @@ int main(size_t argc, const char **argv)
|
|||||||
handle_file(*argp, stat_buffer);
|
handle_file(*argp, stat_buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user