2023-04-01 23:19:12 +02:00
|
|
|
package state
|
|
|
|
|
|
|
|
const (
|
2023-04-10 10:19:18 +02:00
|
|
|
FLAG_READIN = 1
|
|
|
|
FLAG_INMATCH = 2
|
|
|
|
FLAG_TERMINATE = 3
|
2023-04-10 10:05:48 +02:00
|
|
|
FLAG_DIRTY = 4
|
2023-04-13 10:16:17 +02:00
|
|
|
FLAG_LOADFAIL = 5
|
2023-04-16 09:51:16 +02:00
|
|
|
FLAG_USERSTART = 9
|
2023-04-13 10:16:17 +02:00
|
|
|
//FLAG_WRITEABLE = FLAG_LOADFAIL
|
2023-04-01 23:19:12 +02:00
|
|
|
)
|
2023-04-13 10:16:17 +02:00
|
|
|
|
|
|
|
func IsWriteableFlag(flag uint32) bool {
|
|
|
|
if flag > 7 {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
//if flag & FLAG_WRITEABLE > 0 {
|
|
|
|
// return true
|
|
|
|
//}
|
|
|
|
return false
|
|
|
|
}
|