-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AndrewKraevskii/master
Много всякого
- Loading branch information
Showing
26 changed files
with
1,720 additions
and
1,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "target-feature=+crt-static"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
/target | ||
/run | ||
Cargo.lock | ||
*.bpc | ||
*.mm | ||
/.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
use std::io; | ||
|
||
fn main() -> io::Result<()>{ | ||
|
||
#[cfg(target_os="macos")] | ||
fn main() -> io::Result<()> { | ||
#[cfg(target_os = "macos")] | ||
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path"); | ||
|
||
#[cfg(target_os="linux")] | ||
#[cfg(target_os = "linux")] | ||
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN"); | ||
|
||
#[cfg(windows)] { | ||
#[cfg(windows)] | ||
{ | ||
use winres::WindowsResource; | ||
WindowsResource::new() | ||
// This path can be absolute, or relative to your crate root. | ||
.set_icon("ussr.ico") | ||
.compile()?; | ||
} | ||
Ok(()) | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
#![windows_subsystem = "windows"] | ||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] | ||
|
||
use crate::model::Computer; | ||
|
||
mod ui; | ||
mod model; | ||
mod parse; | ||
|
||
#[macro_export] | ||
macro_rules! bit_at { | ||
($opcode:expr, $pos:expr) => { | ||
{ | ||
use core::ops::*; | ||
$opcode.bitand(1.shl($pos as u16) as u16) != 0 | ||
} | ||
}; | ||
} | ||
mod ui; | ||
mod utils; | ||
|
||
fn main() { | ||
println!("Hello, World!"); | ||
let computer = Computer::new(); | ||
|
||
|
||
ui::gui::Gui::new(computer).run(); | ||
} | ||
} |
Oops, something went wrong.