I had write these codes
Quote:
if ((io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/topmenu_plugin.rco","flash0:/vsh/resource/topmenu_plugin.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/system_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin.rco","flash0:/vsh/resource/system_plugin.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/01-12.bmp","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/01-12.bmp","flash0:/vsh/resource/01-12.bmp","no")
end
if ((io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/impose_plugin.rco","flash0:/vsh/resource/impose_plugin.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin_fg.rco","flash0:/vsh/resource/system_plugin_fg.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin_bg.rco","flash0:/vsh/resource/system_plugin_bg.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/ltn0.pgf","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/ltn0.pgf","flash0:/font/ltn0.pgf","no")
end
if ((io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/opening_plugin.rco","flash0:/vsh/resource/opening_plugin.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/gameboot.pmf","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/gameboot.pmf","flash0:/vsh/resource/gameboot.pmf","no")
end
if ((io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/savedata_plugin.rco","flash0:/vsh/resource/savedata_plugin.rco","no")
end
if ((io.open("ms0:/backups/saves/mod/game_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/game_plugin.rco","flash0:/vsh/resource/game_plugin.rco","no")
end
|
But when i run it ~it gives me
Quote:
error:cannot find 'ms0:/backups/saves/mod/savedata_plugin.rco'
Error:No cript file found
|
but the savedata_plugin.rco is in the floder!
when i remove the savedata_plugin.rco it gives me
Quote:
error:cannot find 'ms0:/backups/saves/mod/game_plugin.rco'
Error:No cript file found
|
but the game_plugin.rco is in the floder!
when i remove these two file from the floder,it won't run into error!!
i think the problem might be in the file open&close
so i chang these codes into
Quote:
if ((io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/topmenu_plugin.rco","flash0:/vsh/resource/topmenu_plugin.rco","no")
io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/system_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin.rco","flash0:/vsh/resource/system_plugin.rco","no")
io.open("ms0:/backups/saves/mod/system_plugin.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/01-12.bmp","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/01-12.bmp","flash0:/vsh/resource/01-12.bmp","no")
io.open("ms0:/backups/saves/mod/01-12.bmp","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/impose_plugin.rco","flash0:/vsh/resource/impose_plugin.rco","no")
io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin_fg.rco","flash0:/vsh/resource/system_plugin_fg.rco","no")
io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/system_plugin_bg.rco","flash0:/vsh/resource/system_plugin_bg.rco","no")
io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/ltn0.pgf","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/ltn0.pgf","flash0:/font/ltn0.pgf","no")
io.open("ms0:/backups/saves/mod/ltn0.pgf","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/opening_plugin.rco","flash0:/vsh/resource/opening_plugin.rco","no")
io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/gameboot.pmf","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/gameboot.pmf","flash0:/vsh/resource/gameboot.pmf","no")
io.open("ms0:/backups/saves/mod/gameboot.pmf","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/savedata_plugin.rco","flash0:/vsh/resource/savedata_plugin.rco","no")
io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"):close()
end
if ((io.open("ms0:/backups/saves/mod/game_plugin.rco","r"))==NULL) then
a=a+1
else
System.writeFile("ms0:/backups/saves/mod/game_plugin.rco","flash0:/vsh/resource/game_plugin.rco","no")
io.open("ms0:/backups/saves/mod/game_plugin.rco","r"):close()
end
|
But it runs into the same error as before!
Can some one give me a help??
Writting this makes me tried~~
|