- Select Case file_type
- Case Graphics
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Graficos.iao"
- Else
- SourceFilePath = resource_path & "\Graficos.iao"
- End If
- OutputFilePath = resource_path & GRAPHIC_PATH
- Case Midi
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Midi.iao"
- Else
- SourceFilePath = resource_path & "\MIDI.iao"
- End If
- OutputFilePath = resource_path & MIDI_PATH
- Case MP3
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "MP3.iao"
- Else
- SourceFilePath = resource_path & "\MP3.iao"
- End If
- OutputFilePath = resource_path & MP3_PATH
- Case Wav
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Sounds.iao"
- Else
- SourceFilePath = resource_path & "\Sounds.iao"
- End If
- OutputFilePath = resource_path & WAV_PATH
- Case Scripts
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Init.iao"
- Else
- SourceFilePath = resource_path & "\Init.iao"
- End If
- OutputFilePath = resource_path & SCRIPT_PATH
- Case Interface
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Interface.iao"
- Else
- SourceFilePath = resource_path & "\Interface.iao"
- End If
- OutputFilePath = resource_path & INTERFACE_PATH
- Case Maps
- If UseOutputFolder Then
- SourceFilePath = resource_path & OUTPUT_PATH & "Mapas.iao"
- Else
- SourceFilePath = resource_path & "\Mapas.iao"
- End If
- OutputFilePath = resource_path & MAP_PATH
- Case Else
- Exit Function
- End Select
Y tambien en declaraciones pone esto:
- Public Enum resource_file_type
- Graphics
- Midi
- MP3
- Wav
- Scripts
- Patch
- Interface
- Maps
- End Enum
- Private Const GRAPHIC_PATH As String = "\Graficos\"
- Private Const MIDI_PATH As String = "\Midi\"
- Private Const MP3_PATH As String = "\Mp3\"
- Private Const WAV_PATH As String = "\Wav\"
- Private Const MAP_PATH As String = "\Mapas\"
- Private Const INTERFACE_PATH As String = "\Interface\"
- Private Const SCRIPT_PATH As String = "\Init\"
- Private Const PATCH_PATH As String = "\Patches\"
- Private Const OUTPUT_PATH As String = "\Output\"
Ahora pienso..(diganme si estoy correcto o que falta para tal
Por ejemplo con la carga de graficos...
Select Case file_type
Case Graphics
If UseOutputFolder Then
SourceFilePath = resource_path & OUTPUT_PATH & "Graficos.iao"
Else
SourceFilePath = resource_path & "\Graficos.iao"
End If
OutputFilePath = resource_path & GRAPHIC_PATH
Tendria que borrar todo y dejar solamente:
Select Case file_type
Case Graphics
SourceFilePath = resource_path & GRAPHIC_PATH
??? asi?




454![Aprendiz [2] Aprendiz [2]](./images/ranks/Rango7.gif)

