mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Implement RbxSession::load, super simple
This commit is contained in:
parent
6c0a0efd5b
commit
d9343d09f5
1 changed files with 8 additions and 1 deletions
|
|
@ -49,11 +49,18 @@ struct RbxInstance {
|
|||
struct RbxSession {
|
||||
partitions_path: HashMap<String, PathBuf>,
|
||||
partition_instances: HashMap<String, Id>,
|
||||
partition_files: HashMap<String, FileItem>,
|
||||
}
|
||||
|
||||
impl RbxSession {
|
||||
fn load(&self) {
|
||||
fn load(&mut self) {
|
||||
for (partition_name, partition_path) in &self.partitions_path {
|
||||
let file_item = self.read(&FileRoute {
|
||||
partition: partition_name.clone(),
|
||||
route: vec![],
|
||||
}).expect("aaagh");
|
||||
|
||||
self.partition_files.insert(partition_name.clone(), file_item);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue