mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +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 {
|
struct RbxSession {
|
||||||
partitions_path: HashMap<String, PathBuf>,
|
partitions_path: HashMap<String, PathBuf>,
|
||||||
partition_instances: HashMap<String, Id>,
|
partition_instances: HashMap<String, Id>,
|
||||||
|
partition_files: HashMap<String, FileItem>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RbxSession {
|
impl RbxSession {
|
||||||
fn load(&self) {
|
fn load(&mut self) {
|
||||||
for (partition_name, partition_path) in &self.partitions_path {
|
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