Exemplo n.º 1
0
        private string ExtractStdCpk(string dataDir)
        {
            Console.WriteLine("Extracting std.cpk...");

            string stdCpk = Path.Join(dataDir, "PSP_GAME", "USRDIR", "std.cpk");

            return(Containers.ExtractCpk(stdCpk));
        }
Exemplo n.º 2
0
        private void AddMenuMusic(string dataDir)
        {
            Console.WriteLine("Extracting snd.cpk...");
            string sndCpk = Path.Join(dataDir, "PSP_GAME", "USRDIR", "snd.cpk");
            string sndDir = Containers.ExtractCpk(sndCpk);

            string destDir = Path.Join(dataDir, "PSP_GAME");

            Directory.CreateDirectory(destDir);

            Console.WriteLine("Copying music for PSP menu...");
            File.Copy(Path.Join(sndDir, "PSP_GAME", "USRDIR", "sound", "bgm", "bgm19.at3"),
                      Path.Join(destDir, "SND0.AT3"),
                      true);

            // Clean up.
            Directory.Delete(sndDir, true);
        }