Jump to content


Photo

Deleting A File Problem


  • Please log in to reply
No replies to this topic

#1 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 16 February 2004 - 03:48 PM

So I'm working on yet another Context Script. GameCleaner.xas
The way it works now may not yet be the final way it's done.
This is just an example from the script.

SETFUNC CaseID XBEID %_GameDir%\default.xbe
SWITCH %CaseID%
;Need for Speed: Underground
CASE 1161887815
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_CHINESE.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_DUTCH.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_FRENCH.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_GERMAN.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_ITALIAN.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_KOREAN.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_SPANISH.bin"
Delete "%_GameDir%\\LANGUAGES\\LANGUAGE_SWEDISH.bin"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_BRAZILIAN_PORTUGUESE.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_CZECH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_DANISH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_DUTCH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_FINNISH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_FRENCH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_GERMAN.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_ITALIAN.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_JAPANESE.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_NORWEGIAN.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_POLISH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_PORTUGUESE.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_SPANISH.loc"
Delete "%_GameDir%\\MEMCARD\\XBOX_LOCALE_SWEDISH.loc"

Delete "%_GameDir%\\MOVIES\\NFL.mad"
Delete "%_GameDir%\\MOVIES\\SSX.mad"
Delete "%_GameDir%\\SOUND\\Streams\\STRM_French_Speech_MB.ast"
Delete "%_GameDir%\\SOUND\\Streams\\STRM_German_Speech_MB.ast"
Delete "%_GameDir%\\SOUND\\Streams\\STRM_Italian_Speech_MB.ast"
Delete "%_GameDir%\\SOUND\\Streams\\STRM_Spanish_Speech_MB.ast"
Delete "%_GameDir%\\SOUND\\strmBank\\STRM_French_Speech_MB.abk"
Delete "%_GameDir%\\SOUND\\strmBank\\STRM_German_Speech_MB.abk"
Delete "%_GameDir%\\SOUND\\strmBank\\STRM_Italian_Speech_MB.abk"
Delete "%_GameDir%\\SOUND\\strmBank\\STRM_Spanish_Speech_MB.abk"
GOTO DONE
ENDCASE
DEFAULT
MsgBox "%_GameTitle% $eol$not supported yet!"
ENDSWITCH

The blue files aren't getting deleted. Everything else is though

Edited by flattspott, 16 February 2004 - 03:54 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users